-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
97 lines (97 loc) · 3.06 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:import/warnings"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"ignorePatterns": [
"coverage/",
"dist/",
"node_modules/",
"script/",
"spec/"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"project": "./tsconfig.eslint.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"editorconfig",
"functional",
"import"
],
"root": true,
"rules": {
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-types": ["error", {"types": {"{}": false, "object": false}}],
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/naming-convention": ["error", { "selector": "property", "format": ["PascalCase", "camelCase", "snake_case"] }],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-unused-vars": ["warn", {"argsIgnorePattern": "^_"}],
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/no-namespace": "off",
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "always-multiline"],
"editorconfig/charset": "warn",
"editorconfig/eol-last": "warn",
"editorconfig/indent": "warn",
"editorconfig/linebreak-style": "warn",
"editorconfig/no-trailing-spaces": "warn",
"functional/no-let": "warn",
"functional/prefer-readonly-type": ["warn", {"ignoreClass": true}],
"import/no-amd": "error",
"import/no-commonjs": "error",
"import/order": ["warn", {"alphabetize": {"order": "asc", "caseInsensitive": true}, "newlines-between": "always"}],
"linebreak-style": ["error", "unix"],
"max-len": ["warn", {"code": 120}],
"newline-before-return": "warn",
"no-case-declarations": "warn",
"no-console": "error",
"no-delete-var": "error",
"no-eval": "error",
"no-octal": "error",
"no-param-reassign": "error",
"no-sequences": "error",
"no-trailing-spaces": "warn",
"no-unused-expressions": "warn",
"object-curly-spacing": ["warn", "always"],
"prefer-const": "warn",
"prefer-object-spread": "warn",
"prefer-template": "warn",
"quotes": ["warn", "single"],
"require-await": "error",
"semi": ["error", "always"],
"sort-imports": ["warn", {"ignoreCase": true, "ignoreDeclarationSort": true}],
"sort-keys": ["warn", "asc", {"caseSensitive": false, "natural": false, "minKeys": 2}],
"use-isnan": "error"
},
"overrides": [
{
"files": [
"src/**/*.test.{ts,js}"
],
"rules": {
"functional/no-let": "off"
}
}
]
}