|
1 | 1 | { |
2 | | - "extends": ["plugin:fxa/recommended"], |
3 | | - "plugins": ["fxa"], |
4 | | - "parserOptions": { |
5 | | - "ecmaVersion": "2020", |
6 | | - "sourceType": "module" |
7 | | - }, |
8 | | - "env": { |
9 | | - "browser": true, |
10 | | - "jest": true |
11 | | - }, |
| 2 | + "root": true, |
| 3 | + "extends": ["react-app", "react-app/jest"], |
| 4 | + "plugins": ["header"], |
12 | 5 | "rules": { |
13 | | - "require-atomic-updates": "off", |
14 | | - "space-unary-ops": "off", |
15 | | - "no-useless-escape": "off" |
| 6 | + "import/export": "error", |
| 7 | + "import/named": "off", |
| 8 | + "import/no-deprecated": "error", |
| 9 | + "import/no-named-as-default-member": "off", |
| 10 | + "import/no-unresolved": "off", |
| 11 | + "jest/no-jest-import": "off", |
| 12 | + "jest/valid-describe": "off", |
| 13 | + "testing-library/no-wait-for-multiple-assertions": "off", |
| 14 | + "testing-library/no-render-in-setup": "off", |
| 15 | + "testing-library/prefer-find-by": "off", |
| 16 | + "testing-library/no-wait-for-side-effects": "off", |
| 17 | + "testing-library/prefer-presence-queries": "off", |
| 18 | + "testing-library/no-node-access": "off", |
| 19 | + "testing-library/render-result-naming-convention": "off", |
| 20 | + "testing-library/prefer-screen-queries": "off", |
| 21 | + "testing-library/no-unnecessary-act": "off", |
| 22 | + "testing-library/no-container": "off", |
| 23 | + "header/header": [ |
| 24 | + 2, "block", |
| 25 | + " This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. " |
| 26 | + ] |
16 | 27 | }, |
17 | | - "ignorePatterns": [ |
18 | | - "dist", |
19 | | - "node_modules", |
20 | | - "pm2.config.js", |
21 | | - "storybook-static" |
| 28 | + "overrides": [ |
| 29 | + { |
| 30 | + "files": ["*.ts", "*.tsx"], |
| 31 | + "rules": { |
| 32 | + "no-unused-vars": "off", |
| 33 | + "@typescript-eslint/no-unused-vars": "error" |
| 34 | + } |
| 35 | + } |
22 | 36 | ], |
23 | | - "root": true |
| 37 | + "ignorePatterns": ["build/", "scripts/build.js", "dist/"] |
24 | 38 | } |
0 commit comments