@jsse/eslint-config 0.4.4 → 0.4.5
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/esm/configs/imports.js +3 -4
- package/dist/esm/configs/stylistic.js +9 -7
- package/dist/esm/configs/ts/typescript.js +3 -2
- package/dist/esm/const.js +0 -1
- package/dist/esm/fixable.d.ts +1 -1
- package/dist/esm/generated/fixable-rules-map.js +0 -10
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins-all.d.ts +1 -1
- package/dist/esm/plugins-all.js +4 -3
- package/dist/esm/plugins.d.ts +1 -1
- package/dist/esm/plugins.js +1 -1
- package/dist/index.d.ts +81 -906
- package/dist/index.js +10 -20
- package/dist/{version-eB55legw.js → version-B0HyilUh.js} +1 -1
- package/package.json +10 -13
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS, __export, __toESM } from "./chunk-CkHaCily.js";
|
|
2
|
-
import { VERSION } from "./version-
|
|
2
|
+
import { VERSION } from "./version-B0HyilUh.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";
|
|
@@ -15,7 +15,7 @@ import pluginTs from "@typescript-eslint/eslint-plugin";
|
|
|
15
15
|
import * as parserTs from "@typescript-eslint/parser";
|
|
16
16
|
import pluginAntfu from "eslint-plugin-antfu";
|
|
17
17
|
import pluginDeMorgan from "eslint-plugin-de-morgan";
|
|
18
|
-
import
|
|
18
|
+
import pluginImportLite from "eslint-plugin-import-lite";
|
|
19
19
|
import pluginN from "eslint-plugin-n";
|
|
20
20
|
import pluginPerfectionist from "eslint-plugin-perfectionist";
|
|
21
21
|
import pluginPnpm from "eslint-plugin-pnpm";
|
|
@@ -36,7 +36,6 @@ const SLOW_RULES = [
|
|
|
36
36
|
"@typescript-eslint/no-unsafe-member-access",
|
|
37
37
|
"@typescript-eslint/no-unsafe-return",
|
|
38
38
|
"import/no-duplicates",
|
|
39
|
-
"import/no-self-import",
|
|
40
39
|
"jsdoc/check-access",
|
|
41
40
|
"jsdoc/check-alignment",
|
|
42
41
|
"jsdoc/check-property-names",
|
|
@@ -13091,14 +13090,12 @@ const imports = async (options) => {
|
|
|
13091
13090
|
const { stylistic: stylistic$1 = true } = options ?? {};
|
|
13092
13091
|
return [{
|
|
13093
13092
|
name: "jsse/import",
|
|
13094
|
-
plugins: { import:
|
|
13093
|
+
plugins: { import: pluginImportLite },
|
|
13095
13094
|
rules: {
|
|
13096
13095
|
"import/first": "error",
|
|
13097
13096
|
"import/no-duplicates": "error",
|
|
13098
13097
|
"import/no-mutable-exports": "error",
|
|
13099
13098
|
"import/no-named-default": "error",
|
|
13100
|
-
"import/no-self-import": "error",
|
|
13101
|
-
"import/no-webpack-loader-syntax": "error",
|
|
13102
13099
|
"import/order": "off",
|
|
13103
13100
|
...stylistic$1 ? { "import/newline-after-import": ["error", {
|
|
13104
13101
|
considerComments: true,
|
|
@@ -17857,22 +17854,15 @@ const sortTsconfig = async (options) => {
|
|
|
17857
17854
|
|
|
17858
17855
|
//#endregion
|
|
17859
17856
|
//#region src/configs/stylistic.ts
|
|
17860
|
-
function jsxStylistic(
|
|
17857
|
+
function jsxStylistic() {
|
|
17861
17858
|
return {
|
|
17862
17859
|
"@stylistic/jsx-curly-brace-presence": ["error", { propElementValues: "always" }],
|
|
17863
|
-
"@stylistic/jsx-indent": [
|
|
17864
|
-
"error",
|
|
17865
|
-
indent,
|
|
17866
|
-
{
|
|
17867
|
-
checkAttributes: true,
|
|
17868
|
-
indentLogicalExpressions: true
|
|
17869
|
-
}
|
|
17870
|
-
],
|
|
17860
|
+
"@stylistic/jsx-indent-props": ["error", { indentMode: 2 }],
|
|
17871
17861
|
"@stylistic/jsx-quotes": "error"
|
|
17872
17862
|
};
|
|
17873
17863
|
}
|
|
17874
17864
|
const stylistic = async (options) => {
|
|
17875
|
-
const {
|
|
17865
|
+
const { jsx = true, quotes = "double" } = options ?? {};
|
|
17876
17866
|
const { pluginStylistic } = await importPluginStylistic();
|
|
17877
17867
|
return [{
|
|
17878
17868
|
name: "jsse/stylistic",
|
|
@@ -17883,11 +17873,11 @@ const stylistic = async (options) => {
|
|
|
17883
17873
|
"error",
|
|
17884
17874
|
quotes,
|
|
17885
17875
|
{
|
|
17886
|
-
allowTemplateLiterals:
|
|
17876
|
+
allowTemplateLiterals: "never",
|
|
17887
17877
|
avoidEscape: true
|
|
17888
17878
|
}
|
|
17889
17879
|
],
|
|
17890
|
-
...jsx ? jsxStylistic(
|
|
17880
|
+
...jsx ? jsxStylistic() : {}
|
|
17891
17881
|
}
|
|
17892
17882
|
}];
|
|
17893
17883
|
};
|
|
@@ -18030,7 +18020,7 @@ const typescript = async (options) => {
|
|
|
18030
18020
|
{
|
|
18031
18021
|
name: "jsse/typescript/setup",
|
|
18032
18022
|
plugins: {
|
|
18033
|
-
import:
|
|
18023
|
+
import: pluginImportLite,
|
|
18034
18024
|
[tsPrefixTo]: pluginTs
|
|
18035
18025
|
}
|
|
18036
18026
|
},
|
|
@@ -18671,4 +18661,4 @@ const presetAll = makePresetFn([
|
|
|
18671
18661
|
]);
|
|
18672
18662
|
|
|
18673
18663
|
//#endregion
|
|
18674
|
-
export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, importPluginUnicorn, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments,
|
|
18664
|
+
export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, importPluginUnicorn, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, 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.5",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
61
61
|
"@eslint/compat": "^1.3.1",
|
|
62
|
-
"@eslint/js": "~9.
|
|
63
|
-
"@eslint/markdown": "^
|
|
64
|
-
"@stylistic/eslint-plugin": "5.
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
66
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
+
"@eslint/js": "~9.31.0",
|
|
63
|
+
"@eslint/markdown": "^7.0.0",
|
|
64
|
+
"@stylistic/eslint-plugin": "5.2.0",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
66
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
67
67
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
68
68
|
"debug": "^4.4.1",
|
|
69
69
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"eslint-plugin-antfu": "^3.1.1",
|
|
72
72
|
"eslint-plugin-command": "^3.3.1",
|
|
73
73
|
"eslint-plugin-de-morgan": "^1.3.0",
|
|
74
|
-
"eslint-plugin-import-
|
|
75
|
-
"eslint-plugin-jsdoc": "^51.
|
|
74
|
+
"eslint-plugin-import-lite": "^0.3.0",
|
|
75
|
+
"eslint-plugin-jsdoc": "^51.4.1",
|
|
76
76
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
77
77
|
"eslint-plugin-n": "^17.21.0",
|
|
78
78
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
@@ -88,17 +88,15 @@
|
|
|
88
88
|
"eslint-plugin-yml": "^1.18.0",
|
|
89
89
|
"jsonc-eslint-parser": "^2.4.0",
|
|
90
90
|
"toml-eslint-parser": "^0.10.0",
|
|
91
|
-
"typescript-eslint": "^8.
|
|
91
|
+
"typescript-eslint": "^8.37.0",
|
|
92
92
|
"yaml-eslint-parser": "^1.3.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@biomejs/biome": "2.
|
|
95
|
+
"@biomejs/biome": "2.1.1",
|
|
96
96
|
"@changesets/cli": "^2.29.5",
|
|
97
97
|
"@jsse/prettier-config": "^1.0.0",
|
|
98
98
|
"@jsse/tsconfig": "^0.3.0",
|
|
99
|
-
"@stylistic/eslint-plugin-jsx": "^4.4.1",
|
|
100
99
|
"@types/debug": "^4.1.12",
|
|
101
|
-
"@types/eslint": "^9.6.1",
|
|
102
100
|
"@types/fs-extra": "^11.0.4",
|
|
103
101
|
"@types/node": "^22.15.30",
|
|
104
102
|
"cac": "^6.7.14",
|
|
@@ -110,7 +108,6 @@
|
|
|
110
108
|
"fs-extra": "^11.3.0",
|
|
111
109
|
"globals": "^16.3.0",
|
|
112
110
|
"local-pkg": "^1.1.1",
|
|
113
|
-
"neverthrow": "^8.2.0",
|
|
114
111
|
"picocolors": "^1.1.1",
|
|
115
112
|
"prettier": "^3.6.2",
|
|
116
113
|
"react": "~19.1.0",
|