Repository navigation
Expand file tree
/
Copy patheslint.config.js
More file actions
47 lines (45 loc) · 1.55 KB
/
Copy patheslint.config.js
File metadata and controls
47 lines (45 loc) · 1.55 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
45
46
47
// @ts-check
const js = require('@eslint/js');
const { FlatCompat } = require('@eslint/eslintrc');
const tseslint = require('typescript-eslint');
const angular = require('angular-eslint');
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
module.exports = tseslint.config(
{
ignores: ['dist/**', 'node_modules/**', '.angular/**', 'coverage/**', 'projects/swimlane/ngx-graph/.storybook/**']
},
...compat.extends('prettier', 'plugin:storybook/recommended'),
{
files: ['**/*.ts'],
extends: [...tseslint.configs.recommended, ...angular.configs.tsRecommended],
processor: angular.processInlineTemplates,
languageOptions: {
parserOptions: {
project: ['./tsconfig.json']
}
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@angular-eslint/directive-class-suffix': 'off',
'@angular-eslint/component-class-suffix': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@angular-eslint/no-input-rename': 'off',
'@angular-eslint/no-output-native': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/no-duplicate-enum-values': 'off',
'@angular-eslint/prefer-standalone': 'off',
'@angular-eslint/prefer-inject': 'off',
'@angular-eslint/prefer-on-push-component-change-detection': 'off'
}
},
{
files: ['**/*.html'],
extends: [...angular.configs.templateRecommended],
rules: {}
}
);