-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
47 lines (47 loc) · 1000 Bytes
/
.eslintrc.js
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
43
44
45
46
47
module.exports = {
plugins: ['prettier', 'vitest'],
extends: [
'airbnb',
'airbnb/hooks',
'plugin:prettier/recommended',
'plugin:vitest/recommended',
],
env: {
es2021: true,
node: true,
browser: true,
},
ignorePatterns: ['**/*.d.ts'],
rules: {
'newline-before-return': 2,
'no-unused-vars': 2,
'no-console': 2,
'import/no-default-export': 2,
'import/no-self-import': 2,
'import/no-named-as-default': 2,
'func-names': 0,
'global-require': 0,
'arrow-body-style': 0,
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'no-use-before-define': 0,
'import/extensions': 0,
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
},
},
},
overrides: [
{
files: ['*.config.js', '*config.mjs'],
rules: {
'import/no-default-export': 0,
},
},
],
};