mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
chore(v2): upgrade ESLint deps (#3767)
* chore(v2): upgrade ESLint deps * Fix for no-redeclare rule
This commit is contained in:
parent
118c76b47c
commit
643a1ffd7e
3 changed files with 250 additions and 165 deletions
|
@ -76,13 +76,15 @@ module.exports = {
|
|||
'react/prefer-stateless-function': WARNING,
|
||||
'react/jsx-props-no-spreading': OFF,
|
||||
'react-hooks/rules-of-hooks': ERROR,
|
||||
'react/require-default-props': [ERROR, {ignoreFunctionalComponents: true}],
|
||||
'@typescript-eslint/no-inferrable-types': OFF,
|
||||
'import/first': OFF,
|
||||
'import/order': OFF,
|
||||
'import/prefer-default-export': OFF,
|
||||
'lines-between-class-members': OFF,
|
||||
'no-lonely-if': WARNING,
|
||||
'no-use-before-define': [
|
||||
'no-use-before-define': OFF,
|
||||
'@typescript-eslint/no-use-before-define': [
|
||||
ERROR,
|
||||
{functions: false, classes: false, variables: true},
|
||||
],
|
||||
|
@ -114,6 +116,11 @@ module.exports = {
|
|||
'no-empty': WARNING,
|
||||
'no-prototype-builtins': WARNING,
|
||||
'no-case-declarations': WARNING,
|
||||
'no-undef': OFF,
|
||||
'no-shadow': OFF,
|
||||
'@typescript-eslint/no-shadow': ERROR,
|
||||
'no-redeclare': OFF,
|
||||
'@typescript-eslint/no-redeclare': ERROR,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue