forked from xiekw2010/egg-typebox-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
42 lines (42 loc) · 1.08 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
{
"root": true,
"extends": [
"eslint-config-egg/typescript",
"plugin:compat/recommended", // https://www.npmjs.com/package/eslint-plugin-compat
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"node": true
},
"settings": {
"polyfills": ["Promise"]
},
"rules": {
"prefer-arrow-callback": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"jsdoc/require-param-description": "off",
"jsdoc/require-returns-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": "off",
"import/default": "off",
"import/order": [
"error",
{
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "object"],
"newlines-between": "never"
}
]
}
}