-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
36 lines (31 loc) · 906 Bytes
/
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
// @ts-check
import tseslint from 'typescript-eslint'
import prettier from 'eslint-plugin-prettier'
import importX from 'eslint-plugin-import-x'
export default tseslint.config({
files: ['**/*.{mjs,cjs,js,ts}'],
ignores: ['**/*.{config,test}.{mjs,cjs,js,ts}', '.*.mjs'],
plugins: {
'@typescript-eslint': tseslint.plugin,
prettier,
'import-x': importX,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: true,
},
},
rules: {
// ImportX rules
...importX.configs.recommended.rules,
'import-x/no-unresolved': 'off',
'import-x/consistent-type-specifier-style': ['error', 'prefer-top-level'],
// Prettier rules
'prettier/prettier': 'error',
// TypeScript rules
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
})