-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.27 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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json", // required for rules that need type information
ecmaVersion: 2021,
sourceType: "module",
},
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
plugins: ["@typescript-eslint", "prettier", "mobx"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:mobx/recommended",
"prettier",
],
rules: {
"no-console": ["error", { allow: ["error", "log"] }],
"no-empty": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/restrict-template-expressions": [
"error",
{ allowBoolean: true, allowNumber: true, allowNullish: true },
],
"mobx/exhaustive-make-observable": "off",
},
};