-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.41 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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module"
},
plugins: ["@typescript-eslint/eslint-plugin"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ["*.js"],
rules: {
"quotes": ["error", "double"],
"semi": ["error", "always"],
"comma-dangle": ["error", "never"],
"no-trailing-spaces": "error",
"no-multiple-empty-lines": "error",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"object-curly-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"keyword-spacing": ["error", {"before": true}],
"comma-spacing": ["error", {"before": false, "after": true }],
"space-infix-ops": ["error", {"int32Hint": false}],
"no-useless-computed-key": "error",
"no-throw-literal": "error",
"no-whitespace-before-property": "error",
"no-this-before-super": "error",
"no-shadow-restricted-names": "error",
"no-sparse-arrays": "error",
"lines-between-class-members": [
"error",
"always",
{"exceptAfterSingleLine": true},
],
"no-console": "warn",
}
};