-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
47 lines (46 loc) · 1.43 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
46
47
/* eslint-disable */
module.exports = {
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"ignorePatterns": ["**/public/*", "**/*.js"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"tsconfigRootDir": __dirname,
"project": ["./tsconfig.json"],
},
"plugins": [
"@typescript-eslint",
],
"rules": {
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"indent" : ["error", "tab", { "SwitchCase": 1}],
"max-len": ["warn", { "code": 200 }],
"no-confusing-arrow": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-trailing-spaces": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-unused-expressions": "error",
"no-useless-computed-key": "error",
"no-var": "error",
"prefer-const": "error",
"semi": "error",
}
};