@siberiacancode/eslint 2.16.6 → 2.16.7
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/dist/cjs/index.cjs +5 -14
- package/dist/cjs/index.d.cts +0 -1
- package/dist/esm/index.d.mts +0 -1
- package/dist/esm/index.mjs +5 -13
- package/package.json +9 -10
package/dist/cjs/index.cjs
CHANGED
|
@@ -32,8 +32,6 @@ let _eslint_css = require("@eslint/css");
|
|
|
32
32
|
_eslint_css = __toESM(_eslint_css);
|
|
33
33
|
let eslint_plugin_better_tailwindcss = require("eslint-plugin-better-tailwindcss");
|
|
34
34
|
eslint_plugin_better_tailwindcss = __toESM(eslint_plugin_better_tailwindcss);
|
|
35
|
-
let eslint_plugin_jsx_a11y = require("eslint-plugin-jsx-a11y");
|
|
36
|
-
eslint_plugin_jsx_a11y = __toESM(eslint_plugin_jsx_a11y);
|
|
37
35
|
let eslint_plugin_playwright = require("eslint-plugin-playwright");
|
|
38
36
|
eslint_plugin_playwright = __toESM(eslint_plugin_playwright);
|
|
39
37
|
|
|
@@ -262,7 +260,7 @@ const siberiacancodePlugin = {
|
|
|
262
260
|
//#endregion
|
|
263
261
|
//#region src/index.ts
|
|
264
262
|
const eslint = (inputOptions = {}, ...configs) => {
|
|
265
|
-
const {
|
|
263
|
+
const { playwright = false, tailwind = false, typescript = false, ...options } = inputOptions;
|
|
266
264
|
const stylistic = options.stylistic ?? false;
|
|
267
265
|
if (typescript === "engine") configs.unshift({
|
|
268
266
|
name: "siberiacancode/typescript",
|
|
@@ -279,17 +277,6 @@ const eslint = (inputOptions = {}, ...configs) => {
|
|
|
279
277
|
"ts/no-empty-object-type": "warn"
|
|
280
278
|
}
|
|
281
279
|
});
|
|
282
|
-
if (jsxA11y) {
|
|
283
|
-
const jsxA11yRules = eslint_plugin_jsx_a11y.default.flatConfigs.recommended.rules;
|
|
284
|
-
configs.unshift({
|
|
285
|
-
name: "siberiacancode/jsx-a11y",
|
|
286
|
-
plugins: { "siberiacancode-jsx-a11y": eslint_plugin_jsx_a11y.default },
|
|
287
|
-
rules: { ...Object.entries(jsxA11yRules).reduce((acc, [key, value]) => {
|
|
288
|
-
acc[key.replace("jsx-a11y", "siberiacancode-jsx-a11y")] = value;
|
|
289
|
-
return acc;
|
|
290
|
-
}, {}) }
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
280
|
if (playwright) {
|
|
294
281
|
const playwrightRules = eslint_plugin_playwright.default.configs["flat/recommended"].rules;
|
|
295
282
|
configs.unshift({
|
|
@@ -459,6 +446,10 @@ const eslint = (inputOptions = {}, ...configs) => {
|
|
|
459
446
|
type: "alphabetical"
|
|
460
447
|
}]
|
|
461
448
|
}
|
|
449
|
+
}, {
|
|
450
|
+
name: "siberiacancode/disable/markdown",
|
|
451
|
+
files: ["**/*.md"],
|
|
452
|
+
rules: { "perfectionist/sort-imports": "off" }
|
|
462
453
|
}, ...configs);
|
|
463
454
|
};
|
|
464
455
|
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -4,7 +4,6 @@ import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
type EslintOptions = OptionsConfig & TypedFlatConfigItem & {
|
|
7
|
-
jsxA11y?: boolean;
|
|
8
7
|
playwright?: boolean;
|
|
9
8
|
tailwind?: boolean;
|
|
10
9
|
typescript?: boolean | 'engine' | OptionsTypescript;
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -4,7 +4,6 @@ import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
type EslintOptions = OptionsConfig & TypedFlatConfigItem & {
|
|
7
|
-
jsxA11y?: boolean;
|
|
8
7
|
playwright?: boolean;
|
|
9
8
|
tailwind?: boolean;
|
|
10
9
|
typescript?: boolean | 'engine' | OptionsTypescript;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import antfu from "@antfu/eslint-config";
|
|
2
2
|
import pluginCss from "@eslint/css";
|
|
3
3
|
import pluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
|
|
4
|
-
import pluginJsxA11y from "eslint-plugin-jsx-a11y";
|
|
5
4
|
import pluginPlaywright from "eslint-plugin-playwright";
|
|
6
5
|
|
|
7
6
|
//#region src/plugin/rules/function-component-definition.ts
|
|
@@ -229,7 +228,7 @@ const siberiacancodePlugin = {
|
|
|
229
228
|
//#endregion
|
|
230
229
|
//#region src/index.ts
|
|
231
230
|
const eslint = (inputOptions = {}, ...configs) => {
|
|
232
|
-
const {
|
|
231
|
+
const { playwright = false, tailwind = false, typescript = false, ...options } = inputOptions;
|
|
233
232
|
const stylistic = options.stylistic ?? false;
|
|
234
233
|
if (typescript === "engine") configs.unshift({
|
|
235
234
|
name: "siberiacancode/typescript",
|
|
@@ -246,17 +245,6 @@ const eslint = (inputOptions = {}, ...configs) => {
|
|
|
246
245
|
"ts/no-empty-object-type": "warn"
|
|
247
246
|
}
|
|
248
247
|
});
|
|
249
|
-
if (jsxA11y) {
|
|
250
|
-
const jsxA11yRules = pluginJsxA11y.flatConfigs.recommended.rules;
|
|
251
|
-
configs.unshift({
|
|
252
|
-
name: "siberiacancode/jsx-a11y",
|
|
253
|
-
plugins: { "siberiacancode-jsx-a11y": pluginJsxA11y },
|
|
254
|
-
rules: { ...Object.entries(jsxA11yRules).reduce((acc, [key, value]) => {
|
|
255
|
-
acc[key.replace("jsx-a11y", "siberiacancode-jsx-a11y")] = value;
|
|
256
|
-
return acc;
|
|
257
|
-
}, {}) }
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
248
|
if (playwright) {
|
|
261
249
|
const playwrightRules = pluginPlaywright.configs["flat/recommended"].rules;
|
|
262
250
|
configs.unshift({
|
|
@@ -426,6 +414,10 @@ const eslint = (inputOptions = {}, ...configs) => {
|
|
|
426
414
|
type: "alphabetical"
|
|
427
415
|
}]
|
|
428
416
|
}
|
|
417
|
+
}, {
|
|
418
|
+
name: "siberiacancode/disable/markdown",
|
|
419
|
+
files: ["**/*.md"],
|
|
420
|
+
rules: { "perfectionist/sort-imports": "off" }
|
|
429
421
|
}, ...configs);
|
|
430
422
|
};
|
|
431
423
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siberiacancode/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.16.
|
|
4
|
+
"version": "2.16.7",
|
|
5
5
|
"description": "eslint configs",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "SIBERIA CAN CODE 🧊",
|
|
@@ -54,17 +54,16 @@
|
|
|
54
54
|
"pretty": "pnpm type && pnpm lint && pnpm format"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@antfu/eslint-config": "7.
|
|
57
|
+
"@antfu/eslint-config": "7.7.0",
|
|
58
58
|
"@eslint-react/eslint-plugin": "2.13.0",
|
|
59
|
-
"@eslint/css": "
|
|
59
|
+
"@eslint/css": "1.0.0",
|
|
60
60
|
"@next/eslint-plugin-next": "16.1.6",
|
|
61
|
-
"@types/eslint-plugin-jsx-a11y": "
|
|
62
|
-
"@vue/compiler-sfc": "3.5.
|
|
63
|
-
"eslint": "10.0.
|
|
64
|
-
"eslint-flat-config-utils": "
|
|
65
|
-
"eslint-plugin-better-tailwindcss": "
|
|
66
|
-
"eslint-plugin-
|
|
67
|
-
"eslint-plugin-playwright": "^2.9.0",
|
|
61
|
+
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
62
|
+
"@vue/compiler-sfc": "3.5.30",
|
|
63
|
+
"eslint": "10.0.3",
|
|
64
|
+
"eslint-flat-config-utils": "3.0.2",
|
|
65
|
+
"eslint-plugin-better-tailwindcss": "4.3.2",
|
|
66
|
+
"eslint-plugin-playwright": "2.9.0",
|
|
68
67
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
69
68
|
"eslint-plugin-react-refresh": "0.5.2"
|
|
70
69
|
},
|