|
| 1 | +module.exports = { |
| 2 | + settings: { |
| 3 | + 'import/resolver': { |
| 4 | + node: { |
| 5 | + extensions: ['.js', '.jsx', '.ts', '.tsx'], |
| 6 | + }, |
| 7 | + }, |
| 8 | + }, |
| 9 | + env: { |
| 10 | + browser: true, |
| 11 | + es2021: true, |
| 12 | + }, |
| 13 | + extends: ['airbnb', 'prettier', 'plugin:prettier/recommended'], |
| 14 | + parser: '@typescript-eslint/parser', |
| 15 | + parserOptions: { |
| 16 | + ecmaVersion: 'latest', |
| 17 | + sourceType: 'module', |
| 18 | + }, |
| 19 | + plugins: ['@typescript-eslint', 'prettier'], |
| 20 | + rules: { |
| 21 | + 'linebreak-style': 'off', |
| 22 | + 'import/extensions': [ |
| 23 | + 'error', |
| 24 | + 'never', |
| 25 | + { |
| 26 | + json: 'always', |
| 27 | + }, |
| 28 | + ], |
| 29 | + 'react/function-component-definition': [ |
| 30 | + 'error', |
| 31 | + { |
| 32 | + namedComponents: 'arrow-function', |
| 33 | + unnamedComponents: 'arrow-function', |
| 34 | + }, |
| 35 | + ], |
| 36 | + 'react/jsx-filename-extension': 'off', |
| 37 | + 'react/jsx-props-no-spreading': 'off', |
| 38 | + 'react/jsx-indent': 'off', |
| 39 | + 'react/jsx-indent-props': [0, 'first'], |
| 40 | + 'react/require-default-props': 'off', |
| 41 | + 'react/jsx-wrap-multilines': 'off', |
| 42 | + 'no-use-before-define': 'off', |
| 43 | + 'import/prefer-default-export': 'off', |
| 44 | + 'react/react-in-jsx-scope': 'off', |
| 45 | + indent: 'off', |
| 46 | + }, |
| 47 | +}; |
0 commit comments