forked from taiga-family/taiga-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.ts
More file actions
44 lines (43 loc) · 1.69 KB
/
Copy patheslint.config.ts
File metadata and controls
44 lines (43 loc) · 1.69 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
import taiga from '@taiga-ui/eslint-plugin-experience-next';
export default [
...taiga.configs.recommended,
...taiga.configs['taiga-specific'],
{
files: ['**/legacy/**/*.ts'],
rules: {'@angular-eslint/prefer-standalone': 'off'},
},
{
files: ['**/*.{ts,js}'],
rules: {
'import/no-cycle': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'unicorn/no-array-method-this-argument': 'off',
'@typescript-eslint/max-params': ['error', {countVoidThis: true, max: 5}],
// TODO enable after fixing all issues
'@angular-eslint/prefer-signals': 'off',
// TODO: enable after https://github.com/typescript-eslint/typescript-eslint/issues/11790
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/strict-void-return': 'off',
},
},
{
files: ['**/*.spec.ts', '**/*.cy.ts', '**/demo/**/*.ts'],
rules: {'no-irregular-whitespace': 'off'},
},
{
rules: {'@taiga-ui/experience-next/no-deep-imports': 'off'},
files: [
'projects/demo/src/pages/components/icon/examples/4/index.ts',
'projects/demo/src/pages/markup/breakpoints/index.ts',
],
},
{
files: ['**/*.html'],
rules: {
'@taiga-ui/experience-next/no-nested-interactive': 'off', // TODO: fix later
'@angular-eslint/template/no-empty-control-flow': 'off', // TODO: fix later
'@angular-eslint/template/no-non-null-assertion': 'off', // TODO: fix later
'@angular-eslint/template/no-nested-tags': 'off', // TODO: fix later
},
},
];