-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
41 lines (40 loc) · 993 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const eslintrc = {
extends: [
"plugin:prettier/recommended",
"prettier",
"plugin:json/recommended",
"react-app",
"plugin:cypress/recommended",
"plugin:react-hooks/recommended",
"plugin:jest-dom/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
],
parser: "@typescript-eslint/parser",
plugins: ["jest-dom", "testing-library", "jest"],
settings: {
"import/core-modules": [
"react",
"react-dom",
"react-router-dom",
"config",
"react-helmet",
],
},
rules: {
"no-unused-vars": "off", // duplicate @typescript-eslint/no-unused-vars
"jest/consistent-test-it": ["error", { fn: "it" }],
"jest/require-top-level-describe": ["error"],
},
env: {
browser: true,
"jest/globals": true,
},
overrides: [
{
files: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
extends: ["plugin:testing-library/react"],
},
],
};
module.exports = eslintrc;