generated from frankframework/angular-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.15 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 = {
root: true,
ignorePatterns: [],
overrides: [
{
files: ['*.ts'],
parserOptions: {
project: ['tsconfig.app.json', 'tsconfig.spec.json', 'projects/angular-components/tsconfig.lib.json'],
tsconfigRootDir: __dirname,
createDefaultProgram: true,
sourceType: 'module',
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@angular-eslint/recommended',
'plugin:@angular-eslint/template/process-inline-templates',
'plugin:unicorn/recommended',
'plugin:prettier/recommended',
],
rules: {
'prefer-template': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'unicorn/prevent-abbreviations': 'warn',
'unicorn/no-array-reduce': 'off',
'unicorn/prefer-ternary': 'warn',
'unicorn/no-null': 'off',
'unicorn/prefer-dom-node-text-content': 'warn',
},
},
{
files: ['*.component.html', '*.css', '*.scss'],
extends: [
'plugin:@angular-eslint/template/recommended',
'plugin:prettier/recommended'
],
rules: {},
},
],
};