|
| 1 | +module.exports = { |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es2021: true, |
| 5 | + jest: true, |
| 6 | + }, |
| 7 | + extends: [ |
| 8 | + 'plugin:react/recommended', |
| 9 | + 'airbnb', |
| 10 | + 'plugin:storybook/recommended', |
| 11 | + 'prettier', |
| 12 | + 'plugin:storybook/recommended', |
| 13 | + ], |
| 14 | + parser: '@typescript-eslint/parser', |
| 15 | + parserOptions: { |
| 16 | + ecmaFeatures: { |
| 17 | + jsx: true, |
| 18 | + }, |
| 19 | + ecmaVersion: 'latest', |
| 20 | + sourceType: 'module', |
| 21 | + }, |
| 22 | + plugins: [ |
| 23 | + 'react', |
| 24 | + '@typescript-eslint', |
| 25 | + 'typescript-sort-keys', |
| 26 | + 'unused-imports', |
| 27 | + 'prettier', |
| 28 | + 'prefer-arrow', |
| 29 | + ], |
| 30 | + rules: { |
| 31 | + 'no-param-reassign': 'off', |
| 32 | + 'consistent-return': 'off', |
| 33 | + 'react/prop-types': 'off', |
| 34 | + '@typescript-eslint/no-unused-vars': 1, |
| 35 | + 'import/extensions': 'off', |
| 36 | + 'import/no-extraneous-dependencies': 'off', |
| 37 | + 'import/no-unresolved': 'off', |
| 38 | + 'import/prefer-default-export': 'off', |
| 39 | + 'no-nested-ternary': 'off', |
| 40 | + 'no-plusplus': 'off', |
| 41 | + 'no-unused-vars': 'off', |
| 42 | + 'no-use-before-define': 'off', |
| 43 | + 'prettier/prettier': 'error', |
| 44 | + 'react/destructuring-assignment': 'off', |
| 45 | + 'react/function-component-definition': 'off', |
| 46 | + 'react/jsx-filename-extension': 'off', |
| 47 | + 'react/jsx-props-no-spreading': 'off', |
| 48 | + 'react/require-default-props': 'off', |
| 49 | + 'typescript-sort-keys/interface': 'error', |
| 50 | + 'typescript-sort-keys/string-enum': 'error', |
| 51 | + 'unused-imports/no-unused-imports': 'error', |
| 52 | + 'prefer-arrow/prefer-arrow-functions': [ |
| 53 | + 'error', |
| 54 | + { |
| 55 | + disallowPrototype: true, |
| 56 | + singleReturnOnly: true, |
| 57 | + classPropertiesAllowed: false, |
| 58 | + }, |
| 59 | + ], |
| 60 | + }, |
| 61 | + ignorePatterns: ['test/*', 'src/assets/*'], |
| 62 | +}; |
0 commit comments