-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
96 lines (96 loc) · 2.14 KB
/
.eslintrc.json
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"env": {
"es2021": true
},
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended-typescript-flavor-error",
"plugin:n/recommended",
"plugin:unicorn/recommended",
"plugin:import/recommended"
],
"overrides": [
{
"files": [
"*.cjs"
],
"rules": {
"@typescript-eslint/no-var-requires": 0,
"import/no-nodejs-modules": 0
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
},
"ecmaVersion": 2019,
"project": "./jsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"canonical",
"jsdoc",
"n",
"unicorn",
"import"
],
"root": true,
"rules": {
"import/extensions": [
"error",
"always",
{
"js": "always",
"mjs": "never"
}
],
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"jsdoc/no-defaults": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-property-description": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-returns-description": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"no-return-await": "off",
"unicorn/explicit-length-check": "off",
"unicorn/filename-case": "off",
"unicorn/no-null": "off",
"unicorn/no-useless-switch-case": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/prefer-ternary": [
"error",
"only-single-line"
],
"unicorn/prevent-abbreviations": [
"error",
{
"checkFilenames": false
}
],
"unicorn/switch-case-braces": "off",
"unicorn/text-encoding-identifier-case": "off"
},
"settings": {
"jsdoc": {
"preferredTypes": {
"array": "Array",
"object": "Object",
"object.": "Object<>",
"object<>": "Object<>",
"symbol": "Symbol"
},
"tagNamePreference": {
"augment": "extends",
"constant": "const",
"property": "prop",
"returns": "return"
}
}
}
}