@pumpn/eslint-config 14.0.2 → 15.0.1
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/config.js +51 -1
- package/deno.json +1 -1
- package/deno.lock +469 -1174
- package/import-map.json +13 -13
- package/package.json +16 -14
- package/plugins.js +10 -8
- package/rules/import-x/helpful-warnings.js +1 -0
- package/rules/import-x/static-analysis.js +1 -1
- package/rules/jsdoc.js +13 -5
- package/rules/perfectionist.js +40 -24
- package/rules/promise.js +1 -1
- package/rules/react/core.js +4 -0
- package/rules/regexp/best-practices.js +1 -1
- package/rules/sonarjs/code-smell-detection.js +1 -1
- package/rules/stylistic/misc.js +14 -1
- package/rules/unicorn.js +8 -1
package/config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as parser from "@typescript-eslint/parser";
|
|
2
|
+
import { getJsdocProcessorPlugin } from "eslint-plugin-jsdoc/getJsdocProcessorPlugin.js";
|
|
2
3
|
import globals from "globals";
|
|
3
4
|
|
|
4
5
|
import plugins from "./plugins.js";
|
|
@@ -19,6 +20,13 @@ const convertedGlobals = Object.fromEntries(
|
|
|
19
20
|
])
|
|
20
21
|
);
|
|
21
22
|
|
|
23
|
+
const defaultGlob = "**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}";
|
|
24
|
+
|
|
25
|
+
const rulesWithAutofixDisabled = Object.fromEntries(
|
|
26
|
+
Object.entries(rules)
|
|
27
|
+
.flatMap(([key, value]) => [[key, "off"], [`disable-autofix/${key}`, value]])
|
|
28
|
+
);
|
|
29
|
+
|
|
22
30
|
const config = [
|
|
23
31
|
{
|
|
24
32
|
ignores: [
|
|
@@ -28,7 +36,7 @@ const config = [
|
|
|
28
36
|
]
|
|
29
37
|
},
|
|
30
38
|
{
|
|
31
|
-
files: [
|
|
39
|
+
files: [defaultGlob],
|
|
32
40
|
languageOptions: {
|
|
33
41
|
ecmaVersion: "latest",
|
|
34
42
|
globals: {
|
|
@@ -147,6 +155,48 @@ const config = [
|
|
|
147
155
|
rules: {
|
|
148
156
|
"no-undef": "off"
|
|
149
157
|
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
files: [defaultGlob],
|
|
161
|
+
plugins: {
|
|
162
|
+
examples: getJsdocProcessorPlugin({
|
|
163
|
+
captionRequired: false,
|
|
164
|
+
checkDefaults: true,
|
|
165
|
+
checkExamples: true,
|
|
166
|
+
checkParams: true,
|
|
167
|
+
checkProperties: true,
|
|
168
|
+
paddedIndent: 0,
|
|
169
|
+
parser,
|
|
170
|
+
sourceType: "module"
|
|
171
|
+
})
|
|
172
|
+
},
|
|
173
|
+
processor: "examples/examples"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
files: ["**/*.md/*.js"],
|
|
177
|
+
languageOptions: {
|
|
178
|
+
parserOptions: {
|
|
179
|
+
program: null,
|
|
180
|
+
project: false,
|
|
181
|
+
projectService: false
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
name: "jsdoc/examples/rules",
|
|
185
|
+
rules: rulesWithAutofixDisabled
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
files: [defaultGlob],
|
|
189
|
+
name: "jsdoc/default-expressions/processor",
|
|
190
|
+
processor: "examples/examples"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
files: [
|
|
194
|
+
"**/*.jsdoc-defaults",
|
|
195
|
+
"**/*.jsdoc-params",
|
|
196
|
+
"**/*.jsdoc-properties"
|
|
197
|
+
],
|
|
198
|
+
name: "jsdoc/default-expressions/rules",
|
|
199
|
+
rules: rulesWithAutofixDisabled
|
|
150
200
|
}
|
|
151
201
|
];
|
|
152
202
|
|