forked from fylein/fyle-qbo-app-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
131 lines (131 loc) · 4.06 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-class-suffix": [
"error",
{
"suffixes": ["Page", "Component"]
}
],
"@typescript-eslint/naming-convention": [
"off",
{
"selector": "variable",
"format": ["camelCase"]
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app"
}
],
"indent": "off",
"semi": "error",
"no-underscore-dangle": "off",
"@angular-eslint/template/no-negated-async": "off",
"@typescript-eslint/prefer-for-of": "off",
"prefer-arrow/prefer-arrow-functions": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@angular-eslint/no-conflicting-lifecycle": "off",
"lines-between-class-members": ["error", "always"],
"@typescript-eslint/no-shadow": "off",
// TODO: change this to 10, important one
"complexity": [2, 16],
"max-depth": ["error", 4],
// "max-params-no-constructor/max-params-no-constructor": ["error", 4],
"max-len": "off",
"space-before-function-paren": "off",
"@typescript-eslint/quotes": "off",
"@angular-eslint/no-empty-lifecycle-method": "off",
"linebreak-style": "off",
"key-spacing": ["error", { "beforeColon": false }],
"keyword-spacing": ["error", { "before": true }],
"brace-style": "error",
"no-trailing-spaces": "error",
"no-console": ["error", {"allow": ["error"]}],
"no-debugger": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off",
"max-nested-callbacks": [2,3],
"prefer-const": ["error"],
"no-use-before-define": ["error"],
"constructor-super": ["error"],
"array-callback-return": ["error"],
"for-direction": ["error"],
"no-cond-assign": ["error"],
"no-const-assign": ["error"],
"no-constant-condition": ["error"],
"no-dupe-else-if": ["error"],
"no-dupe-keys": ["error"],
"no-duplicate-case": ["error"],
"no-irregular-whitespace": ["error"],
"no-unexpected-multiline": ["error"],
"valid-typeof": ["error"],
"block-scoped-var": ["error"],
"capitalized-comments": ["error"],
"consistent-return": ["error"],
"consistent-this": ["error"],
"curly": ["error"],
"default-param-last": ["error"],
"dot-notation": ["error"],
"eqeqeq": ["error"],
"no-confusing-arrow": ["error"],
"no-else-return": ["error"],
"no-empty": ["error"],
"no-eq-null": ["error"],
"no-extra-semi": ["error"],
"no-global-assign": ["error"],
"no-implicit-globals": ["error"],
"no-mixed-operators": ["error"],
"no-multi-str": ["error"],
"spaced-comment": ["error"],
"vars-on-top": ["error"],
"arrow-spacing": ["error"],
"block-spacing": ["error"],
"comma-dangle": ["error"],
"comma-spacing": ["error"],
"comma-style": ["error"],
"computed-property-spacing": ["error"],
"switch-colon-spacing": ["error"]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}