|
| 1 | +module.exports = { |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es2021: true, |
| 5 | + }, |
| 6 | + extends: [ |
| 7 | + 'plugin:react/recommended', |
| 8 | + 'airbnb', |
| 9 | + ], |
| 10 | + parserOptions: { |
| 11 | + ecmaFeatures: { |
| 12 | + jsx: true, |
| 13 | + }, |
| 14 | + ecmaVersion: 12, |
| 15 | + sourceType: 'module', |
| 16 | + }, |
| 17 | + plugins: [ |
| 18 | + 'react', |
| 19 | + ], |
| 20 | + rules: { |
| 21 | + 'react/no-unescaped-entities': 0, |
| 22 | + 'eslintreact/no-danger': 0, |
| 23 | + 'react/jsx-max-props-per-line': 0, |
| 24 | + 'react/jsx-first-prop-new-line': 0, |
| 25 | + 'no-console': 0, |
| 26 | + 'jsx-a11y/label-has-associated-control': 0, |
| 27 | + 'no-nested-ternary': 0, |
| 28 | + 'consistent-return': 0, |
| 29 | + 'no-alert': 0, |
| 30 | + 'react/jsx-no-constructed-context-values': 0, |
| 31 | + 'import/extensions': 0, |
| 32 | + 'react/prop-types': 0, |
| 33 | + 'linebreak-style': 0, |
| 34 | + 'react/state-in-constructor': 0, |
| 35 | + 'import/prefer-default-export': 0, |
| 36 | + 'react/react-in-jsx-scope': 'off', |
| 37 | + 'react/jsx-props-no-spreading': 'off', |
| 38 | + 'jsx-a11y/no-noninteractive-element-interactions': 'off', |
| 39 | + 'react/function-component-definition': [ |
| 40 | + 2, |
| 41 | + { |
| 42 | + namedComponents: 'arrow-function', |
| 43 | + unnamedComponents: 'arrow-function', |
| 44 | + }, |
| 45 | + ], |
| 46 | + 'max-len': [ |
| 47 | + 2, |
| 48 | + 1050, |
| 49 | + ], |
| 50 | + 'no-multiple-empty-lines': [ |
| 51 | + 'error', |
| 52 | + { |
| 53 | + max: 1, |
| 54 | + maxEOF: 1, |
| 55 | + }, |
| 56 | + ], |
| 57 | + 'no-underscore-dangle': [ |
| 58 | + 'error', |
| 59 | + { |
| 60 | + allow: [ |
| 61 | + '_d', |
| 62 | + '_dh', |
| 63 | + '_h', |
| 64 | + '_id', |
| 65 | + '_m', |
| 66 | + '_n', |
| 67 | + '_t', |
| 68 | + '_text', |
| 69 | + ], |
| 70 | + }, |
| 71 | + ], |
| 72 | + 'object-curly-newline': 0, |
| 73 | + 'react/jsx-filename-extension': 0, |
| 74 | + 'react/jsx-one-expression-per-line': 0, |
| 75 | + 'jsx-a11y/click-events-have-key-events': 0, |
| 76 | + 'jsx-a11y/alt-text': 0, |
| 77 | + 'jsx-a11y/no-autofocus': 0, |
| 78 | + 'jsx-a11y/no-static-element-interactions': 0, |
| 79 | + 'react/no-array-index-key': 0, |
| 80 | + 'jsx-a11y/anchor-is-valid': [ |
| 81 | + 'error', |
| 82 | + { |
| 83 | + components: [ |
| 84 | + 'Link', |
| 85 | + ], |
| 86 | + specialLink: [ |
| 87 | + 'to', |
| 88 | + 'hrefLeft', |
| 89 | + 'hrefRight', |
| 90 | + ], |
| 91 | + aspects: [ |
| 92 | + 'noHref', |
| 93 | + 'invalidHref', |
| 94 | + 'preferButton', |
| 95 | + ], |
| 96 | + }, |
| 97 | + ], |
| 98 | + }, |
| 99 | +}; |
0 commit comments