-
Notifications
You must be signed in to change notification settings - Fork 7
/
eslint.config.js
57 lines (56 loc) · 1.31 KB
/
eslint.config.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
48
49
50
51
52
53
54
55
56
57
module.exports = {
env: {
browser: true,
es2023: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
"camelcase": "off",
"indent": ["error", 4, {
SwitchCase: 1,
}],
"no-unused-vars": ["error", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],
"max-classes-per-file": "warn",
"default-case": "off",
"no-return-await": "off",
"class-methods-use-this": "warn",
"quote-props": ["warn", "consistent-as-needed"],
"no-undef-init": "off",
"prefer-template": "off",
"prefer-object-spread": "off",
"prefer-destructuring": "off",
"max-len": "off",
"object-curly-newline": "off",
"object-property-newline": "off",
"no-console": "off",
"no-continue": "off",
"no-useless-escape": "off",
"arrow-parens": ["warn", "as-needed", {
requireForBlockBody: true,
}],
"lines-between-class-members": "off",
"import/no-named-as-default-member": "off",
"import/prefer-default-export": "off",
"import/extensions": ["error", "always"],
"import/no-unresolved": ["error"],
},
settings: {
'import/resolver': {
alias: {
map: [
['#src', './src'],
],
extensions: ['.mjs'],
},
},
},
};