-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
54 lines (54 loc) · 1.18 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
{
"parser": "@typescript-eslint/parser",
"env": {
"mocha": true,
"node": true,
"es6": true
},
"plugins": [
"mocha"
],
"extends": [
"eslint:recommended",
"standard",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:mocha/recommended",
"prettier/standard",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"rules": {
"curly": [
"error",
"all"
],
"eqeqeq": [
"error",
"always"
],
"no-var": "error",
"no-console": "error",
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"prefer-const": "error",
"prettier/prettier": [
"error"
],
"mocha/no-mocha-arrows": "off",
"mocha/no-sibling-hooks": "off",
"mocha/no-hooks-for-single-case": "off",
"require-atomic-updates": "off",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/camelcase": "warn"
}
}