-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (55 loc) · 1.51 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
parser: "@babel/eslint-parser", // Specifies the ESLint parser
extends: [
"eslint:recommended",
"plugin:playwright/playwright-test",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended",
],
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
node: true,
es6: true,
},
plugins: ["react", "react-hooks", "inclusive-language"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
},
rules: {
"inclusive-language/use-inclusive-words": "error",
"react/no-unknown-property": ["error", { ignore: ["css", "transition"] }],
},
overrides: [
{
files: ["playwright/e2e/**"],
rules: {
"jest/expect-expect": "off",
"jest/no-commented-out-tests": "off",
"jest/no-disabled-tests": "off",
"jest/no-export": "off",
"jest/no-focused-tests": "off",
"jest/no-identical-title": "off",
"jest/no-jest-import": "off",
"jest/no-mocks-import": "off",
"jest/no-jasmine-globals": "off",
"jest/no-standalone-expect": "off",
"jest/no-test-callback": "off",
"jest/no-test-prefixes": "off",
"jest/no-try-expect": "off",
"jest/valid-describe": "off",
"jest/valid-expect": "off",
"jest/valid-expect-in-promise": "off",
},
},
],
}