-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
36 lines (35 loc) · 1.05 KB
/
eslint.config.js
File metadata and controls
36 lines (35 loc) · 1.05 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
const nx = require('@nx/eslint-plugin');
const jsoncParser = require('jsonc-eslint-parser');
module.exports = [
{
ignores: ['**/dist', '**/projects/docs', '.angular/**'],
},
...nx.configs['flat/base'],
...nx.configs['flat/typescript'],
...nx.configs['flat/javascript'],
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@angular-eslint/component-class-suffix': 'off',
'@angular-eslint/directive-class-suffix': 'off',
'@angular-eslint/no-input-rename': 'off',
'@angular-eslint/template/elements-content': 'off',
'@angular-eslint/template/click-events-have-key-events': 'off',
},
},
{
files: ['**/package.json'],
languageOptions: {
parser: jsoncParser,
},
rules: {
'@nx/dependency-checks': 'error',
},
},
];