-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
65 lines (65 loc) · 1.99 KB
/
.eslintrc
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
61
62
63
64
65
{
"env": {
"browser": true,
"es6": true,
"cypress/globals": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": ["react", "cypress", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:i18n-json/recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use,
"pragma": "React", // Pragma to use, default to "React"
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
"version": "detect" // React version. "detect" automatically picks the version you have installed.
}
},
"rules": {
"comma-dangle": 0,
"react/jsx-uses-vars": 1,
"react/display-name": 1,
"react/prop-types": 0,
"no-unused-vars": "warn",
"no-console": 1,
"no-unexpected-multiline": "warn",
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"i18n-json/identical-keys": [
2,
{
"filePath": {
"admin.json": "../../../../src/admin/translations/languages/en.admin.json",
"feedback.json": "../../../../src/feedback/translations/languages/en.feedback.json",
"root.json": "../../../../src/root/translations/languages/en.root.json"
}
}
],
"i18n-json/valid-message-syntax": [
2,
{
"syntax": "non-empty-string"
}
],
"i18n-json/sorted-keys": [
0
]
},
"overrides": [
{
"files": [
"src/*.*"
],
"excludedFiles": "*.spec.ts"
}
]
}