-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
25 lines (24 loc) · 681 Bytes
/
eslint.config.js
File metadata and controls
25 lines (24 loc) · 681 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
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
export default [
{ ignores: ['**/spec/coverage/**/*', '**/dist/**/*'] },
{ languageOptions: { globals: globals.node } },
{ ...pluginJs.configs.recommended },
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
project: true,
tsconfigDirName: import.meta.dirname
}
},
rules: {
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }]
}
},
{
files: ['**/*.js', '**/*.mjs'],
...tseslint.configs.disableTypeChecked
}
];