Browse Source

remove repeated config

pull/6059/head
danstarns 1 year ago
parent
commit
78872da15e
  1. 19
      .eslintrc.js

19
.eslintrc.js

@ -48,28 +48,9 @@ module.exports = {
'@typescript-eslint/no-unsafe-function-type': 'off', '@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off', '@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off', '@typescript-eslint/no-wrapper-object-types': 'off',
indent: ['error', 2],
quotes: ['error', 'single'],
'linebreak-style': ['error', 'unix'], 'linebreak-style': ['error', 'unix'],
'max-len': ['error', { code: 300 }], 'max-len': ['error', { code: 300 }],
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1 }], 'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1 }],
}, },
overrides: [
{
files: ['*.ts'],
parser: '@typescript-eslint/parser',
rules: {
indent: ['error', 2],
quotes: ['error', 'single'],
},
},
{
files: ['*.js'],
rules: {
indent: ['error', 2],
quotes: ['error', 'single'],
},
},
],
ignorePatterns: ['docs/api/*', 'dist/*'], ignorePatterns: ['docs/api/*', 'dist/*'],
}; };

Loading…
Cancel
Save