Skip to content

Commit

Permalink
chore: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours committed Mar 29, 2024
1 parent fb22ecb commit ceb5ce9
Show file tree
Hide file tree
Showing 8 changed files with 1,089 additions and 722 deletions.
24 changes: 2 additions & 22 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,22 @@
module.exports = {
root: true,
env: {
node: true,
browser: true,
worker: true,
serviceworker: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 'latest',
sourceType: 'module',
},
settings: {
react: {
version: '18',
},
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:vue/vue3-recommended',
'prettier',
],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['@typescript-eslint'],
rules: {
'no-undef': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 1,

'vue/block-lang': [
'error',
{
script: { lang: 'ts', allowNoLang: false },
},
],
'vue/component-api-style': ['error', ['script-setup']],
},
};
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ save-exact=true

# https://pnpm.io/npmrc
prefer-workspace-packages=true
node-linker=hoisted
8 changes: 8 additions & 0 deletions apps/react-demo/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
settings: {
react: {
version: '18',
},
},
extends: ['plugin:react/recommended', 'plugin:react/jsx-runtime'],
};
1 change: 1 addition & 0 deletions apps/react-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@apex/webpack-config": "workspace:*",
"@types/react": "18.2.37",
"@types/react-dom": "18.2.15",
"eslint-plugin-react": "7.34.1",
"webpack-cli": "5.1.4"
}
}
13 changes: 13 additions & 0 deletions apps/vue-demo/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
parser: 'vue-eslint-parser',
extends: ['plugin:vue/vue3-recommended'],
rules: {
'vue/block-lang': [
'error',
{
script: { lang: 'ts', allowNoLang: false },
},
],
'vue/component-api-style': ['error', ['script-setup']],
},
};
4 changes: 3 additions & 1 deletion apps/vue-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "4.5.2",
"eslint-plugin-vue": "9.24.0",
"vite": "5.0.10",
"vite-svg-loader": "5.1.0"
"vite-svg-loader": "5.1.0",
"vue-eslint-parser": "9.4.2"
}
}
29 changes: 13 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,24 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@changesets/cli": "2.26.2",
"@commitlint/cli": "18.2.0",
"@commitlint/config-conventional": "18.1.0",
"@changesets/cli": "2.27.1",
"@commitlint/cli": "19.2.1",
"@commitlint/config-conventional": "19.1.0",
"@types/rimraf": "3.0.2",
"@typescript-eslint/eslint-plugin": "6.10.0",
"@typescript-eslint/parser": "6.10.0",
"@typescript-eslint/eslint-plugin": "7.4.0",
"@typescript-eslint/parser": "7.4.0",
"ci-info": "4.0.0",
"cross-env": "7.0.3",
"dotenv": "16.3.1",
"eslint": "8.53.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-vue": "9.19.2",
"dotenv": "16.4.5",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"husky": "8.0.3",
"lint-staged": "15.0.2",
"npm-check-updates": "16.14.6",
"prettier": "3.0.3",
"lint-staged": "15.2.2",
"npm-check-updates": "16.14.18",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"ts-node": "10.9.1",
"ts-node": "10.9.2",
"tslib": "2.6.2",
"typescript": "5.2.2",
"vue-eslint-parser": "9.3.2"
"typescript": "5.4.3"
}
}
Loading

0 comments on commit ceb5ce9

Please sign in to comment.