@jsse/eslint-config 0.3.4 → 0.3.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/ts/parser.js +5 -1
- package/dist/esm/fixable.js +0 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/lager.d.ts +2 -0
- package/dist/esm/lager.js +2 -0
- package/dist/index.d.ts +384 -334
- package/dist/index.js +10 -4
- package/package.json +23 -21
package/dist/index.js
CHANGED
|
@@ -10892,6 +10892,8 @@ var fromThrowable = Result.fromThrowable;
|
|
|
10892
10892
|
import process3 from "node:process";
|
|
10893
10893
|
|
|
10894
10894
|
// src/lager.ts
|
|
10895
|
+
import Debug from "debug";
|
|
10896
|
+
var debug = Debug("jsse:eslint-config");
|
|
10895
10897
|
var LAGER_LEVELS = {
|
|
10896
10898
|
trace: 10,
|
|
10897
10899
|
debug: 20,
|
|
@@ -13217,6 +13219,7 @@ function typescriptParser(options) {
|
|
|
13217
13219
|
} = options;
|
|
13218
13220
|
const typeAware = !!tsconfig;
|
|
13219
13221
|
if (useProjectService) {
|
|
13222
|
+
debug("ts parser-options using `projectService`project service");
|
|
13220
13223
|
return {
|
|
13221
13224
|
files,
|
|
13222
13225
|
...ignores2 ? { ignores: ignores2 } : {},
|
|
@@ -13229,7 +13232,7 @@ function typescriptParser(options) {
|
|
|
13229
13232
|
...typeAware ? {
|
|
13230
13233
|
projectService: {
|
|
13231
13234
|
allowDefaultProject: ["*.js"],
|
|
13232
|
-
defaultProject: tsconfig
|
|
13235
|
+
defaultProject: (typeof tsconfig === "string" ? tsconfig : tsconfig[0]) ?? "tsconfig.json"
|
|
13233
13236
|
},
|
|
13234
13237
|
tsconfigRootDir: process5.cwd().replaceAll("\\", "/")
|
|
13235
13238
|
} : {},
|
|
@@ -13240,6 +13243,9 @@ function typescriptParser(options) {
|
|
|
13240
13243
|
name: name ?? `jsse/typescript/${typeAware ? "type-aware-parser" : "parser"}`
|
|
13241
13244
|
};
|
|
13242
13245
|
}
|
|
13246
|
+
debug(
|
|
13247
|
+
"ts parser-options NOT using `projectService`project service - using `project`"
|
|
13248
|
+
);
|
|
13243
13249
|
return {
|
|
13244
13250
|
files,
|
|
13245
13251
|
...ignores2 ? { ignores: ignores2 } : {},
|
|
@@ -13652,7 +13658,7 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
13652
13658
|
const normalizedOptions = normalizeOptions(options);
|
|
13653
13659
|
const {
|
|
13654
13660
|
componentExts,
|
|
13655
|
-
debug,
|
|
13661
|
+
debug: debug2,
|
|
13656
13662
|
gitignore: enableGitignore,
|
|
13657
13663
|
isInEditor: isInEditor2,
|
|
13658
13664
|
off,
|
|
@@ -13665,7 +13671,7 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
13665
13671
|
typeAware,
|
|
13666
13672
|
typescript: enableTypeScript
|
|
13667
13673
|
} = normalizedOptions;
|
|
13668
|
-
if (
|
|
13674
|
+
if (debug2 || process6.argv.includes("--debug")) {
|
|
13669
13675
|
log.level = "debug";
|
|
13670
13676
|
}
|
|
13671
13677
|
log.debug("@jsse/eslint-config debug=true");
|
|
@@ -13851,7 +13857,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
13851
13857
|
}
|
|
13852
13858
|
|
|
13853
13859
|
// src/generated/version.ts
|
|
13854
|
-
var VERSION = "0.3.
|
|
13860
|
+
var VERSION = "0.3.5";
|
|
13855
13861
|
|
|
13856
13862
|
// src/presets.ts
|
|
13857
13863
|
var jsseReact = (options, ...configs) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.5",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,51 +65,53 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
69
|
-
"@eslint/compat": "^1.2.
|
|
68
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
69
|
+
"@eslint/compat": "^1.2.8",
|
|
70
70
|
"@eslint/js": "~9.25.1",
|
|
71
|
-
"@eslint/markdown": "^6.
|
|
71
|
+
"@eslint/markdown": "^6.4.0",
|
|
72
72
|
"@stylistic/eslint-plugin": "4.2.0",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^8.31.
|
|
74
|
-
"@typescript-eslint/parser": "^8.31.
|
|
75
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
74
|
+
"@typescript-eslint/parser": "^8.31.1",
|
|
75
|
+
"@vitest/eslint-plugin": "^1.1.43",
|
|
76
|
+
"debug": "^4.4.0",
|
|
76
77
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
77
78
|
"eslint-merge-processors": "^2.0.0",
|
|
78
79
|
"eslint-plugin-antfu": "^3.1.1",
|
|
79
|
-
"eslint-plugin-command": "^3.
|
|
80
|
-
"eslint-plugin-import-x": "^4.
|
|
81
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
82
|
-
"eslint-plugin-jsonc": "^2.
|
|
83
|
-
"eslint-plugin-n": "^17.
|
|
80
|
+
"eslint-plugin-command": "^3.2.0",
|
|
81
|
+
"eslint-plugin-import-x": "^4.11.0",
|
|
82
|
+
"eslint-plugin-jsdoc": "^50.6.11",
|
|
83
|
+
"eslint-plugin-jsonc": "^2.20.0",
|
|
84
|
+
"eslint-plugin-n": "^17.17.0",
|
|
84
85
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
85
|
-
"eslint-plugin-perfectionist": "^4.
|
|
86
|
-
"eslint-plugin-react": "~7.37.
|
|
86
|
+
"eslint-plugin-perfectionist": "^4.12.3",
|
|
87
|
+
"eslint-plugin-react": "~7.37.5",
|
|
87
88
|
"eslint-plugin-react-hooks": "~5.2.0",
|
|
88
89
|
"eslint-plugin-react-refresh": "~0.4.20",
|
|
89
90
|
"eslint-plugin-toml": "^0.12.0",
|
|
90
91
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
91
92
|
"eslint-plugin-unicorn": "^58.0.0",
|
|
92
93
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
93
|
-
"eslint-plugin-yml": "^1.
|
|
94
|
+
"eslint-plugin-yml": "^1.18.0",
|
|
94
95
|
"jsonc-eslint-parser": "^2.4.0",
|
|
95
96
|
"toml-eslint-parser": "^0.10.0",
|
|
96
|
-
"typescript-eslint": "^8.31.
|
|
97
|
+
"typescript-eslint": "^8.31.1",
|
|
97
98
|
"yaml-eslint-parser": "^1.3.0"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
101
|
"@biomejs/biome": "1.9.4",
|
|
101
|
-
"@changesets/cli": "^2.
|
|
102
|
+
"@changesets/cli": "^2.29.2",
|
|
102
103
|
"@jsse/prettier-config": "^0.1.0",
|
|
103
104
|
"@jsse/tsconfig": "^0.3.0",
|
|
104
105
|
"@stylistic/eslint-plugin-jsx": "^4.2.0",
|
|
106
|
+
"@types/debug": "^4.1.12",
|
|
105
107
|
"@types/eslint": "^9.6.1",
|
|
106
108
|
"@types/fs-extra": "^11.0.4",
|
|
107
|
-
"@types/node": "^22.
|
|
109
|
+
"@types/node": "^22.15.3",
|
|
108
110
|
"cac": "^6.7.14",
|
|
109
111
|
"eslint": "^9.25.1",
|
|
110
112
|
"eslint-flat-config-utils": "^2.0.1",
|
|
111
113
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
112
|
-
"eslint-typegen": "^2.
|
|
114
|
+
"eslint-typegen": "^2.1.0",
|
|
113
115
|
"execa": "~9.5.2",
|
|
114
116
|
"fast-glob": "^3.3.3",
|
|
115
117
|
"fs-extra": "^11.3.0",
|
|
@@ -122,9 +124,9 @@
|
|
|
122
124
|
"rimraf": "^6.0.1",
|
|
123
125
|
"tailwindcss": "^3.4.17",
|
|
124
126
|
"tsup": "^8.4.0",
|
|
125
|
-
"tsx": "^4.19.
|
|
127
|
+
"tsx": "^4.19.4",
|
|
126
128
|
"typescript": "5.8.3",
|
|
127
|
-
"vitest": "^3.
|
|
129
|
+
"vitest": "^3.1.2"
|
|
128
130
|
},
|
|
129
131
|
"prettier": "@jsse/prettier-config",
|
|
130
132
|
"scripts": {
|