forked from jd-orion/ccms
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc
More file actions
93 lines (93 loc) · 2.08 KB
/
.eslintrc
File metadata and controls
93 lines (93 loc) · 2.08 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"env": {
"browser": true,
"es2021": true,
"jest": true,
"node": true,
"commonjs": true
},
"extends": [
"airbnb",
"plugin:compat/recommended",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"babel",
"jest",
"react-hooks",
"@typescript-eslint"
],
"settings": {
"react": {
"version": "16.13.1"
},
"polyfills": [
"Promise"
]
},
"rules": {
"react/jsx-props-no-spreading": 0,
"no-use-before-define": 0,
"react/display-name": 0,
"import/extensions": 0,
"import/no-cycle": 0,
"consistent-return": 0,
"no-restricted-syntax": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.tsx"]}],
"@typescript-eslint/no-empty-function": 1,
"typescript-eslint/no-explicit-any": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-plusplus": 0,
"no-continue": 0,
"react/no-array-index-key": 0,
"no-return-await": 1,
"import/no-unresolved": [1, { "ignore": ["^ccms"] }],
"no-await-in-loop": 0,
"no-nested-ternary": 1,
"react/jsx-no-useless-fragment": 0,
"no-shadow": 1,
"no-template-curly-in-string": 0,
"comma-dangle": [
"error",
"never"
],
"space-before-function-paren": [
0,
"always"
],
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"jest/valid-title": 0,
"jest/no-conditional-expect": 0,
"max-classes-per-file": 0,
"react/no-unused-prop-types": 0,
"react/no-unused-class-component-methods": 0,
"react/require-default-props": 0,
"class-methods-use-this": 0,
"no-lonely-if": 0,
"no-else-return": 0
}
}