Repository navigation
Expand file tree
/
Copy path.eslintrc.js
More file actions
63 lines (63 loc) · 2.25 KB
/
Copy path.eslintrc.js
File metadata and controls
63 lines (63 loc) · 2.25 KB
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
module.exports = {
extends: ['plugin:@angular-eslint/recommended'],
rules: {
// ORIGINAL tslint.json -> "directive-selector": [true, "attribute", "app", "camelCase"],
'@angular-eslint/directive-selector': [
'error',
{ type: 'attribute', prefix: 'app', style: 'camelCase' },
],
// ORIGINAL tslint.json -> "component-selector": [true, "element", "app", "kebab-case"],
'@angular-eslint/component-selector': [
'error',
{ type: 'element', prefix: 'app', style: 'kebab-case' },
],
},
overrides: [
// Add this rules, if you use inline templates inside *.component.ts files
{
files: ['*.ts'],
extends: [
'airbnb-typescript/base',
// Settings for Prettier
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
//Custom rles
rules: {
"no-console": "off",
"no-underscore-dangle": "off",
"no-return-assign": "off",
"consistent-return": "off",
"no-use-before-define": "off",
"no-param-reassign": "off",
//"camelcase": "off",
"no-self-assign": "off",
"@typescript-eslint/no-unused-vars": "warn",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
'@typescript-eslint/lines-between-class-members': 'off',
"@typescript-eslint/no-useless-constructor": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-redeclare": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-shadow": "off",
"func-names": "off",
"import/newline-after-import": "warn",
"prettier/prettier": [
"warn",
{
"endOfLine": "auto"
}
]
},
plugins: ['@angular-eslint/template'],
processor: '@angular-eslint/template/extract-inline-html',
},
],
};