-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.js
78 lines (77 loc) · 1.89 KB
/
eslintrc.js
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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
node: true
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
rules: {
'max-len': [2, 140],
'no-multiple-empty-lines': 1,
semi: [2, 'always'],
'quote-props': [2, 'as-needed'],
quotes: 'off',
'no-case-declarations': 0,
eqeqeq: 2,
'@typescript-eslint/import-spacing': 0,
'@typescript-eslint/indent': 0,
'@typescript-eslint/one-line': 0,
'@typescript-eslint/eofline': 0,
'@typescript-eslint/object-literal-shorthand': 0,
'@typescript-eslint/array-type': 0,
'@typescript-eslint/arrow-parens': 0,
'@typescript-eslint/contextual-lifecycle': 0,
'@typescript-eslint/directive-selector': [
0,
'attribute',
'app',
'camelCase'
],
'@typescript-eslint/component-selector': [
0,
'element',
'app',
'kebab-case'
],
'@typescript-eslint/interface-name': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/max-classes-per-file': 0,
'@typescript-eslint/member-access': 0,
'@typescript-eslint/member-ordering': [
2,
{
default: [
'static-field',
'instance-field',
'static-method',
'instance-method'
]
}
],
'@typescript-eslint/quotes': [
'error',
'single',
{
allowTemplateLiterals: true
}
],
'@typescript-eslint/no-empty': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-inferrable-types': 1,
'@typescript-eslint/no-non-null-assertion': 2,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-bitwise': 0,
'@typescript-eslint/object-literal-sort-keys': 0,
'@typescript-eslint/ordered-imports': 0,
'@typescript-eslint/trailing-comma': 0,
'@typescript-eslint/use-host-property-decorator': 0
},
};