@jsse/eslint-config 0.1.17 → 0.1.19
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +132 -44
- package/dist/index.d.cts +163 -92
- package/dist/index.d.ts +163 -92
- package/dist/index.js +131 -44
- package/package.json +18 -14
package/dist/index.js
CHANGED
|
@@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
mod
|
|
25
25
|
));
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/globals@15.
|
|
27
|
+
// node_modules/.pnpm/globals@15.8.0/node_modules/globals/globals.json
|
|
28
28
|
var require_globals = __commonJS({
|
|
29
|
-
"node_modules/.pnpm/globals@15.
|
|
29
|
+
"node_modules/.pnpm/globals@15.8.0/node_modules/globals/globals.json"(exports, module) {
|
|
30
30
|
module.exports = {
|
|
31
31
|
amd: {
|
|
32
32
|
define: false,
|
|
@@ -301,6 +301,7 @@ var require_globals = __commonJS({
|
|
|
301
301
|
FileSystemHandle: false,
|
|
302
302
|
FileSystemWritableFileStream: false,
|
|
303
303
|
find: false,
|
|
304
|
+
Float16Array: false,
|
|
304
305
|
focus: false,
|
|
305
306
|
FocusEvent: false,
|
|
306
307
|
FontData: false,
|
|
@@ -1882,6 +1883,68 @@ var require_globals = __commonJS({
|
|
|
1882
1883
|
WeakRef: false,
|
|
1883
1884
|
WeakSet: false
|
|
1884
1885
|
},
|
|
1886
|
+
es2025: {
|
|
1887
|
+
AggregateError: false,
|
|
1888
|
+
Array: false,
|
|
1889
|
+
ArrayBuffer: false,
|
|
1890
|
+
Atomics: false,
|
|
1891
|
+
BigInt: false,
|
|
1892
|
+
BigInt64Array: false,
|
|
1893
|
+
BigUint64Array: false,
|
|
1894
|
+
Boolean: false,
|
|
1895
|
+
DataView: false,
|
|
1896
|
+
Date: false,
|
|
1897
|
+
decodeURI: false,
|
|
1898
|
+
decodeURIComponent: false,
|
|
1899
|
+
encodeURI: false,
|
|
1900
|
+
encodeURIComponent: false,
|
|
1901
|
+
Error: false,
|
|
1902
|
+
escape: false,
|
|
1903
|
+
eval: false,
|
|
1904
|
+
EvalError: false,
|
|
1905
|
+
FinalizationRegistry: false,
|
|
1906
|
+
Float32Array: false,
|
|
1907
|
+
Float64Array: false,
|
|
1908
|
+
Function: false,
|
|
1909
|
+
globalThis: false,
|
|
1910
|
+
Infinity: false,
|
|
1911
|
+
Int16Array: false,
|
|
1912
|
+
Int32Array: false,
|
|
1913
|
+
Int8Array: false,
|
|
1914
|
+
Intl: false,
|
|
1915
|
+
isFinite: false,
|
|
1916
|
+
isNaN: false,
|
|
1917
|
+
JSON: false,
|
|
1918
|
+
Map: false,
|
|
1919
|
+
Math: false,
|
|
1920
|
+
NaN: false,
|
|
1921
|
+
Number: false,
|
|
1922
|
+
Object: false,
|
|
1923
|
+
parseFloat: false,
|
|
1924
|
+
parseInt: false,
|
|
1925
|
+
Promise: false,
|
|
1926
|
+
Proxy: false,
|
|
1927
|
+
RangeError: false,
|
|
1928
|
+
ReferenceError: false,
|
|
1929
|
+
Reflect: false,
|
|
1930
|
+
RegExp: false,
|
|
1931
|
+
Set: false,
|
|
1932
|
+
SharedArrayBuffer: false,
|
|
1933
|
+
String: false,
|
|
1934
|
+
Symbol: false,
|
|
1935
|
+
SyntaxError: false,
|
|
1936
|
+
TypeError: false,
|
|
1937
|
+
Uint16Array: false,
|
|
1938
|
+
Uint32Array: false,
|
|
1939
|
+
Uint8Array: false,
|
|
1940
|
+
Uint8ClampedArray: false,
|
|
1941
|
+
undefined: false,
|
|
1942
|
+
unescape: false,
|
|
1943
|
+
URIError: false,
|
|
1944
|
+
WeakMap: false,
|
|
1945
|
+
WeakRef: false,
|
|
1946
|
+
WeakSet: false
|
|
1947
|
+
},
|
|
1885
1948
|
es5: {
|
|
1886
1949
|
Array: false,
|
|
1887
1950
|
Boolean: false,
|
|
@@ -2894,9 +2957,9 @@ var require_globals = __commonJS({
|
|
|
2894
2957
|
}
|
|
2895
2958
|
});
|
|
2896
2959
|
|
|
2897
|
-
// node_modules/.pnpm/globals@15.
|
|
2960
|
+
// node_modules/.pnpm/globals@15.8.0/node_modules/globals/index.js
|
|
2898
2961
|
var require_globals2 = __commonJS({
|
|
2899
|
-
"node_modules/.pnpm/globals@15.
|
|
2962
|
+
"node_modules/.pnpm/globals@15.8.0/node_modules/globals/index.js"(exports, module) {
|
|
2900
2963
|
"use strict";
|
|
2901
2964
|
module.exports = require_globals();
|
|
2902
2965
|
}
|
|
@@ -9924,6 +9987,12 @@ async function importPluginJsdoc() {
|
|
|
9924
9987
|
pluginJsdoc
|
|
9925
9988
|
};
|
|
9926
9989
|
}
|
|
9990
|
+
async function importPluginTsdoc() {
|
|
9991
|
+
const pluginTsdoc = await interopDefault2(import("eslint-plugin-tsdoc"));
|
|
9992
|
+
return {
|
|
9993
|
+
pluginTsdoc
|
|
9994
|
+
};
|
|
9995
|
+
}
|
|
9927
9996
|
async function importPluginStylistic() {
|
|
9928
9997
|
const pluginStylistic = await interopDefault2(
|
|
9929
9998
|
import("@stylistic/eslint-plugin")
|
|
@@ -9941,7 +10010,7 @@ async function importPluginTailwind() {
|
|
|
9941
10010
|
var antfu = async () => {
|
|
9942
10011
|
return [
|
|
9943
10012
|
{
|
|
9944
|
-
name: "jsse
|
|
10013
|
+
name: "jsse/antfu",
|
|
9945
10014
|
plugins: {
|
|
9946
10015
|
antfu: default2
|
|
9947
10016
|
},
|
|
@@ -9953,7 +10022,7 @@ var antfu = async () => {
|
|
|
9953
10022
|
},
|
|
9954
10023
|
{
|
|
9955
10024
|
files: ["**/src/**/*"],
|
|
9956
|
-
name: "jsse
|
|
10025
|
+
name: "jsse/antfu/src",
|
|
9957
10026
|
// @ts-expect-error - antfu plugin types err
|
|
9958
10027
|
rules: {
|
|
9959
10028
|
"antfu/no-import-dist": "error"
|
|
@@ -9961,7 +10030,7 @@ var antfu = async () => {
|
|
|
9961
10030
|
},
|
|
9962
10031
|
{
|
|
9963
10032
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
9964
|
-
name: "jsse
|
|
10033
|
+
name: "jsse/antfu/bin",
|
|
9965
10034
|
rules: {
|
|
9966
10035
|
"antfu/no-import-dist": "off",
|
|
9967
10036
|
"antfu/no-import-node-modules-by-path": "off"
|
|
@@ -9973,7 +10042,7 @@ var antfu = async () => {
|
|
|
9973
10042
|
// src/configs/comments.ts
|
|
9974
10043
|
var comments = async () => [
|
|
9975
10044
|
{
|
|
9976
|
-
name: "jsse
|
|
10045
|
+
name: "jsse/eslint-comments",
|
|
9977
10046
|
plugins: {
|
|
9978
10047
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9979
10048
|
"eslint-comments": default3
|
|
@@ -10001,7 +10070,7 @@ var imports = async (options) => {
|
|
|
10001
10070
|
const { stylistic: stylistic2 = true } = options ?? {};
|
|
10002
10071
|
return [
|
|
10003
10072
|
{
|
|
10004
|
-
name: "jsse
|
|
10073
|
+
name: "jsse/import",
|
|
10005
10074
|
plugins: {
|
|
10006
10075
|
import: pluginImport
|
|
10007
10076
|
},
|
|
@@ -10057,7 +10126,7 @@ var javascript = async (options) => {
|
|
|
10057
10126
|
linterOptions: {
|
|
10058
10127
|
reportUnusedDisableDirectives
|
|
10059
10128
|
},
|
|
10060
|
-
name: "jsse
|
|
10129
|
+
name: "jsse/javascript",
|
|
10061
10130
|
plugins: {
|
|
10062
10131
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
10063
10132
|
"unused-imports": default7
|
|
@@ -10278,7 +10347,7 @@ var javascript = async (options) => {
|
|
|
10278
10347
|
},
|
|
10279
10348
|
{
|
|
10280
10349
|
files: [`scripts/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
|
|
10281
|
-
name: "jsse
|
|
10350
|
+
name: "jsse/scripts-overrides",
|
|
10282
10351
|
rules: {
|
|
10283
10352
|
"no-console": "off"
|
|
10284
10353
|
}
|
|
@@ -10291,7 +10360,7 @@ var jsdoc = async () => {
|
|
|
10291
10360
|
const { pluginJsdoc } = await importPluginJsdoc();
|
|
10292
10361
|
return [
|
|
10293
10362
|
{
|
|
10294
|
-
name: "jsse
|
|
10363
|
+
name: "jsse/jsdoc",
|
|
10295
10364
|
plugins: {
|
|
10296
10365
|
jsdoc: pluginJsdoc
|
|
10297
10366
|
},
|
|
@@ -10318,6 +10387,23 @@ var jsdoc = async () => {
|
|
|
10318
10387
|
];
|
|
10319
10388
|
};
|
|
10320
10389
|
|
|
10390
|
+
// src/configs/tsdoc.ts
|
|
10391
|
+
var tsdoc = async () => {
|
|
10392
|
+
const { pluginTsdoc } = await importPluginTsdoc();
|
|
10393
|
+
return [
|
|
10394
|
+
{
|
|
10395
|
+
files: ["*.ts", "*.tsx"],
|
|
10396
|
+
name: "jsse/tsdoc",
|
|
10397
|
+
plugins: {
|
|
10398
|
+
tsdoc: pluginTsdoc
|
|
10399
|
+
},
|
|
10400
|
+
rules: {
|
|
10401
|
+
"tsdoc/syntax": "warn"
|
|
10402
|
+
}
|
|
10403
|
+
}
|
|
10404
|
+
];
|
|
10405
|
+
};
|
|
10406
|
+
|
|
10321
10407
|
// src/configs/jsonc.ts
|
|
10322
10408
|
var jsonc = async (options) => {
|
|
10323
10409
|
const { overrides = {}, stylistic: stylistic2 = true } = options ?? {};
|
|
@@ -10325,7 +10411,7 @@ var jsonc = async (options) => {
|
|
|
10325
10411
|
const { parserJsonc, pluginJsonc } = await importJsoncLibs();
|
|
10326
10412
|
return [
|
|
10327
10413
|
{
|
|
10328
|
-
name: "jsse
|
|
10414
|
+
name: "jsse/jsonc/setup",
|
|
10329
10415
|
plugins: {
|
|
10330
10416
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
|
|
10331
10417
|
jsonc: pluginJsonc
|
|
@@ -10337,7 +10423,7 @@ var jsonc = async (options) => {
|
|
|
10337
10423
|
languageOptions: {
|
|
10338
10424
|
parser: parserJsonc
|
|
10339
10425
|
},
|
|
10340
|
-
name: "jsse
|
|
10426
|
+
name: "jsse/jsonc/rules",
|
|
10341
10427
|
rules: {
|
|
10342
10428
|
"jsonc/no-bigint-literals": "error",
|
|
10343
10429
|
"jsonc/no-binary-expression": "error",
|
|
@@ -10848,7 +10934,7 @@ var markdown = async (options) => {
|
|
|
10848
10934
|
);
|
|
10849
10935
|
return [
|
|
10850
10936
|
{
|
|
10851
|
-
name: "jsse
|
|
10937
|
+
name: "jsse/markdown/setup",
|
|
10852
10938
|
plugins: {
|
|
10853
10939
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
10854
10940
|
markdown: pluginMarkdown
|
|
@@ -10856,7 +10942,7 @@ var markdown = async (options) => {
|
|
|
10856
10942
|
},
|
|
10857
10943
|
{
|
|
10858
10944
|
files: [GLOB_MARKDOWN],
|
|
10859
|
-
name: "jsse
|
|
10945
|
+
name: "jsse/markdown/processor",
|
|
10860
10946
|
processor: "markdown/markdown"
|
|
10861
10947
|
},
|
|
10862
10948
|
{
|
|
@@ -10871,7 +10957,7 @@ var markdown = async (options) => {
|
|
|
10871
10957
|
}
|
|
10872
10958
|
}
|
|
10873
10959
|
},
|
|
10874
|
-
name: "jsse
|
|
10960
|
+
name: "jsse/markdown/rules",
|
|
10875
10961
|
rules: {
|
|
10876
10962
|
"@typescript-eslint/await-thenable": "off",
|
|
10877
10963
|
"@typescript-eslint/consistent-type-imports": "off",
|
|
@@ -10920,7 +11006,7 @@ var markdown = async (options) => {
|
|
|
10920
11006
|
var n = async () => {
|
|
10921
11007
|
return [
|
|
10922
11008
|
{
|
|
10923
|
-
name: "jsse
|
|
11009
|
+
name: "jsse/n",
|
|
10924
11010
|
plugins: {
|
|
10925
11011
|
n: default4
|
|
10926
11012
|
},
|
|
@@ -10942,7 +11028,7 @@ var n = async () => {
|
|
|
10942
11028
|
var perfectionist = async () => {
|
|
10943
11029
|
return [
|
|
10944
11030
|
{
|
|
10945
|
-
name: "jsse
|
|
11031
|
+
name: "jsse/perfectionist",
|
|
10946
11032
|
plugins: {
|
|
10947
11033
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
10948
11034
|
perfectionist: default5
|
|
@@ -11069,7 +11155,7 @@ function eslintConfigPrettierRules() {
|
|
|
11069
11155
|
var prettier = async () => {
|
|
11070
11156
|
return [
|
|
11071
11157
|
{
|
|
11072
|
-
name: "jsse
|
|
11158
|
+
name: "jsse/prettier/config",
|
|
11073
11159
|
rules: eslintConfigPrettierRules()
|
|
11074
11160
|
}
|
|
11075
11161
|
];
|
|
@@ -11279,14 +11365,14 @@ function reactRefreshFlatConfigRules() {
|
|
|
11279
11365
|
return [
|
|
11280
11366
|
{
|
|
11281
11367
|
files: [GLOB_SRC],
|
|
11282
|
-
name: "jsse
|
|
11368
|
+
name: "jsse/react/refresh",
|
|
11283
11369
|
rules: {
|
|
11284
11370
|
"react-refresh/only-export-components": "error"
|
|
11285
11371
|
}
|
|
11286
11372
|
},
|
|
11287
11373
|
{
|
|
11288
11374
|
files: ["**/*.stories.tsx"],
|
|
11289
|
-
name: "jsse
|
|
11375
|
+
name: "jsse/react:refresh/stories",
|
|
11290
11376
|
rules: {
|
|
11291
11377
|
"react-refresh/only-export-components": "off"
|
|
11292
11378
|
}
|
|
@@ -11339,7 +11425,7 @@ var react = async (options) => {
|
|
|
11339
11425
|
react: react2,
|
|
11340
11426
|
tsconfig
|
|
11341
11427
|
}),
|
|
11342
|
-
name: "jsse
|
|
11428
|
+
name: "jsse/react/setup",
|
|
11343
11429
|
plugins: {
|
|
11344
11430
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
11345
11431
|
react: pluginReact,
|
|
@@ -11376,7 +11462,7 @@ var sortPackageJson = async () => {
|
|
|
11376
11462
|
return [
|
|
11377
11463
|
{
|
|
11378
11464
|
files: ["**/package.json"],
|
|
11379
|
-
name: "jsse
|
|
11465
|
+
name: "jsse/sort/package-json",
|
|
11380
11466
|
rules: {
|
|
11381
11467
|
"jsonc/sort-array-values": [
|
|
11382
11468
|
"error",
|
|
@@ -11462,7 +11548,7 @@ var sortTsconfig = async () => {
|
|
|
11462
11548
|
return [
|
|
11463
11549
|
{
|
|
11464
11550
|
files: ["**/tsconfig.json", "**/tsconfig.*.json"],
|
|
11465
|
-
name: "jsse
|
|
11551
|
+
name: "jsse/sort/tsconfig",
|
|
11466
11552
|
rules: {
|
|
11467
11553
|
"jsonc/sort-keys": [
|
|
11468
11554
|
"error",
|
|
@@ -11606,7 +11692,7 @@ var stylistic = async (options) => {
|
|
|
11606
11692
|
const { pluginStylistic } = await importPluginStylistic();
|
|
11607
11693
|
return [
|
|
11608
11694
|
{
|
|
11609
|
-
name: "jsse
|
|
11695
|
+
name: "jsse/stylistic",
|
|
11610
11696
|
plugins: {
|
|
11611
11697
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11612
11698
|
"@stylistic": pluginStylistic
|
|
@@ -11651,7 +11737,7 @@ var tailwind = async (options) => {
|
|
|
11651
11737
|
return [
|
|
11652
11738
|
{
|
|
11653
11739
|
files: [GLOB_SRC],
|
|
11654
|
-
name: "jsse
|
|
11740
|
+
name: "jsse/tailwind/rules",
|
|
11655
11741
|
plugins: {
|
|
11656
11742
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
11657
11743
|
tailwindcss: pluginTailwind
|
|
@@ -11677,7 +11763,7 @@ var noOnlyTests = async (options = {}) => {
|
|
|
11677
11763
|
);
|
|
11678
11764
|
return [
|
|
11679
11765
|
{
|
|
11680
|
-
name: "jsse
|
|
11766
|
+
name: "jsse/no-only-tests/setup",
|
|
11681
11767
|
plugins: {
|
|
11682
11768
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
11683
11769
|
"no-only-tests": pluginNoOnlyTests
|
|
@@ -11685,7 +11771,7 @@ var noOnlyTests = async (options = {}) => {
|
|
|
11685
11771
|
},
|
|
11686
11772
|
{
|
|
11687
11773
|
files: GLOB_TESTS,
|
|
11688
|
-
name: "jsse
|
|
11774
|
+
name: "jsse/no-only-tests/rules",
|
|
11689
11775
|
rules: {
|
|
11690
11776
|
"no-only-tests/no-only-tests": isInEditor2 ? "off" : isCI() ? "error" : "warn",
|
|
11691
11777
|
"unicorn/no-null": "off",
|
|
@@ -11722,7 +11808,7 @@ var typescript = async (options) => {
|
|
|
11722
11808
|
return [
|
|
11723
11809
|
{
|
|
11724
11810
|
// Install the plugins without globs, so they can be configured separately.
|
|
11725
|
-
name: "jsse
|
|
11811
|
+
name: "jsse/typescript/setup",
|
|
11726
11812
|
plugins: {
|
|
11727
11813
|
import: pluginImport,
|
|
11728
11814
|
[tsPrefixTo]: default8
|
|
@@ -11737,17 +11823,17 @@ var typescript = async (options) => {
|
|
|
11737
11823
|
react: react2,
|
|
11738
11824
|
tsconfig: tsconfigPath
|
|
11739
11825
|
}),
|
|
11740
|
-
name: "jsse
|
|
11826
|
+
name: "jsse/typescript/parser"
|
|
11741
11827
|
},
|
|
11742
11828
|
{
|
|
11743
11829
|
// only apply ts rules to ts files!
|
|
11744
11830
|
files: [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
|
|
11745
|
-
name: "jsse
|
|
11831
|
+
name: "jsse/typescript/rules",
|
|
11746
11832
|
rules: renameRules(tsrules || {}, tsPrefix, tsPrefixTo)
|
|
11747
11833
|
},
|
|
11748
11834
|
{
|
|
11749
11835
|
files: ["**/*.d.ts"],
|
|
11750
|
-
name: "jsse
|
|
11836
|
+
name: "jsse/typescript:disables/dts",
|
|
11751
11837
|
rules: {
|
|
11752
11838
|
"eslint-comments/no-unlimited-disable": "off",
|
|
11753
11839
|
"import/no-duplicates": "off",
|
|
@@ -11757,7 +11843,7 @@ var typescript = async (options) => {
|
|
|
11757
11843
|
},
|
|
11758
11844
|
{
|
|
11759
11845
|
files: ["**/*.{test,spec}.ts?(x)"],
|
|
11760
|
-
name: "jsse
|
|
11846
|
+
name: "jsse/typescript:disable/test",
|
|
11761
11847
|
rules: {
|
|
11762
11848
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
11763
11849
|
"no-unused-expressions": "off"
|
|
@@ -11765,7 +11851,7 @@ var typescript = async (options) => {
|
|
|
11765
11851
|
},
|
|
11766
11852
|
{
|
|
11767
11853
|
files: ["**/*.js", "**/*.cjs"],
|
|
11768
|
-
name: "jsse
|
|
11854
|
+
name: "jsse/typescript/javascript-overrides",
|
|
11769
11855
|
rules: {
|
|
11770
11856
|
"@typescript-eslint/no-require-imports": "off",
|
|
11771
11857
|
"@typescript-eslint/no-var-requires": "off"
|
|
@@ -11797,7 +11883,7 @@ function unicornRecommended() {
|
|
|
11797
11883
|
var unicorn = async () => {
|
|
11798
11884
|
return [
|
|
11799
11885
|
{
|
|
11800
|
-
name: "jsse
|
|
11886
|
+
name: "jsse/unicorn",
|
|
11801
11887
|
plugins: {
|
|
11802
11888
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
11803
11889
|
unicorn: default6
|
|
@@ -11877,7 +11963,7 @@ var unicorn = async () => {
|
|
|
11877
11963
|
},
|
|
11878
11964
|
{
|
|
11879
11965
|
files: GLOB_TESTS,
|
|
11880
|
-
name: "jsse
|
|
11966
|
+
name: "jsse/unicorn/tests",
|
|
11881
11967
|
rules: {
|
|
11882
11968
|
"unicorn/no-null": "off",
|
|
11883
11969
|
"unicorn/no-unused-properties": "off"
|
|
@@ -11892,14 +11978,14 @@ var vitest = async (options = {}) => {
|
|
|
11892
11978
|
const pluginVitest = await interopDefault2(import("eslint-plugin-vitest"));
|
|
11893
11979
|
return [
|
|
11894
11980
|
{
|
|
11895
|
-
name: "jsse
|
|
11981
|
+
name: "jsse/vitest/setup",
|
|
11896
11982
|
plugins: {
|
|
11897
11983
|
vitest: pluginVitest
|
|
11898
11984
|
}
|
|
11899
11985
|
},
|
|
11900
11986
|
{
|
|
11901
11987
|
files: GLOB_TESTS,
|
|
11902
|
-
name: "jsse
|
|
11988
|
+
name: "jsse/vitest/rules",
|
|
11903
11989
|
rules: {
|
|
11904
11990
|
"vitest/consistent-test-it": [
|
|
11905
11991
|
"error",
|
|
@@ -11929,7 +12015,7 @@ var yml = async (options) => {
|
|
|
11929
12015
|
]);
|
|
11930
12016
|
return [
|
|
11931
12017
|
{
|
|
11932
|
-
name: "jsse
|
|
12018
|
+
name: "jsse/yaml/setup",
|
|
11933
12019
|
plugins: {
|
|
11934
12020
|
yaml: pluginYaml
|
|
11935
12021
|
}
|
|
@@ -11939,7 +12025,7 @@ var yml = async (options) => {
|
|
|
11939
12025
|
languageOptions: {
|
|
11940
12026
|
parser: parserYaml
|
|
11941
12027
|
},
|
|
11942
|
-
name: "antfu:yaml
|
|
12028
|
+
name: "antfu:yaml/rules",
|
|
11943
12029
|
rules: {
|
|
11944
12030
|
"style/spaced-comment": "off",
|
|
11945
12031
|
"yaml/block-mapping": "error",
|
|
@@ -12107,7 +12193,7 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
12107
12193
|
react: enableReact,
|
|
12108
12194
|
typeAware
|
|
12109
12195
|
});
|
|
12110
|
-
configs.push(tscfg);
|
|
12196
|
+
configs.push(tscfg, tsdoc());
|
|
12111
12197
|
}
|
|
12112
12198
|
if (normalizedOptions.markdown) {
|
|
12113
12199
|
configs.push(markdown());
|
|
@@ -12198,9 +12284,9 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
12198
12284
|
}
|
|
12199
12285
|
if (normalizedOptions.rootId !== "jsse") {
|
|
12200
12286
|
combinedConfigs.forEach((config) => {
|
|
12201
|
-
if (config.name && config.name.startsWith("jsse
|
|
12287
|
+
if (config.name && config.name.startsWith("jsse/")) {
|
|
12202
12288
|
config.name = config.name.replace(
|
|
12203
|
-
"jsse
|
|
12289
|
+
"jsse/",
|
|
12204
12290
|
`${normalizedOptions.rootId}:`
|
|
12205
12291
|
);
|
|
12206
12292
|
}
|
|
@@ -12275,6 +12361,7 @@ export {
|
|
|
12275
12361
|
importPluginReactRefresh,
|
|
12276
12362
|
importPluginStylistic,
|
|
12277
12363
|
importPluginTailwind,
|
|
12364
|
+
importPluginTsdoc,
|
|
12278
12365
|
importReactPlugins,
|
|
12279
12366
|
importYmlLibs,
|
|
12280
12367
|
interopDefault2 as interopDefault,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.19",
|
|
5
5
|
"packageManager": "pnpm@8.15.4",
|
|
6
6
|
"description": "jsse eslint config",
|
|
7
7
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@eslint/js": "~8.57.0",
|
|
64
|
-
"@stylistic/eslint-plugin": "2.
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
66
|
-
"@typescript-eslint/parser": "^7.
|
|
64
|
+
"@stylistic/eslint-plugin": "2.3.0",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
66
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
67
67
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
68
68
|
"eslint-define-config": "^2.1.0",
|
|
69
|
-
"eslint-plugin-antfu": "^2.3.
|
|
69
|
+
"eslint-plugin-antfu": "^2.3.4",
|
|
70
70
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
71
|
-
"eslint-plugin-import-x": "^0.5.
|
|
71
|
+
"eslint-plugin-import-x": "^0.5.3",
|
|
72
72
|
"eslint-plugin-jsdoc": "^48.2.12",
|
|
73
73
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
74
74
|
"eslint-plugin-markdown": "^5.0.0",
|
|
@@ -80,13 +80,14 @@
|
|
|
80
80
|
"eslint-plugin-react-refresh": "~0.4.7",
|
|
81
81
|
"eslint-plugin-tailwindcss": "^3.17.3",
|
|
82
82
|
"eslint-plugin-toml": "^0.11.0",
|
|
83
|
+
"eslint-plugin-tsdoc": "^0.3.0",
|
|
83
84
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
84
85
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
85
86
|
"eslint-plugin-vitest": "0.5.4",
|
|
86
87
|
"eslint-plugin-yml": "^1.14.0",
|
|
87
88
|
"jsonc-eslint-parser": "^2.4.0",
|
|
88
|
-
"toml-eslint-parser": "^0.
|
|
89
|
-
"typescript-eslint": "^7.
|
|
89
|
+
"toml-eslint-parser": "^0.10.0",
|
|
90
|
+
"typescript-eslint": "^7.15.0",
|
|
90
91
|
"yaml-eslint-parser": "^1.2.3"
|
|
91
92
|
},
|
|
92
93
|
"optionalDependencies": {
|
|
@@ -94,27 +95,27 @@
|
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
97
|
"@antfu/ni": "^0.21.12",
|
|
98
|
+
"@changesets/cli": "^2.27.7",
|
|
97
99
|
"@jsse/prettier-config": "^0.1.0",
|
|
98
100
|
"@types/eslint": "^8.56.10",
|
|
99
101
|
"@types/eslint__js": "~8.42.3",
|
|
100
102
|
"@types/fs-extra": "^11.0.4",
|
|
101
103
|
"@types/node": "^20.12.12",
|
|
102
|
-
"bumpp": "^9.4.1",
|
|
103
104
|
"cac": "^6.7.14",
|
|
104
105
|
"eslint": "^8.57.0",
|
|
105
106
|
"eslint-flat-config-utils": "^0.2.5",
|
|
106
107
|
"eslint-typegen": "^0.2.4",
|
|
107
|
-
"execa": "~9.
|
|
108
|
+
"execa": "~9.3.0",
|
|
108
109
|
"fast-glob": "^3.3.2",
|
|
109
110
|
"fs-extra": "^11.2.0",
|
|
110
|
-
"globals": "^15.
|
|
111
|
+
"globals": "^15.8.0",
|
|
111
112
|
"local-pkg": "^0.5.0",
|
|
112
113
|
"prettier": "^3.3.2",
|
|
113
114
|
"react": "~18.3.1",
|
|
114
115
|
"rimraf": "^5.0.7",
|
|
115
116
|
"tsup": "^8.1.0",
|
|
116
|
-
"tsx": "^4.
|
|
117
|
-
"typescript": "~5.5.
|
|
117
|
+
"tsx": "^4.16.2",
|
|
118
|
+
"typescript": "~5.5.3",
|
|
118
119
|
"vitest": "^1.6.0"
|
|
119
120
|
},
|
|
120
121
|
"prettier": "@jsse/prettier-config",
|
|
@@ -126,8 +127,11 @@
|
|
|
126
127
|
"fmt": "prettier -w .",
|
|
127
128
|
"fmtc": "prettier --check .",
|
|
128
129
|
"lint": "pnpm run build-fast && eslint .",
|
|
129
|
-
"
|
|
130
|
+
"change": "changeset",
|
|
131
|
+
"release": "pnpm run ci:version && pnpm run ci:publish",
|
|
130
132
|
"stub": "tsup src/index.ts --format esm",
|
|
133
|
+
"ci:version": "changeset version && pnpm install && pnpm fmt",
|
|
134
|
+
"ci:publish": "pnpm publish",
|
|
131
135
|
"test": "vitest run",
|
|
132
136
|
"typecheck": "tsc --noEmit"
|
|
133
137
|
}
|