|
1 | 1 | { |
2 | 2 | "root": true, |
| 3 | + "env": { |
| 4 | + "browser": true, |
| 5 | + "es6": true, |
| 6 | + "jest": true |
| 7 | + }, |
3 | 8 | "parser": "@typescript-eslint/parser", |
4 | 9 | "parserOptions": { |
5 | 10 | "ecmaVersion": 2020, |
|
11 | 16 | "settings": { |
12 | 17 | "react": { |
13 | 18 | "version": "detect" |
| 19 | + }, |
| 20 | + "import/resolver": { |
| 21 | + "node": { |
| 22 | + "extensions": [ |
| 23 | + ".js", |
| 24 | + ".jsx", |
| 25 | + ".ts", |
| 26 | + ".tsx" |
| 27 | + ] |
| 28 | + } |
14 | 29 | } |
15 | 30 | }, |
16 | 31 | "rules": { |
17 | 32 | "no-unused-expressions": "off", |
18 | 33 | "@typescript-eslint/ban-ts-comment": "off", |
19 | 34 | "@typescript-eslint/no-explicit-any": "off", |
20 | 35 | "@typescript-eslint/no-unused-expressions": "error", |
21 | | - "react/display-name": "off" |
| 36 | + "react/display-name": "off", |
| 37 | + "import/extensions": "off", |
| 38 | + // TODO(Ahyoung): uncomment below after find a way not to get an error \w type.d.ts |
| 39 | + // "import/extensions": [ |
| 40 | + // "warn", |
| 41 | + // "ignorePackages", |
| 42 | + // { |
| 43 | + // "js": "never", |
| 44 | + // "jsx": "never", |
| 45 | + // "ts": "never", |
| 46 | + // "tsx": "never" |
| 47 | + // } |
| 48 | + // ], |
| 49 | + // TODO(Ahyoung): fix and remove one by one |
| 50 | + "no-floating-decimal": "off", |
| 51 | + "no-shadow": "off", |
| 52 | + "no-useless-return": "off", |
| 53 | + "no-else-return": "off", |
| 54 | + "no-param-reassign": "off", |
| 55 | + "no-useless-escape": "off", |
| 56 | + "no-underscore-dangle": "off", |
| 57 | + "no-confusing-arrow": "off", |
| 58 | + "no-mixed-operators": "off", |
| 59 | + "no-nested-ternary": "off", |
| 60 | + "no-unneeded-ternary": "off", |
| 61 | + "no-use-before-define": "off", |
| 62 | + "no-cond-assign": "off", |
| 63 | + "no-plusplus": "off", |
| 64 | + "no-bitwise": "off", |
| 65 | + "no-restricted-syntax": "off", |
| 66 | + "no-prototype-builtins": "off", |
| 67 | + "import/no-unresolved": "off", |
| 68 | + "import/no-extraneous-dependencies": "off", |
| 69 | + "import/no-useless-path-segments": "off", |
| 70 | + "import/prefer-default-export": "off", |
| 71 | + "import/order": "off", |
| 72 | + "import/no-named-as-default-member": "off", |
| 73 | + "object-curly-newline": "off", |
| 74 | + "object-shorthand": "off", |
| 75 | + "consistent-return": "off", |
| 76 | + "max-len": "off", |
| 77 | + "arrow-body-style": "off", |
| 78 | + "function-paren-newline": "off", |
| 79 | + "prefer-template": "off", |
| 80 | + "semi": "off", |
| 81 | + "padded-blocks": "off", |
| 82 | + "arrow-parens": "off", |
| 83 | + "dot-notation": "off", |
| 84 | + "camelcase": "off", |
| 85 | + "radix": "off", |
| 86 | + "prefer-destructuring": "off", |
| 87 | + "default-case": "off", |
| 88 | + "curly": "off", |
| 89 | + "yoda": "off", |
| 90 | + "brace-style": "off", |
| 91 | + "nonblock-statement-body-position": "off", |
| 92 | + "func-names": "off" |
22 | 93 | }, |
23 | 94 | "extends": [ |
24 | 95 | "plugin:react/recommended", |
25 | | - "plugin:@typescript-eslint/recommended" |
| 96 | + "plugin:@typescript-eslint/recommended", |
| 97 | + "airbnb-base" |
26 | 98 | ], |
27 | 99 | "plugins": [ |
28 | 100 | "react", |
|
0 commit comments