This repository has been archived by the owner on Dec 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
87 lines (87 loc) · 2.92 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"import"
],
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"ignorePatterns": [".eslintrc.json"],
"root": true,
"env": {
"node": true,
"jest": true
},
"settings": {
"import/resolver": {
"typescript": {
"extensions": [".ts", ".tsx"],
"moduleDirectory": ["src", "node_modules"]
},
"node": {}
}
},
"rules": {
"no-console": "off",
"no-shadow": "off",
"no-bitwise": "off",
"no-unused-vars": "off",
// "indent": ["error", 4, {
// "SwitchCase": 1
// }],
// "semi": ["error", "never"],
// "comma-dangle": ["error", "never"],
"array-bracket-spacing": ["error", "always"],
"object-curly-newline": ["error", { "multiline": true }],
// "object-curly-spacing": ["error", "always"],
"no-useless-constructor": "off",
"@typescript-eslint/indent": ["error", 4, {
"SwitchCase": 1
}],
"@typescript-eslint/space-before-function-paren": ["error", "always"],
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/comma-dangle": ["error", "never"],
"@typescript-eslint/object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-useless-constructor": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": ["error", {
"allowedNames": ["transform"]
}],
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/no-explicit-any": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"space-before-function-paren": ["error", "always"],
"lines-between-class-members": ["error", "always", {
"exceptAfterSingleLine": true
}],
"no-underscore-dangle": "off",
"arrow-parens": [2, "as-needed", {
"requireForBlockBody": true
}],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["**/*.test.ts", "**/*.spec.ts", "**/*.e2e-spec.ts", "./webpack.config.json"]
}],
"import/extensions": ["error", "ignorePackages", {
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}]
}
}