|
| 1 | +env: |
| 2 | + browser: true |
| 3 | + |
| 4 | +extends: |
| 5 | + - ./.eslintrc.yml |
| 6 | + - plugin:react/recommended |
| 7 | + - plugin:react-hooks/recommended |
| 8 | + |
| 9 | +parserOptions: |
| 10 | + ecmaFeatures: |
| 11 | + jsx: true |
| 12 | + |
| 13 | +plugins: |
| 14 | + - react |
| 15 | + - react-hooks |
| 16 | + |
| 17 | +rules: |
| 18 | + react/button-has-type: error |
| 19 | + react/default-props-match-prop-types: error |
| 20 | + react/destructuring-assignment: error |
| 21 | + react/display-name: off |
| 22 | + react/forbid-component-props: |
| 23 | + - error |
| 24 | + - forbid: |
| 25 | + - style |
| 26 | + react/forbid-dom-props: |
| 27 | + - error |
| 28 | + - forbid: |
| 29 | + - id |
| 30 | + |
| 31 | + # Need to set "children" prop types to "any" |
| 32 | + # react/forbid-prop-types: error |
| 33 | + |
| 34 | + react/no-access-state-in-setstate: error |
| 35 | + react/no-array-index-key: error |
| 36 | + react/no-danger: error |
| 37 | + react/no-did-mount-set-state: error |
| 38 | + react/no-did-update-set-state: error |
| 39 | + react/no-redundant-should-component-update: error |
| 40 | + react/no-typos: error |
| 41 | + react/no-this-in-sfc: error |
| 42 | + react/no-unescaped-entities: error |
| 43 | + react/no-unsafe: error |
| 44 | + react/no-unused-prop-types: error |
| 45 | + react/no-unused-state: error |
| 46 | + react/no-will-update-set-state: error |
| 47 | + react/prefer-es6-class: error |
| 48 | + react/prefer-read-only-props: error |
| 49 | + react/require-default-props: error |
| 50 | + react/self-closing-comp: error |
| 51 | + react/sort-prop-types: |
| 52 | + - error |
| 53 | + - ignoreCase: true |
| 54 | + react/state-in-constructor: error |
| 55 | + react/static-property-placement: |
| 56 | + - error |
| 57 | + - property assignment |
| 58 | + react/style-prop-object: error |
| 59 | + react/void-dom-elements-no-children: error |
| 60 | + react/jsx-boolean-value: |
| 61 | + - error |
| 62 | + - always |
| 63 | + react/jsx-closing-bracket-location: |
| 64 | + - error |
| 65 | + - tag-aligned |
| 66 | + react/jsx-closing-tag-location: error |
| 67 | + react/jsx-equals-spacing: |
| 68 | + - error |
| 69 | + - never |
| 70 | + react/jsx-first-prop-new-line: |
| 71 | + - error |
| 72 | + - multiline-multiprop |
| 73 | + react/jsx-handler-names: error |
| 74 | + react/jsx-indent: |
| 75 | + - error |
| 76 | + - 2 |
| 77 | + react/jsx-indent-props: |
| 78 | + - error |
| 79 | + - 2 |
| 80 | + react/jsx-max-props-per-line: |
| 81 | + - error |
| 82 | + - maximum: 1 |
| 83 | + when: multiline |
| 84 | + react/jsx-no-bind: error |
| 85 | + react/jsx-no-literals: error |
| 86 | + |
| 87 | + # Conflicts with prettier |
| 88 | + # react/jsx-one-expression-per-line: |
| 89 | + # - error |
| 90 | + # - allow: literal |
| 91 | + |
| 92 | + react/jsx-fragments: |
| 93 | + - error |
| 94 | + - element |
| 95 | + react/jsx-pascal-case: error |
| 96 | + react/jsx-props-no-multi-spaces: error |
| 97 | + react/jsx-sort-default-props: |
| 98 | + - error |
| 99 | + - ignoreCase: true |
| 100 | + react/jsx-sort-props: |
| 101 | + - error |
| 102 | + - ignoreCase: true |
| 103 | + react/jsx-tag-spacing: |
| 104 | + - error |
| 105 | + - afterOpening: never |
| 106 | + beforeClosing: never |
| 107 | + beforeSelfClosing: always |
| 108 | + closingSlash: never |
| 109 | + |
| 110 | + # Conflict with no-extra-parens |
| 111 | + react/jsx-wrap-multilines: error |
| 112 | + |
| 113 | + react-hooks/rules-of-hooks: error |
| 114 | + react-hooks/exhaustive-deps: warn |
| 115 | + |
| 116 | +settings: |
| 117 | + react: |
| 118 | + version: detect |
0 commit comments