-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
128 lines (128 loc) · 3.93 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
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
{
"env": {
"es2022": true,
"node": true,
"browser": true
},
"parserOptions": {
"sourceType": "script"
},
"ignorePatterns": [
"**/*.json",
"**/node_modules"
],
"overrides": [
{
"files": ["src/**/*.ts"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/warnings"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"sourceType": "module"
},
"globals": {
"KeyUsage": "readonly",
"EventListener": "readonly",
"AddEventListenerOptions": "readonly",
"IDBTransactionMode": "readonly",
"NodeJS": "readonly",
"CustomElementConstructor": "readonly"
},
"rules": {
"no-bitwise": "error",
"camelcase": ["error", { "properties": "never" }],
"curly": "error",
"eqeqeq": "error",
"wrap-iife": ["error", "any"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"@typescript-eslint/no-use-before-define": "error",
"no-caller": "error",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "always"],
"no-undef": "error",
"strict": ["error", "safe"],
"no-duplicate-imports": "error",
"eol-last": "error",
"no-trailing-spaces": "error",
"object-curly-newline": ["error"],
"max-len": ["error", { "code": 120 }],
"space-before-blocks": "error",
"keyword-spacing": "error",
"arrow-spacing": "error",
"no-multiple-empty-lines": "error",
"object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-explicit-any": "off", // temporary solution
"@typescript-eslint/no-unused-vars": "error",
"lines-between-class-members":["error", "always", { "exceptAfterSingleLine": true }],
"import/newline-after-import": ["error", { "count": 2 }],
"import/no-duplicates": "off",
"space-infix-ops": "warn",
"comma-spacing": "error",
"key-spacing": "error",
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": ["block-like", "const", "let", "var"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}
],
"new-cap": [
"error", {
"capIsNewExceptions": [
"Attribute",
"Component",
"ContentChild",
"ContentChildren",
"Directive",
"Host",
"HostBinding",
"HostListener",
"Inject",
"Injectable",
"Input",
"NgModule",
"Optional",
"Output",
"Pipe",
"Self",
"SkipSelf",
"ViewChild",
"ViewChildren"
]
}
],
"@typescript-eslint/member-ordering": [
"error",
{
"classes": [
"static-field",
"decorated-field",
"public-field",
"public-readonly-field",
"protected-field",
"protected-readonly-field",
"private-field",
"private-readonly-field",
"constructor",
"decorated-method",
"protected-instance-method",
["public-instance-method", "get", "set"],
"public-method",
"protected-method",
"private-method"
]
}
]
}
}
],
"globals": {
"chrome": "readonly"
}
}