-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ts
41 lines (40 loc) · 1.3 KB
/
index.ts
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
/*
* Base configuration for es-linting an angular project.
*
* Note that rules that need project-specific configuration (i.e. @angular-eslint/component-selector) must
* be configured within the consuming project itself.
*/
module.exports = {
overrides: [
{
files: ['*.ts', '*.cts', '*.mts', '*.tsx'],
extends: ['plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'],
rules: {
'@shiftcode/rules/import-denylist': [
// TSLint: "import-blacklist"
'error',
{
patterns: [
/\.\/(core|models|shared|static)\/.*/, // use app/* instead
],
},
],
/*
* We frequently apply classes (within some conditions, i.e. key-values.component)
* via component host property.
* Angular styleguide, in comparison, recommends to apply classes/attributes via @HostListener or @HostBinding:
* https://angular.io/guide/styleguide#style-06-03
*/
'@angular-eslint/no-host-metadata-property': 'off',
},
},
{
files: ['*.html'],
extends: [
'plugin:@angular-eslint/template/recommended',
'prettier', // disable rules that will be auto fixed by prettier
],
rules: {},
},
],
}