-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
33 lines (33 loc) · 1.35 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
{
"root": true,
"overrides": [{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.*?.json"],
"createDefaultProgram": true
},
"extends": ["plugin:@angular-eslint/recommended"],
"rules": {
"max-len": ["error", { "code": 200 }],
"comma-dangle": ["error", "never"],
"semi": "off",
"arrow-parens": ["error"],
"@typescript-eslint/semi": ["error", "never"],
"@angular-eslint/directive-selector": ["error", { "type": "attribute", "prefix": [ "app"], "style": "camelCase" }],
"@angular-eslint/component-selector": ["error", { "type": "element", "prefix": ["app"], "style": "kebab-case" }],
"@angular-eslint/component-class-suffix": ["error", { "suffixes": ["Component", "Page", "Action"] }],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"@typescript-eslint/no-unused-vars": ["error"],
"no-restricted-syntax": ["error", {
"selector": "CallExpression[callee.object.name=\"console\"][callee.property.name=/^(debug|log|time|timeEnd|trace)$/]",
"message": "Unexpected property on console object was called"
}]
}
}, {
"files": ["*.component.html"],
"extends": ["plugin:@angular-eslint/template/recommended"]
}, {
"files": ["*.component.ts"],
"extends": ["plugin:@angular-eslint/template/process-inline-templates"]
}]
}