-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
39 lines (38 loc) · 1.08 KB
/
.eslintrc.js
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
module.exports = {
env: {
node: true,
es6: true,
mocha: true,
jasmine: true,
commonjs: true,
},
extends: ['eslint:recommended', 'prettier'],
rules: {
quotes: [2, 'single', 'avoid-escape'],
'no-unused-vars': ['error', { argsIgnorePattern: '^next$' }],
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
ignorePatterns: ['/dist'],
overrides: [
{
files: ['*.ts'],
parserOptions: {
project: './tsconfig.eslint.json',
},
extends: ['plugin:@typescript-eslint/recommended', 'plugin:@angular-eslint/recommended'],
rules: {
'@angular-eslint/directive-selector': ['error', { type: 'attribute', prefix: 'app', style: 'camelCase' }],
'@angular-eslint/component-selector': ['error', { type: 'element', prefix: 'app', style: 'kebab-case' }],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
},
},
{
files: ['*.component.html'],
parser: '@angular-eslint/template-parser',
extends: 'plugin:@angular-eslint/template/recommended',
},
],
};