-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
78 lines (74 loc) · 2.69 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
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"plugins": ["@typescript-eslint", "mocha-no-only"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
"rules": {
"no-console": "warn",
"import/no-named-as-default": "off",
"no-plusplus": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/array-type": ["error", {"default": "generic"}],
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
"allowString": false,
"allowNullableObject": true,
"allowNullableBoolean": false,
"allowNullableString": false
}
],
"@typescript-eslint/await-thenable": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-use-before-define": ["error", {"functions": false}],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-var-requires": "warn",
"import/no-extraneous-dependencies": ["error"],
"object-shorthand": "error",
"radix": "error",
"no-unsafe-finally": "error",
"no-return-await": "error",
"default-case": "error",
"no-template-curly-in-string": "error",
// Some import rules are turned off as TS already checks these and they are pretty slow
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#eslint-plugin-import
"import/named": "off",
"import/namespace": "off",
"import/default": "off",
"import/no-named-as-default-member": "off",
"import/order": [
"error",
{
"newlines-between": "ignore",
"groups": [["builtin", "external"], "parent", "sibling", "index"],
"alphabetize": {
"order": "asc"
}
}
],
"mocha-no-only/mocha-no-only": ["error"]
}
}