-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.cjs
33 lines (33 loc) · 809 Bytes
/
.eslintrc.cjs
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
module.exports = {
root: true,
parserOptions: {
sourceType: 'module'
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/stylistic',
'plugin:vitest/recommended',
'prettier'
],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }]
},
overrides: [
{
// root files
files: ['*.{js,cjs}'],
excludedFiles: ['*/**/*.{js,cjs}'],
env: {
node: true
},
rules: {
'@typescript-eslint/no-var-requires': 'off'
}
}
],
ignorePatterns: ['dist', 'node_modules'],
reportUnusedDisableDirectives: true
}