-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
42 lines (42 loc) · 1 KB
/
eslint.config.js
File metadata and controls
42 lines (42 loc) · 1 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
const parser = require('@typescript-eslint/parser');
const tsEslintPlugin = require('@typescript-eslint/eslint-plugin');
module.exports = [
{
ignores: [
'.github/*',
'.husky/*',
'coverage/*',
'data/*',
'dist/*',
'docs/*',
'logs/*',
'node_modules/*',
],
},
{
name: 'ts/default',
files: ['src/**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parser: parser,
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: '.',
},
},
linterOptions: {
noInlineConfig: true,
reportUnusedDisableDirectives: true,
},
plugins: {
'@typescript-eslint/eslint-plugin': tsEslintPlugin,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
}
];