mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 16:37:07 +02:00
ESLintify Part 1 (#837)
* ESLint-ify * Allow empty try/catch * Escape regexp
This commit is contained in:
parent
128dbfca0a
commit
e8e3f42685
44 changed files with 466 additions and 555 deletions
42
.eslintrc.js
42
.eslintrc.js
|
@ -16,53 +16,23 @@ module.exports = {
|
|||
'no-console': OFF,
|
||||
// require radix argument in parseInt
|
||||
radix: ERROR,
|
||||
'class-methods-use-this': OFF,
|
||||
'react/no-multi-comp': OFF,
|
||||
'import/no-extraneous-dependencies': OFF,
|
||||
'react/no-danger': OFF,
|
||||
'no-empty': [ERROR, {allowEmptyCatch: true}],
|
||||
|
||||
// Existing ESLint errors sorted by frequency, silencing first.
|
||||
'react/button-has-type': OFF, // 1
|
||||
null: OFF, // 1
|
||||
'react/no-unused-state': OFF, // 1
|
||||
'vars-on-top': OFF, // 1
|
||||
'react/forbid-prop-types': OFF, // 1
|
||||
'react/require-default-props': OFF, // 1
|
||||
'lines-between-class-members': OFF, // 1
|
||||
strict: OFF, // 1
|
||||
'no-restricted-syntax': OFF, // 1
|
||||
'no-path-concat': OFF, // 2
|
||||
'one-var': OFF, // 2
|
||||
'no-unused-expressions': OFF, // 2
|
||||
'react/jsx-boolean-value': OFF, // 2
|
||||
'jsx-a11y/html-has-lang': OFF, // 2
|
||||
'no-var': OFF, // 2
|
||||
'no-useless-return': OFF, // 2
|
||||
'jsx-a11y/anchor-has-content': OFF, // 2
|
||||
'react/jsx-no-comment-textnodes': OFF, // 3
|
||||
'no-continue': OFF, // 3
|
||||
'jsx-a11y/alt-text': OFF, // 3
|
||||
'react/jsx-tag-spacing': OFF, // 3
|
||||
'no-lonely-if': OFF, // 3
|
||||
'react/sort-comp': OFF, // 4
|
||||
'no-cond-assign': OFF, // 4
|
||||
'no-use-before-define': OFF, // 4
|
||||
'no-empty': OFF, // 4
|
||||
'no-shadow': OFF, // 4
|
||||
'class-methods-use-this': OFF, // 5
|
||||
eqeqeq: OFF, // 5
|
||||
'react/no-multi-comp': OFF, // 5
|
||||
'react/no-array-index-key': OFF, // 6
|
||||
'no-underscore-dangle': OFF, // 6
|
||||
'array-callback-return': OFF, // 6
|
||||
'import/no-extraneous-dependencies': OFF, // 7
|
||||
'no-else-return': OFF, // 9
|
||||
'jsx-a11y/anchor-is-valid': OFF, // 9
|
||||
'import/order': OFF, // 10
|
||||
'arrow-body-style': OFF, // 10
|
||||
camelcase: OFF, // 10
|
||||
'react/jsx-curly-brace-presence': OFF, // 11
|
||||
'react/no-unescaped-entities': OFF, // 12
|
||||
'no-param-reassign': OFF, // 12
|
||||
'no-unused-vars': OFF, // 13
|
||||
'spaced-comment': OFF, // 14
|
||||
'import/no-unresolved': OFF, // 15
|
||||
'react/no-danger': OFF, // 16
|
||||
'object-shorthand': OFF, // 16
|
||||
'dot-notation': OFF, // 19
|
||||
'react/prefer-stateless-function': OFF, // 22
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue