-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy patheslint.config.js
More file actions
35 lines (34 loc) · 1002 Bytes
/
Copy patheslint.config.js
File metadata and controls
35 lines (34 loc) · 1002 Bytes
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
import nx from '@nx/eslint-plugin';
import storybookPlugin from 'eslint-plugin-storybook';
export default [
{
ignores: ['**/node_modules/**', '**/.dist/**', '**/dist/**'],
},
...nx.configs['flat/typescript'],
...storybookPlugin.configs['flat/recommended'],
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrors: 'none',
},
],
},
},
{
files: ['**/*.spec.ts', '**/test-setup.ts'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
},
},
];