-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
41 lines (40 loc) · 1.18 KB
/
eslint.config.mjs
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
import unusedImportsPlugin from "eslint-plugin-unused-imports";
import tslint from "typescript-eslint";
export default
tslint.config({
files: ['**/*.ts'],
languageOptions: {
parser: tslint.parser,
parserOptions: {
tsconfigRootDir: import.meta.dirname,
// sourceType: "module",
},
globals: {
node: true,
jest: true,
},
},
plugins: {
'@typescript-eslint': tslint.plugin,
'unused-imports': unusedImportsPlugin,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-vars': [
'error',
{
'vars': 'all',
'varsIgnorePattern': '^_',
'args': 'after-used',
'argsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_',
},
],
'unused-imports/no-unused-imports': 'error',
},
ignores: ['eslint.config.mjs', 'node_modules/**', 'dist/**'],
})