-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (34 loc) · 1.04 KB
/
index.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
/*
* @Author: fencer [email protected]
* @Date: 2022-08-25 20:44:18
* @LastEditors: fencer [email protected]
* @LastEditTime: 2022-12-14 16:47:01
* @FilePath: /eslint/index.js
* @Description: eslint
*/
module.exports = {
root: true,
extends: [
"eslint:recommended",
"react-app",
"plugin:@typescript-eslint/eslint-recommended",
]
.concat(["./rules/common.yml", "./rules/react.yml"].map(require.resolve))
.concat(["plugin:mobx/recommended", "plugin:prettier/recommended"]),
env: {
browser: true,
node: true,
es6: true,
},
plugins: ["@typescript-eslint", "prettier", "import", "mobx"],
parser: "@typescript-eslint/parser",
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"mobx/exhaustive-make-observable": "warn",
"mobx/unconditional-make-observable": "error",
"mobx/missing-make-observable": "error",
"mobx/missing-observer": "warn",
"mobx/no-anonymous-observer": "warn",
},
};