mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 20:02:54 +02:00
chore(v2): Fix more eslint errors (#2976)
This commit is contained in:
parent
3611c96f90
commit
6e43c9bd34
81 changed files with 375 additions and 237 deletions
14
.eslintrc.js
14
.eslintrc.js
|
@ -85,27 +85,23 @@ module.exports = {
|
|||
],
|
||||
'no-unused-vars': OFF,
|
||||
'@typescript-eslint/no-unused-vars': [ERROR, {argsIgnorePattern: '^_'}],
|
||||
'@typescript-eslint/ban-ts-comment': [
|
||||
ERROR,
|
||||
{'ts-expect-error': 'allow-with-description'},
|
||||
],
|
||||
|
||||
// TODO re-enable some these as errors
|
||||
// context: https://github.com/facebook/docusaurus/pull/2949
|
||||
'@typescript-eslint/ban-ts-comment': WARNING,
|
||||
'@typescript-eslint/ban-types': WARNING,
|
||||
'import/prefer-default-export': WARNING,
|
||||
'import/no-extraneous-dependencies': WARNING,
|
||||
'no-useless-escape': WARNING,
|
||||
'prefer-template': WARNING,
|
||||
'no-shadow': WARNING,
|
||||
'no-param-reassign': WARNING,
|
||||
'no-else-return': WARNING,
|
||||
'no-template-curly-in-string': WARNING,
|
||||
'array-callback-return': WARNING,
|
||||
camelcase: WARNING,
|
||||
'no-nested-ternary': WARNING,
|
||||
'object-shorthand': WARNING,
|
||||
'no-restricted-syntax': WARNING,
|
||||
'no-unused-expressions': WARNING,
|
||||
'consistent-return': WARNING,
|
||||
'no-useless-return': WARNING,
|
||||
'@typescript-eslint/no-empty-function': WARNING,
|
||||
'global-require': WARNING,
|
||||
'prefer-destructuring': WARNING,
|
||||
|
@ -114,8 +110,6 @@ module.exports = {
|
|||
'no-empty': WARNING,
|
||||
'no-prototype-builtins': WARNING,
|
||||
'no-case-declarations': WARNING,
|
||||
'default-case': WARNING,
|
||||
'dot-notation': WARNING,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue