generated from dsfx3d/generator-ts-workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
48 lines (47 loc) · 1.08 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @type {import('eslint').Linter.Config}
*/
const config = {
extends: [
"eslint:recommended",
"plugin:prettier/recommended",
"eslint-config-unjs",
"plugin:sonarjs/recommended",
],
plugins: ["sort-imports-es6-autofix"],
rules: {
"sort-imports-es6-autofix/sort-imports-es6": [
2,
{
ignoreCase: false,
ignoreMemberSort: false,
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
},
],
"object-curly-spacing": "off",
complexity: ["error", 3],
"max-params": ["error", 4],
"max-statements": ["error", 7],
"max-statements-per-line": [
"error",
{
max: 1,
},
],
"max-nested-callbacks": ["error", 2],
"max-depth": [
"error",
{
max: 3,
},
],
"no-useless-constructor": "off",
"unicorn/filename-case": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-top-level-await": "off",
"import/order": "off",
"require-await": "off",
},
};
// eslint-disable-next-line unicorn/prefer-module
module.exports = config;