@jsse/eslint-config 0.4.19 → 0.4.20
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/CHANGELOG.md +6 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +165 -453
- package/dist/index.js +15 -19
- package/dist/{version-Cp29RKMJ.js → version-Clor9d2E.js} +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __export, r as __toESM, t as __commonJS } from "./chunk-kxGw7zjC.js";
|
|
2
|
-
import { n as DEBUG, r as SLOW_RULES, t as VERSION } from "./version-
|
|
2
|
+
import { n as DEBUG, r as SLOW_RULES, t as VERSION } from "./version-Clor9d2E.js";
|
|
3
3
|
import { builtinModules, createRequire } from "node:module";
|
|
4
4
|
import fs, { promises, realpathSync, statSync } from "node:fs";
|
|
5
5
|
import process$1 from "node:process";
|
|
@@ -12852,26 +12852,10 @@ async function importPluginReact() {
|
|
|
12852
12852
|
const pluginReact = await interopDefault(import("eslint-plugin-react"));
|
|
12853
12853
|
return { pluginReact };
|
|
12854
12854
|
}
|
|
12855
|
-
async function importPluginReactHooks() {
|
|
12856
|
-
const pluginReactHooks = await interopDefault(import("eslint-plugin-react-hooks"));
|
|
12857
|
-
return { pluginReactHooks };
|
|
12858
|
-
}
|
|
12859
12855
|
async function importPluginReactRefresh() {
|
|
12860
12856
|
const pluginReactRefresh = await interopDefault(import("eslint-plugin-react-refresh"));
|
|
12861
12857
|
return { pluginReactRefresh };
|
|
12862
12858
|
}
|
|
12863
|
-
async function importReactPlugins() {
|
|
12864
|
-
const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all([
|
|
12865
|
-
interopDefault(import("eslint-plugin-react")),
|
|
12866
|
-
interopDefault(import("eslint-plugin-react-hooks")),
|
|
12867
|
-
interopDefault(import("eslint-plugin-react-refresh"))
|
|
12868
|
-
]);
|
|
12869
|
-
return {
|
|
12870
|
-
pluginReact,
|
|
12871
|
-
pluginReactHooks,
|
|
12872
|
-
pluginReactRefresh
|
|
12873
|
-
};
|
|
12874
|
-
}
|
|
12875
12859
|
async function importParserJsonc() {
|
|
12876
12860
|
const parserJsonc = await interopDefault(import("jsonc-eslint-parser"));
|
|
12877
12861
|
return { parserJsonc };
|
|
@@ -17523,7 +17507,7 @@ function reactRules() {
|
|
|
17523
17507
|
};
|
|
17524
17508
|
}
|
|
17525
17509
|
async function reactHooks() {
|
|
17526
|
-
const
|
|
17510
|
+
const pluginReactHooks = await interopDefault(import("eslint-plugin-react-hooks"));
|
|
17527
17511
|
return [{
|
|
17528
17512
|
files: [GLOB_SRC],
|
|
17529
17513
|
plugins: { "react-hooks": pluginReactHooks },
|
|
@@ -17562,6 +17546,18 @@ function reactRecomendedRules() {
|
|
|
17562
17546
|
"react/require-render-return": 2
|
|
17563
17547
|
};
|
|
17564
17548
|
}
|
|
17549
|
+
async function importReactPlugins() {
|
|
17550
|
+
const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all([
|
|
17551
|
+
interopDefault(import("eslint-plugin-react")),
|
|
17552
|
+
interopDefault(import("eslint-plugin-react-hooks")),
|
|
17553
|
+
interopDefault(import("eslint-plugin-react-refresh"))
|
|
17554
|
+
]);
|
|
17555
|
+
return {
|
|
17556
|
+
pluginReact,
|
|
17557
|
+
pluginReactHooks,
|
|
17558
|
+
pluginReactRefresh
|
|
17559
|
+
};
|
|
17560
|
+
}
|
|
17565
17561
|
const react = async (options) => {
|
|
17566
17562
|
const { componentExts, parserOptions = {}, react: react$1, reactRefresh, tsconfig } = options ?? {};
|
|
17567
17563
|
const reactPlugins = await importReactPlugins();
|
|
@@ -18653,4 +18649,4 @@ const presetAll = makePresetFn([
|
|
|
18653
18649
|
]);
|
|
18654
18650
|
|
|
18655
18651
|
//#endregion
|
|
18656
|
-
export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsonc, importPluginMarkdown, importPluginReact,
|
|
18652
|
+
export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, importYmlLibs, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.20",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@stylistic/eslint-plugin": "5.5.0",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
69
69
|
"@typescript-eslint/parser": "^8.46.2",
|
|
70
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
70
|
+
"@vitest/eslint-plugin": "^1.3.25",
|
|
71
71
|
"debug": "^4.4.3",
|
|
72
72
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
73
73
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
"eslint-plugin-command": "^3.3.1",
|
|
76
76
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
77
77
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
78
|
-
"eslint-plugin-jsdoc": "^61.1.
|
|
78
|
+
"eslint-plugin-jsdoc": "^61.1.9",
|
|
79
79
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
80
80
|
"eslint-plugin-n": "^17.23.1",
|
|
81
81
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
82
82
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
83
83
|
"eslint-plugin-pnpm": "^1.3.0",
|
|
84
84
|
"eslint-plugin-react": "^7.37.5",
|
|
85
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
85
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
86
86
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
87
87
|
"eslint-plugin-toml": "^0.12.0",
|
|
88
88
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
89
|
-
"eslint-plugin-unicorn": "^
|
|
89
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
90
90
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
91
91
|
"eslint-plugin-yml": "^1.19.0",
|
|
92
92
|
"jsonc-eslint-parser": "^2.4.1",
|
|
@@ -115,10 +115,10 @@
|
|
|
115
115
|
"prettier": "^3.6.2",
|
|
116
116
|
"react": "~19.2.0",
|
|
117
117
|
"rimraf": "^6.0.1",
|
|
118
|
-
"tsdown": "^0.15.
|
|
118
|
+
"tsdown": "^0.15.10",
|
|
119
119
|
"tsx": "^4.20.6",
|
|
120
120
|
"typescript": "~5.9.3",
|
|
121
|
-
"vitest": "^4.0.
|
|
121
|
+
"vitest": "^4.0.4"
|
|
122
122
|
},
|
|
123
123
|
"prettier": "@jsse/prettier-config",
|
|
124
124
|
"scripts": {
|