-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
71 lines (71 loc) · 2.08 KB
/
.eslintrc.json
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
66
67
68
69
70
71
{
"env": {
"browser": true,
"es2021": true,
"commonjs": true,
"node": true,
"jest": true
},
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended",
"plugin:import/typescript",
"plugin:import/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "jest"],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"rules": {
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/lines-between-class-members": "off",
"jest/no-commented-out-tests": "off",
"consistent-return": "off",
"class-methods-use-this": "off",
"no-console": "off",
"no-plusplus": "off",
"no-unused-vars": "off",
"no-else-return": "off",
"no-new": "off",
"no-continue": "off",
"no-alert": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"max-classes-per-file": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-import-module-exports": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", ["internal", "parent", "sibling", "index"], "object", "type"],
"pathGroups": [
{
"pattern": "@/assets/**/*",
"group": "type",
"position": "after"
},
{
"pattern": "@/**/*",
"group": "external",
"position": "after"
}
],
"newlines-between": "always"
}
]
},
"ignorePatterns": ["webpack.*.js", "jest.config.js", "setup-tests.ts"]
}