-
Notifications
You must be signed in to change notification settings - Fork 33
/
.eslintrc.json
45 lines (45 loc) · 1.53 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
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"createDefaultProgram": true
},
"extends": ["plugin:@angular-eslint/template/process-inline-templates", "prettier"],
"rules": {
// @todo: restore this one once the one below to turn it off temporarily is there
// "@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/no-unused-expressions": "off",
"id-blacklist": "off",
"id-match": "off",
"no-underscore-dangle": "off",
// @todo: restore following
// during the migration to ng 13, did remove tslint in favor of eslint
// but don't want to have to deal with loads of errors during the upgrade
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/member-ordering": "off",
"prefer-arrow/prefer-arrow-functions": "off",
"object-shorthand": "off",
"@typescript-eslint/no-empty-interface": "off",
"prefer-const": "off",
"arrow-body-style": "off"
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}