-
Notifications
You must be signed in to change notification settings - Fork 48
/
.eslintrc.mp.json
85 lines (85 loc) · 3.65 KB
/
.eslintrc.mp.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
{
"root": true,
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["deprecation"],
"extends": [
"./node_modules/@spryker/frontend-config.eslint/.eslintrc.js",
"plugin:@nx/typescript",
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"parserOptions": {
"project": "./tsconfig.mp.json"
},
"rules": {
"deprecation/deprecation": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-empty": "error",
"no-use-before-define": "off",
"max-classes-per-file": "off",
"max-lines": "off",
"handle-callback-err": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/no-restricted-imports": ["error", "rxjs/Rx"],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreParameters": true }],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/member-ordering": [
"error",
{
"default": ["instance-field", "instance-method", "static-field", "static-method"]
}
],
"@angular-eslint/contextual-lifecycle": "error",
"@angular-eslint/component-class-suffix": "error",
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "mp",
"style": "kebab-case"
}
],
"@angular-eslint/directive-class-suffix": "error",
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "mp",
"style": "camelCase"
}
],
"@angular-eslint/no-conflicting-lifecycle": "error",
"@angular-eslint/no-host-metadata-property": "off",
"@angular-eslint/no-input-rename": "error",
"@angular-eslint/no-inputs-metadata-property": "error",
"@angular-eslint/no-output-native": "error",
"@angular-eslint/no-output-on-prefix": "error",
"@angular-eslint/no-output-rename": "error",
"@angular-eslint/no-outputs-metadata-property": "error",
"@angular-eslint/use-lifecycle-interface": "error",
"@angular-eslint/use-pipe-transform-interface": "error"
}
},
{
"files": ["*.html"],
"parser": "@angular-eslint/template-parser",
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": 0,
"@angular-eslint/no-host-metadata-property": 0,
"@angular-eslint/directive-class-suffix": 0,
"no-prototype-builtins": 0
}
}
]
}