Skip to content

Commit

Permalink
Modernize eslint configuration ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldev5 authored and dudo50 committed Nov 24, 2023
1 parent b9588f3 commit 2580385
Show file tree
Hide file tree
Showing 89 changed files with 1,659 additions and 1,033 deletions.
19 changes: 0 additions & 19 deletions .editorconfig

This file was deleted.

3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dist
node_modules
scripts
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["standard-with-typescript", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"func-style": ["error", "declaration", { "allowArrowFunctions": true }]
}
}
32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,17 @@
"scripts": {
"compile": "tsc --noEmit",
"build": "rollup -c",
"lint:check": "eslint src/**/*.ts",
"lint": "eslint --fix src/**/*.ts",
"format:check": "prettier --check src/**/*.ts",
"format:write": "prettier --write src/**/*.ts",
"lint:check": "eslint src --ext .ts",
"lint": "eslint --fix src --ext .ts",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"test": "vitest",
"updateAssets": "node --loader ts-node/esm --experimental-specifier-resolution=node ./src/scripts/updateAssets.ts",
"updatePallets": "node --loader ts-node/esm --experimental-specifier-resolution=node ./src/scripts/updatePallets.ts",
"updateAssets": "node --loader ts-node/esm --experimental-specifier-resolution=node ./scripts/updateAssets.ts",
"updatePallets": "node --loader ts-node/esm --experimental-specifier-resolution=node ./scripts/updatePallets.ts",
"release": "pnpm runAll && pnpm build && standard-version && git push --follow-tags",
"runAll": "pnpm compile && pnpm format:write && pnpm lint && pnpm test"
},
"pnpm": {
"overrides": {
"vite": "^4.4.9"
},
"peerDependencyRules": {
"allowedVersions": {
"@polkadot/util": "12",
Expand All @@ -49,24 +46,29 @@
"@polkadot/api": "^10.6.1",
"@polkadot/api-base": "^10.6.1",
"@polkadot/apps-config": "^0.132.1",
"@polkadot/types": "^10.6.1"
"@polkadot/types": "^10.6.1",
"@polkadot/util": "^12.6.1"
},
"devDependencies": {
"@babel/plugin-syntax-import-assertions": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@nuxtjs/eslint-config-typescript": "latest",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-json": "^6.0.1",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@vitest/coverage-v8": "^0.32.2",
"eslint": "latest",
"eslint-config-prettier": "^8.6.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.3",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^3.1.0",
"rollup": "^4.4.1",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-typescript2": "^0.36.0",
"standard-version": "latest",
"standard-version": "^9.5.0",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
Expand Down
Loading

0 comments on commit 2580385

Please sign in to comment.