|
| 1 | +module.exports = { |
| 2 | + extends: require.resolve('@umijs/max/eslint'), |
| 3 | + rules: { |
| 4 | + 'no-underscore-dangle': 0, |
| 5 | + 'import/prefer-default-export': 0, |
| 6 | + 'import/no-extraneous-dependencies': 0, |
| 7 | + 'import/extensions': 0, |
| 8 | + 'import/no-unresolved': 0, |
| 9 | + 'no-unused-vars': 0, |
| 10 | + 'no-use-before-define': 0, |
| 11 | + 'no-undef': 0, |
| 12 | + 'no-shadow': 0, |
| 13 | + 'no-console': 0, |
| 14 | + 'no-plusplus': 0, |
| 15 | + 'no-script-url': 0, |
| 16 | + 'no-restricted-syntax': 0, |
| 17 | + 'no-unused-expressions': 0, |
| 18 | + 'import/no-mutable-exports': 0, |
| 19 | + 'jsx-a11y/click-events-have-key-events': 0, |
| 20 | + 'jsx-a11y/no-noninteractive-element-interactions': 0, |
| 21 | + '@typescript-eslint/no-empty-function': 0, |
| 22 | + '@typescript-eslint/no-unused-vars': 0, |
| 23 | + '@typescript-eslint/no-var-requires': 0, |
| 24 | + '@typescript-eslint/no-use-before-define': 0, |
| 25 | + 'react/prop-types': 0, |
| 26 | + 'react/no-array-index-key': 0, |
| 27 | + 'react/static-property-placement': 0, |
| 28 | + 'react/destructuring-assignment': 0, |
| 29 | + 'react/jsx-filename-extension': 0, |
| 30 | + 'react/jsx-props-no-spreading': 0, |
| 31 | + 'jsx-a11y/no-static-element-interactions': 0, |
| 32 | + 'no-param-reassign': 0, |
| 33 | + 'prefer-destructuring': 0, |
| 34 | + 'jsx-a11y/no-autofocus': 0, |
| 35 | + 'react/no-children-prop': 0, |
| 36 | + 'jsx-a11y/aria-proptypes': 0, |
| 37 | + 'react/require-default-props': 0, |
| 38 | + '@typescript-eslint/ban-types': [ |
| 39 | + 'error', |
| 40 | + { |
| 41 | + extendDefaults: true, |
| 42 | + types: { |
| 43 | + '{}': false, |
| 44 | + }, |
| 45 | + }, |
| 46 | + ], |
| 47 | + }, |
| 48 | +}; |
0 commit comments