-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
37 lines (37 loc) · 1.28 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
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended", "prettier", "plugin:prettier/recommended"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
},
rules: {
eqeqeq: ["error", "always", { null: "ignore" }],
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
accessibility: "explicit",
overrides: {
accessors: "explicit",
constructors: "no-public",
methods: "explicit",
properties: "explicit",
parameterProperties: "off",
},
},
],
},
overrides: [
{
files: ["*.spec.ts"],
rules: {
"@typescript-eslint/explicit-function-return-type": ["off"],
},
},
],
};