-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
48 lines (48 loc) · 1.72 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"createDefaultProgram": true
},
// https://eslint.org/docs/user-guide/configuring#specifying-environments
"env": {
"es6": true,
"node": true,
"mocha": true,
"browser": true
},
"plugins": ["@typescript-eslint", "mocha"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:mocha/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"rules": {
// https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-mocha-arrows.md
"mocha/no-mocha-arrows": 0,
"mocha/no-hooks-for-single-case": 0,
"@typescript-eslint/ban-ts-ignore": 0,
// https://github.com/typescript-eslint/typescript-eslint/issues/149
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/camelcase": 0,
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-var-requires.md
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/require-await": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/class-name-casing": 0,
"@typescript-eslint/no-explicit-any": 0,
"require-yield": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/unbound-method": 0,
"mocha/no-setup-in-describe": 0,
"mocha/no-exclusive-tests": 0,
"mocha/no-skipped-tests": 0
}
}