-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.04 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
module.exports = {
env: {
es2020: true,
node: true,
jest: true,
},
extends: ["airbnb-base", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 11,
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
"max-len": [
"error",
{
code: 120,
ignoreUrls: true,
ignoreTemplateLiterals: true,
},
],
"arrow-body-style": ["error", "as-needed"],
"@typescript-eslint/no-explicit-any": "off",
"import/extensions": ["error", "never"],
"import/prefer-default-export": "off",
"no-useless-constructor": "off",
"no-unused-vars": "off",
"no-empty-function": "off",
semi: "off",
"@typescript-eslint/semi": ["error"],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
},
};