forked from ShankyTiwari/ng-material-multilevel-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
164 lines (164 loc) · 4.56 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"root": true,
"ignorePatterns": [
"projects/**/*",
"src/polyfills.ts",
"src/app/generated/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"plugins": [
"eslint-plugin-rxjs",
"prettier"
],
"rules": {
"no-prototype-builtins": "off",
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "pp",
"style": "kebab-case"
}
],
"@angular-eslint/directive-class-suffix": "off",
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "pp",
"style": "camelCase"
}
],
"@typescript-eslint/adjacent-overload-signatures": "off",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-empty-function": "off",
"arrow-parens": [
"off",
"always"
],
"brace-style": [
"error",
"1tbs"
],
"id-blacklist": "off",
"id-match": "off",
"import/no-extraneous-dependencies": "off",
"import/no-internal-modules": "off",
"linebreak-style": "off",
"max-classes-per-file": [
"error",
1
],
"max-len": [
"error",
{
"code": 240
}
],
"new-parens": "off",
"newline-per-chained-call": "off",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-extra-bind": "error",
"no-extra-semi": "off",
"no-irregular-whitespace": "off",
"no-new-func": "error",
"no-redeclare": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-underscore-dangle": "off",
"object-shorthand": "off",
"prefer-object-spread": "error",
"quote-props": "off",
"react/jsx-curly-spacing": "off",
"react/jsx-equals-spacing": "off",
"react/jsx-wrap-multilines": "off",
"rxjs/no-unsafe-takeuntil": "error",
"space-before-function-paren": "off",
"no-extra-boolean-cast": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"space-in-parens": [
"off",
"never"
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"curly": "warn",
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 0
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
"@angular-eslint/template/banana-in-box": "off",
"@angular-eslint/template/no-negated-async": "off",
"@angular-eslint/template/click-events-have-key-events": "off",
"@angular-eslint/template/interactive-supports-focus": "off"
}
}
]
}