Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Nov 20, 2023
1 parent 3565d07 commit 81551b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions apps/admin/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ module.exports = {
extends: ['@vben'],
rules: {
'no-undef': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'vue/no-unused-vars': 'warn',
},
};
15 changes: 8 additions & 7 deletions apps/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ module.exports = {
sourceType: 'module',
tsconfigRootDir: __dirname,
},
root: true,
env: {
node: true,
jest: true,
},
plugins: ['@typescript-eslint', 'unused-imports'],
plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:import/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
// import
'import/named': 'off',
Expand Down

0 comments on commit 81551b1

Please sign in to comment.