-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc.js
53 lines (53 loc) · 1.69 KB
/
.eslintrc.js
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
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
tsconfigRootDir: __dirname,
project: ["./tsconfig.json", "./test/tsconfig.json"],
},
plugins: ["@typescript-eslint", "prettier"],
ignorePatterns: ["*.test.ts", "jest.config.js", ".eslintrc.js"],
rules: {
"prettier/prettier": "error",
"no-prototype-builtins": "warn",
"no-case-declarations": "warn",
"no-use-before-define": "off",
"no-async-promise-executor": "warn",
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/unbound-method": "warn",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-base-to-string": "warn",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "interface",
format: ["PascalCase"],
prefix: ["I"],
},
],
},
};