-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
112 lines (112 loc) · 3.84 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": "./example",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"import"
],
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"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",
"no-multi-spaces": "off",
"array-bracket-spacing": ["error", "always"],
"object-curly-newline": ["error", { "multiline": true }],
"no-useless-constructor": "off",
"@typescript-eslint/indent": ["error", 4, {
"SwitchCase": 1
}],
"no-constant-condition": "off",
"no-await-in-loop": "off",
"@typescript-eslint/no-namespace": "off",
"prefer-destructuring": "off",
"@typescript-eslint/naming-convention": "off",
"no-restricted-syntax": "off",
"@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",
"operator-linebreak": "off",
"no-plusplus": "off",
"no-continue": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
},
"multilineDetection": "brackets"
}],
"@typescript-eslint/explicit-module-boundary-types": ["error", {
"allowedNames": ["transform"]
}],
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
// "varsIgnorePattern": "^_"
}],
// "@typescript-eslint/naming-convention": ["error", {
// // "argsIgnorePattern": "^_",
// // "varsIgnorePattern": "^_"
// }],
"max-classes-per-file": "off",
"prefer-template": "off",
"@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"
}]
}
}