-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
101 lines (101 loc) · 2.17 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
{
"root": true,
"ignorePatterns": ["**/*"],
"rules": {
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"createDefaultProgram": true
},
"extends": [
"prettier",
"plugin:prettier/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:import/recommended",
"plugin:import/typescript"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
}
},
"plugins": ["import", "prettier", "@typescript-eslint", "@angular-eslint"],
"rules": {
"prettier/prettier": "error",
"@angular-eslint/component-class-suffix": [
"error",
{
"suffixes": ["Component", "Container", "Page"]
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "kp",
"style": "kebab-case"
}
],
"@typescript-eslint/no-inferrable-types": "off",
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"import/order": "error",
"import/no-unresolved": "error"
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {
"@angular-eslint/template/prefer-control-flow": "error",
"@angular-eslint/template/use-track-by-function": "error"
}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
}
],
"plugins": ["unused-imports", "@nx"]
}