forked from derekpitt/fw-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
40 lines (40 loc) · 1.43 KB
/
.eslintrc.json
File metadata and controls
40 lines (40 loc) · 1.43 KB
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"project": ["./tsconfig.json", "./tsconfig.eslint.json"],
"tsconfigRootDir": "."
},
"rules": {
"semi": "off",
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
"@typescript-eslint/member-delimiter-style": ["error", { "multiline": { "delimiter": "semi", "requireLast": true }}],
"@typescript-eslint/interface-name-prefix": [0],
"@typescript-eslint/strict-boolean-expressions": [0],
"@typescript-eslint/no-explicit-any": [0], // remove one day, maybe. This is early days so we have some anys.
"@typescript-eslint/restrict-plus-operands": [0], // when this rule functions correctly, we can remove it. It
"@typescript-eslint/explicit-module-boundary-types": [ 1, { "allowArgumentsExplicitlyTypedAsAny": true } ],
// does not pick up the correct type when returning from a JS function
"@typescript-eslint/no-inferrable-types": "off",
"no-useless-escape": [1],
"@typescript-eslint/restrict-template-expressions": [0],
"@typescript-eslint/prefer-nullish-coalescing": [0]
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
}
}