-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
60 lines (60 loc) · 1.5 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
56
57
58
59
60
module.exports = {
parser: 'babel-eslint', // Specifies the ESLint parser
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:cypress/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',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
overrides: [
{
files: ['**/cypress/**'],
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',
},
},
],
}