@elgato/eslint-config 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/recommended.js +61 -66
- package/src/strict.js +2 -1
package/package.json
CHANGED
package/src/recommended.js
CHANGED
|
@@ -9,7 +9,7 @@ import tsEslint from "typescript-eslint";
|
|
|
9
9
|
*/
|
|
10
10
|
export default defineConfig([
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Global (ignore).
|
|
13
13
|
*/
|
|
14
14
|
{
|
|
15
15
|
ignores: [
|
|
@@ -21,74 +21,22 @@ export default defineConfig([
|
|
|
21
21
|
},
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Global (recommended).
|
|
25
25
|
*/
|
|
26
26
|
{
|
|
27
|
-
extends: [
|
|
28
|
-
jsdoc.configs["flat/recommended-typescript"],
|
|
29
|
-
eslint.configs.recommended,
|
|
30
|
-
tsEslint.configs.recommended,
|
|
31
|
-
],
|
|
27
|
+
extends: [eslint.configs.recommended],
|
|
32
28
|
},
|
|
33
29
|
|
|
34
30
|
/**
|
|
35
|
-
*
|
|
31
|
+
* TypeScript.
|
|
36
32
|
*/
|
|
37
33
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
...globals.node,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
34
|
+
files: ["**/*.{ts,mts,cts,tsx}"],
|
|
35
|
+
extends: [
|
|
36
|
+
jsdoc.configs["flat/recommended-typescript"],
|
|
37
|
+
tsEslint.configs.recommended,
|
|
38
|
+
],
|
|
46
39
|
rules: {
|
|
47
|
-
indent: [
|
|
48
|
-
"warn",
|
|
49
|
-
"tab",
|
|
50
|
-
{
|
|
51
|
-
ignoredNodes: ["TemplateLiteral *"],
|
|
52
|
-
SwitchCase: 1,
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* jsdoc
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
"jsdoc/check-tag-names": [
|
|
61
|
-
"warn",
|
|
62
|
-
{
|
|
63
|
-
definedTags: ["csspart", "cssproperty", "jest-environment", "slot"],
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
"jsdoc/no-undefined-types": "warn",
|
|
67
|
-
"jsdoc/require-jsdoc": [
|
|
68
|
-
"warn",
|
|
69
|
-
{
|
|
70
|
-
contexts: [
|
|
71
|
-
"ClassDeclaration",
|
|
72
|
-
"PropertyDefinition",
|
|
73
|
-
"MethodDefinition",
|
|
74
|
-
"TSEnumDeclaration",
|
|
75
|
-
"TSEnumMember",
|
|
76
|
-
"TSPropertySignature",
|
|
77
|
-
"TSTypeAliasDeclaration",
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
"jsdoc/require-returns": [
|
|
82
|
-
"warn",
|
|
83
|
-
{
|
|
84
|
-
checkGetters: false,
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* typescript-eslint
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
40
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
93
41
|
"warn",
|
|
94
42
|
{
|
|
@@ -151,18 +99,65 @@ export default defineConfig([
|
|
|
151
99
|
},
|
|
152
100
|
|
|
153
101
|
/**
|
|
154
|
-
* JavaScript
|
|
102
|
+
* JavaScript.
|
|
155
103
|
*/
|
|
156
104
|
{
|
|
157
|
-
files: ["**/*.{js,cjs,
|
|
105
|
+
files: ["**/*.{js,mjs,cjs,jsx}"],
|
|
106
|
+
extends: [
|
|
107
|
+
jsdoc.configs["flat/recommended"],
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Global (overrides).
|
|
113
|
+
*/
|
|
114
|
+
{
|
|
115
|
+
languageOptions: {
|
|
116
|
+
globals: {
|
|
117
|
+
...globals.node,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
158
120
|
rules: {
|
|
159
|
-
|
|
160
|
-
|
|
121
|
+
indent: [
|
|
122
|
+
"warn",
|
|
123
|
+
"tab",
|
|
124
|
+
{
|
|
125
|
+
ignoredNodes: ["TemplateLiteral *"],
|
|
126
|
+
SwitchCase: 1,
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
"jsdoc/check-tag-names": [
|
|
130
|
+
"warn",
|
|
131
|
+
{
|
|
132
|
+
definedTags: ["csspart", "cssproperty", "jest-environment", "slot"],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
"jsdoc/no-undefined-types": "warn",
|
|
136
|
+
"jsdoc/require-jsdoc": [
|
|
137
|
+
"warn",
|
|
138
|
+
{
|
|
139
|
+
contexts: [
|
|
140
|
+
"ClassDeclaration",
|
|
141
|
+
"PropertyDefinition",
|
|
142
|
+
"MethodDefinition",
|
|
143
|
+
"TSEnumDeclaration",
|
|
144
|
+
"TSEnumMember",
|
|
145
|
+
"TSPropertySignature",
|
|
146
|
+
"TSTypeAliasDeclaration",
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
"jsdoc/require-returns": [
|
|
151
|
+
"warn",
|
|
152
|
+
{
|
|
153
|
+
checkGetters: false,
|
|
154
|
+
},
|
|
155
|
+
],
|
|
161
156
|
},
|
|
162
157
|
},
|
|
163
158
|
|
|
164
159
|
/**
|
|
165
|
-
*
|
|
160
|
+
* Tests and mocks.
|
|
166
161
|
*/
|
|
167
162
|
{
|
|
168
163
|
files: ["{src,tests}/**/__mocks__/*.ts", "{src,tests}/**/__tests__/*test.ts"],
|