Skip to content

Commit

Permalink
feat: improve rules for specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Sep 26, 2021
1 parent aca258d commit 887652f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,24 @@ module.exports = {
],
},
},
{
files: ['*.d.ts'],
rules: {
'import/no-duplicates': 'off',
},
},
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['scripts/**/*.*'],
rules: {
'no-console': 'off',
},
},
],
rules: {
// import
Expand Down Expand Up @@ -167,7 +185,7 @@ module.exports = {
'block-scoped-var': 'error',
'consistent-return': 'off',
'complexity': ['off', 11],
'eqeqeq': ['error', 'allow-null'],
'eqeqeq': ['error', 'smart'],
'no-alert': 'warn',
'no-case-declarations': 'error',
'no-multi-spaces': 'error',
Expand Down

0 comments on commit 887652f

Please sign in to comment.