forked from Kalpesh-18/gdmn-nxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
90 lines (90 loc) · 2.82 KB
/
.eslintrc.json
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
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript", "plugin:@nrwl/nx/react", "plugin:react/recommended"],
"plugins": ["react"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/type-annotation-spacing": "error",
"react/jsx-closing-bracket-location": "warn",
"react/jsx-no-useless-fragment": "off",
"react/jsx-curly-spacing": ["warn", {
"when": "never",
"children": true
}],
"react/jsx-boolean-value": 0,
"react/self-closing-comp": ["error", {
"component": true
}],
"jsx-quotes": 1,
"quotes": ["error", "single"],
"dot-notation": "off",
"eqeqeq": "error",
"nonblock-statement-body-position": ["error", "beside"],
"brace-style": "error",
"spaced-comment": ["error", "always"],
"space-before-blocks": "error",
"keyword-spacing": "error",
"space-infix-ops": "error",
"newline-per-chained-call": "error",
"no-whitespace-before-property": "error",
"padded-blocks": ["error", "never"],
"no-multiple-empty-lines": "error",
"no-multi-spaces": "error",
"no-array-constructor": "error",
"space-in-parens": "error",
"array-bracket-spacing": "error",
"object-curly-spacing": ["error", "always"],
"block-spacing": "error",
"comma-spacing": "error",
"key-spacing": "error",
"no-trailing-spaces": "error",
"id-length": "off",
"camelcase": "error",
"semi": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-max-props-per-line": ["error", { "maximum": { "single": 2, "multi": 1 } }],
"arrow-spacing": "error",
"no-useless-catch": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}