-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.js
65 lines (65 loc) · 1.27 KB
/
.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
jest: true,
},
extends: [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
],
overrides: [],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
},
plugins: [
"@typescript-eslint",
"unused-imports",
"prefer-arrow",
"prettier",
],
rules: {
"prettier/prettier": ["error"],
"@typescript-eslint/no-unused-vars": ["error"],
"import/prefer-default-export": "warn",
"import/extensions": ["error", "never"],
"no-plusplus": "off",
radix: ["error", "as-needed"],
"no-restricted-syntax": "off",
"@typescript-eslint/explicit-function-return-type": "warn",
"unused-imports/no-unused-imports": "error",
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: true,
},
],
"prefer-arrow/prefer-arrow-functions": [
"warn",
{
disallowPrototype: true,
singleReturnOnly: false,
classPropertiesAllowed: false,
},
],
"prefer-arrow-callback": [
"warn",
{
allowNamedFunctions: true,
},
],
"func-style": [
"warn",
"expression",
{
allowArrowFunctions: true,
},
],
},
};