|
1 | 1 | {
|
2 | 2 | "env": {
|
3 | 3 | "browser": true,
|
4 |
| - "es2021": true |
| 4 | + "es2021": true, |
| 5 | + "jest": true |
5 | 6 | },
|
6 | 7 | "extends": [
|
| 8 | + "plugin:prettier/recommended", |
7 | 9 | "eslint:recommended",
|
8 | 10 | "plugin:react/recommended",
|
9 | 11 | "plugin:@typescript-eslint/recommended",
|
10 |
| - "prettier", |
11 |
| - "plugin:react-hooks/recommended" |
| 12 | + "plugin:react-hooks/recommended", |
| 13 | + "airbnb", |
| 14 | + "airbnb-typescript", |
| 15 | + "prettier" |
12 | 16 | ],
|
13 | 17 | "parser": "@typescript-eslint/parser",
|
14 | 18 | "parserOptions": {
|
15 | 19 | "ecmaFeatures": {
|
16 | 20 | "jsx": true
|
17 | 21 | },
|
18 | 22 | "ecmaVersion": 12,
|
19 |
| - "sourceType": "module" |
| 23 | + "sourceType": "module", |
| 24 | + "project": "./tsconfig.json" |
20 | 25 | },
|
21 |
| - "plugins": ["react", "@typescript-eslint"], |
| 26 | + "plugins": ["react", "@typescript-eslint", "prettier"], |
22 | 27 | "rules": {
|
23 | 28 | "linebreak-style": ["error", "unix"],
|
24 | 29 | "quotes": ["error", "single"],
|
|
36 | 41 | {
|
37 | 42 | "additionalHooks": "(useSideEffect)|(useMemoizedObject)"
|
38 | 43 | }
|
39 |
| - ] |
| 44 | + ], |
| 45 | + "import/prefer-default-export": "off", |
| 46 | + "react/jsx-props-no-spreading": "off", |
| 47 | + "no-nested-ternary": "off", |
| 48 | + "@typescript-eslint/no-shadow": "off", |
| 49 | + "import/no-extraneous-dependencies": "off", |
| 50 | + |
| 51 | + // TODO these came up when upgrading to new eslint config. fix these. |
| 52 | + "no-restricted-syntax": "off", |
| 53 | + "no-param-reassign": "off", |
| 54 | + "@typescript-eslint/no-use-before-define": "off", |
| 55 | + "@typescript-eslint/no-unnecessary-type-constraint": "off", |
| 56 | + "consistent-return": "off", |
| 57 | + "no-await-in-loop": "off", |
| 58 | + "@typescript-eslint/no-unused-vars": "off", |
| 59 | + "import/no-cycle": "off", |
| 60 | + "no-plusplus": "off", |
| 61 | + "no-case-declarations": "off", |
| 62 | + "react/function-component-definition": "off", |
| 63 | + "react/jsx-no-constructed-context-values": "off", // TODO important!, |
| 64 | + "react/destructuring-assignment": "off", |
| 65 | + "react/button-has-type": "off", |
| 66 | + "no-promise-executor-return": "off", |
| 67 | + "react/no-danger": "off", |
| 68 | + "react/no-unstable-nested-components": "off", |
| 69 | + "react/require-default-props": "off", |
| 70 | + "react/jsx-no-useless-fragment": "off", |
| 71 | + "array-callback-return": "off", |
| 72 | + "guard-for-in": "off", |
| 73 | + "no-unreachable-loop": "off", |
| 74 | + "@typescript-eslint/no-throw-literal": "off", |
| 75 | + "jsx-a11y/no-static-element-interactions": "off" |
40 | 76 | },
|
41 |
| - "ignorePatterns": ["**/lib"] |
| 77 | + "ignorePatterns": ["**/lib", "**/webpack.config.ts"] |
42 | 78 | }
|
0 commit comments