|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + browser: true, |
| 5 | + es6: true, |
| 6 | + }, |
| 7 | + globals: { |
| 8 | + window: "readonly", |
| 9 | + }, |
| 10 | + parser: "@typescript-eslint/parser", |
| 11 | + parserOptions: { |
| 12 | + parser: "@babel/eslint-parser", |
| 13 | + ecmaVersion: 6, |
| 14 | + sourceType: "module", |
| 15 | + }, |
| 16 | + extends: [ |
| 17 | + "airbnb", |
| 18 | + "plugin:react/recommended", |
| 19 | + "plugin:react-hooks/recommended", |
| 20 | + "plugin:jsx-a11y/recommended", |
| 21 | + "plugin:@typescript-eslint/eslint-recommended", |
| 22 | + "plugin:@typescript-eslint/recommended", |
| 23 | + "prettier", |
| 24 | + ], |
| 25 | + settings: { |
| 26 | + "import/resolver": { |
| 27 | + node: { |
| 28 | + paths: [".", "src"], |
| 29 | + extensions: [".js", ".ts"], |
| 30 | + }, |
| 31 | + }, |
| 32 | + }, |
| 33 | + plugins: [ |
| 34 | + "prettier", |
| 35 | + "react", |
| 36 | + "jsx-a11y", |
| 37 | + "react-hooks", |
| 38 | + "@typescript-eslint", |
| 39 | + ], |
| 40 | + rules: { |
| 41 | + "import/extensions": "off", |
| 42 | + "import/prefer-default-export": "off", |
| 43 | + "import/no-webpack-loader-syntax": "off", |
| 44 | + "import/no-unresolved": "off", |
| 45 | + "import/no-extraneous-dependencies": "off", |
| 46 | + "no-use-before-define": "off", |
| 47 | + "no-console": "off", |
| 48 | + "no-extend-native": "off", |
| 49 | + "no-param-reassign": "off", |
| 50 | + "class-methods-use-this": "off", |
| 51 | + "node/no-unpublished-require": "off", |
| 52 | + "node/no-missing-import": "off", |
| 53 | + "node/no-unpublished-import": "off", |
| 54 | + "dot-notation": ["error", { allowKeywords: true }], |
| 55 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 56 | + "@typescript-eslint/no-explicit-any": "off", |
| 57 | + "@typescript-eslint/no-var-requires": "off", |
| 58 | + "func-names": "off", |
| 59 | + "no-underscore-dangle": "off", |
| 60 | + camelcase: "warn", |
| 61 | + "no-plusplus": "off", |
| 62 | + "no-nested-ternary": "off", |
| 63 | + "@typescript-eslint/ban-types": "warn", |
| 64 | + "no-unused-expressions": "off", |
| 65 | + }, |
| 66 | +}; |
0 commit comments