@jsse/eslint-config 0.0.1 → 0.0.3
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/LICENSE +21 -21
- package/README.md +14 -4
- package/dist/cli.cjs +655 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +649 -0
- package/dist/index.cjs +234 -214
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +57 -101
- package/package.json +7 -3
package/dist/index.d.cts
CHANGED
|
@@ -24,6 +24,7 @@ export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
|
24
24
|
export { default as pluginTailwind } from 'eslint-plugin-tailwindcss';
|
|
25
25
|
export { default as pluginVitest } from 'eslint-plugin-vitest';
|
|
26
26
|
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
27
|
+
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
27
28
|
|
|
28
29
|
type Rules = MergeIntersection<RenamePrefix<TypeScriptRules, "@typescript-eslint/", "ts/"> & RenamePrefix<VitestRules, "vitest/", "test/"> & RenamePrefix<YmlRules, "yml/", "yaml/"> & RenamePrefix<NRules, "n/", "node/"> & ImportRules & EslintRules & JsoncRules & VueRules & UnicornRules & EslintCommentsRules & {
|
|
29
30
|
"test/no-only-tests": RuleConfig;
|
|
@@ -60,7 +61,7 @@ type OptionsTypeScriptWithTypes = {
|
|
|
60
61
|
* When this options is provided, type aware rules will be enabled.
|
|
61
62
|
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
62
63
|
*/
|
|
63
|
-
tsconfigPath?: string;
|
|
64
|
+
tsconfigPath?: string | string[];
|
|
64
65
|
};
|
|
65
66
|
type OptionsHasTypeScript = {
|
|
66
67
|
typescript?: boolean;
|
|
@@ -166,7 +167,6 @@ type OptionsConfig = {
|
|
|
166
167
|
javascript?: ConfigItem["rules"];
|
|
167
168
|
typescript?: ConfigItem["rules"];
|
|
168
169
|
test?: ConfigItem["rules"];
|
|
169
|
-
vue?: ConfigItem["rules"];
|
|
170
170
|
jsonc?: ConfigItem["rules"];
|
|
171
171
|
markdown?: ConfigItem["rules"];
|
|
172
172
|
yaml?: ConfigItem["rules"];
|
|
@@ -254,4 +254,7 @@ declare function renameRules<TRule = unknown>(rules: Record<string, TRule>, from
|
|
|
254
254
|
declare function isCI(): boolean;
|
|
255
255
|
declare function isInEditor(): boolean;
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
declare function jssestd(): ConfigItem[];
|
|
258
|
+
declare function jsseReact(): ConfigItem[];
|
|
259
|
+
|
|
260
|
+
export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, combine, comments, jsse as default, ignores, imports, isCI, isInEditor, javascript, jsdoc, jsonc, jsse, jsseReact, jssestd, node, react, reactHooks, renameRules, sortPackageJson, sortTsconfig, test, typescript, unicorn };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
|
24
24
|
export { default as pluginTailwind } from 'eslint-plugin-tailwindcss';
|
|
25
25
|
export { default as pluginVitest } from 'eslint-plugin-vitest';
|
|
26
26
|
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
27
|
+
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
27
28
|
|
|
28
29
|
type Rules = MergeIntersection<RenamePrefix<TypeScriptRules, "@typescript-eslint/", "ts/"> & RenamePrefix<VitestRules, "vitest/", "test/"> & RenamePrefix<YmlRules, "yml/", "yaml/"> & RenamePrefix<NRules, "n/", "node/"> & ImportRules & EslintRules & JsoncRules & VueRules & UnicornRules & EslintCommentsRules & {
|
|
29
30
|
"test/no-only-tests": RuleConfig;
|
|
@@ -60,7 +61,7 @@ type OptionsTypeScriptWithTypes = {
|
|
|
60
61
|
* When this options is provided, type aware rules will be enabled.
|
|
61
62
|
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
62
63
|
*/
|
|
63
|
-
tsconfigPath?: string;
|
|
64
|
+
tsconfigPath?: string | string[];
|
|
64
65
|
};
|
|
65
66
|
type OptionsHasTypeScript = {
|
|
66
67
|
typescript?: boolean;
|
|
@@ -166,7 +167,6 @@ type OptionsConfig = {
|
|
|
166
167
|
javascript?: ConfigItem["rules"];
|
|
167
168
|
typescript?: ConfigItem["rules"];
|
|
168
169
|
test?: ConfigItem["rules"];
|
|
169
|
-
vue?: ConfigItem["rules"];
|
|
170
170
|
jsonc?: ConfigItem["rules"];
|
|
171
171
|
markdown?: ConfigItem["rules"];
|
|
172
172
|
yaml?: ConfigItem["rules"];
|
|
@@ -254,4 +254,7 @@ declare function renameRules<TRule = unknown>(rules: Record<string, TRule>, from
|
|
|
254
254
|
declare function isCI(): boolean;
|
|
255
255
|
declare function isInEditor(): boolean;
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
declare function jssestd(): ConfigItem[];
|
|
258
|
+
declare function jsseReact(): ConfigItem[];
|
|
259
|
+
|
|
260
|
+
export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, combine, comments, jsse as default, ignores, imports, isCI, isInEditor, javascript, jsdoc, jsonc, jsse, jsseReact, jssestd, node, react, reactHooks, renameRules, sortPackageJson, sortTsconfig, test, typescript, unicorn };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
2
|
+
import default3 from '@typescript-eslint/eslint-plugin';
|
|
3
|
+
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
4
|
+
import * as parserTs from '@typescript-eslint/parser';
|
|
5
|
+
export { parserTs };
|
|
6
|
+
import default4 from 'eslint-plugin-eslint-comments';
|
|
7
|
+
export { default as pluginEslintComments } from 'eslint-plugin-eslint-comments';
|
|
8
|
+
import * as pluginImport from 'eslint-plugin-i';
|
|
9
|
+
export { pluginImport };
|
|
10
|
+
import default5 from 'eslint-plugin-jsdoc';
|
|
11
|
+
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
12
|
+
import * as pluginJsonc from 'eslint-plugin-jsonc';
|
|
13
|
+
export { pluginJsonc };
|
|
14
|
+
import default6 from 'eslint-plugin-n';
|
|
15
|
+
export { default as pluginNode } from 'eslint-plugin-n';
|
|
16
|
+
import default7 from 'eslint-plugin-no-only-tests';
|
|
17
|
+
export { default as pluginNoOnlyTests } from 'eslint-plugin-no-only-tests';
|
|
18
|
+
import default8 from 'eslint-plugin-react';
|
|
19
|
+
export { default as pluginReact } from 'eslint-plugin-react';
|
|
20
|
+
import default9 from 'eslint-plugin-react-hooks';
|
|
21
|
+
export { default as pluginReactHooks } from 'eslint-plugin-react-hooks';
|
|
22
|
+
import * as pluginReactRefresh from 'eslint-plugin-react-refresh';
|
|
23
|
+
export { pluginReactRefresh };
|
|
24
|
+
import default10 from 'eslint-plugin-unicorn';
|
|
25
|
+
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
26
|
+
import default11 from 'eslint-plugin-unused-imports';
|
|
27
|
+
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
28
|
+
import default12 from 'eslint-plugin-tailwindcss';
|
|
29
|
+
export { default as pluginTailwind } from 'eslint-plugin-tailwindcss';
|
|
30
|
+
import default13 from 'eslint-plugin-vitest';
|
|
31
|
+
export { default as pluginVitest } from 'eslint-plugin-vitest';
|
|
32
|
+
import default14 from 'jsonc-eslint-parser';
|
|
33
|
+
export { default as parserJsonc } from 'jsonc-eslint-parser';
|
|
34
|
+
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
35
|
+
import eslintjs from '@eslint/js';
|
|
36
|
+
import globals from 'globals';
|
|
37
|
+
import process2 from 'process';
|
|
38
|
+
import fs from 'fs';
|
|
39
|
+
import gitignore from 'eslint-config-flat-gitignore';
|
|
40
|
+
import { isPackageExists } from 'local-pkg';
|
|
41
|
+
|
|
1
42
|
var __create = Object.create;
|
|
2
43
|
var __defProp = Object.defineProperty;
|
|
3
44
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -27,7 +68,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
68
|
// node_modules/.pnpm/natural-compare@1.4.0/node_modules/natural-compare/index.js
|
|
28
69
|
var require_natural_compare = __commonJS({
|
|
29
70
|
"node_modules/.pnpm/natural-compare@1.4.0/node_modules/natural-compare/index.js"(exports, module) {
|
|
30
|
-
"use strict";
|
|
31
71
|
var naturalCompare = function(a, b) {
|
|
32
72
|
var i, codeA, codeB = 1, posA = 0, posB = 0, alphabet = String.alphabet;
|
|
33
73
|
function getCode(str, pos, code) {
|
|
@@ -64,7 +104,6 @@ var require_natural_compare = __commonJS({
|
|
|
64
104
|
// node_modules/.pnpm/eslint-plugin-sort-keys@2.3.5/node_modules/eslint-plugin-sort-keys/rules/sort-keys-fix.js
|
|
65
105
|
var require_sort_keys_fix = __commonJS({
|
|
66
106
|
"node_modules/.pnpm/eslint-plugin-sort-keys@2.3.5/node_modules/eslint-plugin-sort-keys/rules/sort-keys-fix.js"(exports, module) {
|
|
67
|
-
"use strict";
|
|
68
107
|
var naturalCompare = require_natural_compare();
|
|
69
108
|
module.exports = {
|
|
70
109
|
meta: {
|
|
@@ -296,7 +335,6 @@ var require_sort_keys_fix = __commonJS({
|
|
|
296
335
|
// node_modules/.pnpm/eslint-plugin-sort-keys@2.3.5/node_modules/eslint-plugin-sort-keys/index.js
|
|
297
336
|
var require_eslint_plugin_sort_keys = __commonJS({
|
|
298
337
|
"node_modules/.pnpm/eslint-plugin-sort-keys@2.3.5/node_modules/eslint-plugin-sort-keys/index.js"(exports, module) {
|
|
299
|
-
"use strict";
|
|
300
338
|
module.exports.rules = {
|
|
301
339
|
"sort-keys-fix": require_sort_keys_fix()
|
|
302
340
|
};
|
|
@@ -305,23 +343,6 @@ var require_eslint_plugin_sort_keys = __commonJS({
|
|
|
305
343
|
|
|
306
344
|
// src/plugins.ts
|
|
307
345
|
var pluginSortKeys = __toESM(require_eslint_plugin_sort_keys(), 1);
|
|
308
|
-
import { default as default2 } from "@stylistic/eslint-plugin";
|
|
309
|
-
import { default as default3 } from "@typescript-eslint/eslint-plugin";
|
|
310
|
-
import * as parserTs from "@typescript-eslint/parser";
|
|
311
|
-
import { default as default4 } from "eslint-plugin-eslint-comments";
|
|
312
|
-
import * as pluginImport from "eslint-plugin-i";
|
|
313
|
-
import { default as default5 } from "eslint-plugin-jsdoc";
|
|
314
|
-
import * as pluginJsonc from "eslint-plugin-jsonc";
|
|
315
|
-
import { default as default6 } from "eslint-plugin-n";
|
|
316
|
-
import { default as default7 } from "eslint-plugin-no-only-tests";
|
|
317
|
-
import { default as default8 } from "eslint-plugin-react";
|
|
318
|
-
import { default as default9 } from "eslint-plugin-react-hooks";
|
|
319
|
-
import * as pluginReactRefresh from "eslint-plugin-react-refresh";
|
|
320
|
-
import { default as default10 } from "eslint-plugin-unicorn";
|
|
321
|
-
import { default as default11 } from "eslint-plugin-unused-imports";
|
|
322
|
-
import { default as default12 } from "eslint-plugin-tailwindcss";
|
|
323
|
-
import { default as default13 } from "eslint-plugin-vitest";
|
|
324
|
-
import { default as default14 } from "jsonc-eslint-parser";
|
|
325
346
|
|
|
326
347
|
// src/configs/comments.ts
|
|
327
348
|
function comments() {
|
|
@@ -433,23 +454,15 @@ function imports(options = {}) {
|
|
|
433
454
|
}
|
|
434
455
|
];
|
|
435
456
|
}
|
|
436
|
-
|
|
437
|
-
// src/configs/javascript.ts
|
|
438
|
-
import eslintjs from "@eslint/js";
|
|
439
|
-
import globals from "globals";
|
|
440
457
|
function javascript(options = {}) {
|
|
441
458
|
const { isInEditor: isInEditor2 = false, overrides = {} } = options;
|
|
442
459
|
return [
|
|
443
460
|
{
|
|
444
461
|
languageOptions: {
|
|
445
462
|
ecmaVersion: 2022,
|
|
446
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
447
463
|
globals: {
|
|
448
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
449
464
|
...globals.browser,
|
|
450
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
451
465
|
...globals.es2021,
|
|
452
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
453
466
|
...globals.node,
|
|
454
467
|
document: "readonly",
|
|
455
468
|
navigator: "readonly",
|
|
@@ -804,9 +817,6 @@ function node() {
|
|
|
804
817
|
}
|
|
805
818
|
];
|
|
806
819
|
}
|
|
807
|
-
|
|
808
|
-
// src/configs/ts/typescript-language-options.ts
|
|
809
|
-
import process from "process";
|
|
810
820
|
function parserOptionProject(tsconfigPath) {
|
|
811
821
|
if (typeof tsconfigPath === "string") {
|
|
812
822
|
return [tsconfigPath];
|
|
@@ -825,7 +835,7 @@ function typescriptLanguageOptions(options) {
|
|
|
825
835
|
sourceType: "module",
|
|
826
836
|
...tsconfigPath ? {
|
|
827
837
|
project: parserOptionProject(tsconfigPath),
|
|
828
|
-
tsconfigRootDir:
|
|
838
|
+
tsconfigRootDir: process2.cwd()
|
|
829
839
|
} : {},
|
|
830
840
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
831
841
|
...parserOptions
|
|
@@ -839,7 +849,7 @@ function typescriptLanguageOptions(options) {
|
|
|
839
849
|
sourceType: "module",
|
|
840
850
|
...tsconfigPath ? {
|
|
841
851
|
project: parserOptionProject(tsconfigPath),
|
|
842
|
-
tsconfigRootDir:
|
|
852
|
+
tsconfigRootDir: process2.cwd()
|
|
843
853
|
} : {},
|
|
844
854
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
845
855
|
...parserOptions
|
|
@@ -1320,9 +1330,6 @@ function sortTsconfig() {
|
|
|
1320
1330
|
}
|
|
1321
1331
|
];
|
|
1322
1332
|
}
|
|
1323
|
-
|
|
1324
|
-
// src/utils.ts
|
|
1325
|
-
import process2 from "process";
|
|
1326
1333
|
function combine(...configs) {
|
|
1327
1334
|
return configs.flatMap((config) => Array.isArray(config) ? config : [config]);
|
|
1328
1335
|
}
|
|
@@ -1964,11 +1971,6 @@ function unicorn() {
|
|
|
1964
1971
|
];
|
|
1965
1972
|
}
|
|
1966
1973
|
|
|
1967
|
-
// src/factory.ts
|
|
1968
|
-
import fs from "fs";
|
|
1969
|
-
import gitignore from "eslint-config-flat-gitignore";
|
|
1970
|
-
import { isPackageExists } from "local-pkg";
|
|
1971
|
-
|
|
1972
1974
|
// src/configs/tailwind.ts
|
|
1973
1975
|
function tailwind() {
|
|
1974
1976
|
return [
|
|
@@ -2116,66 +2118,18 @@ function jsse(options = {}, ...userConfigs) {
|
|
|
2116
2118
|
}
|
|
2117
2119
|
return combine(...configs, ...userConfigs);
|
|
2118
2120
|
}
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
GLOB_MARKDOWN_CODE,
|
|
2132
|
-
GLOB_SCSS,
|
|
2133
|
-
GLOB_SRC,
|
|
2134
|
-
GLOB_SRC_EXT,
|
|
2135
|
-
GLOB_STYLE,
|
|
2136
|
-
GLOB_TESTS,
|
|
2137
|
-
GLOB_TS,
|
|
2138
|
-
GLOB_TSX,
|
|
2139
|
-
GLOB_YAML,
|
|
2140
|
-
combine,
|
|
2141
|
-
comments,
|
|
2142
|
-
jsse as default,
|
|
2143
|
-
ignores,
|
|
2144
|
-
imports,
|
|
2145
|
-
isCI,
|
|
2146
|
-
isInEditor,
|
|
2147
|
-
javascript,
|
|
2148
|
-
jsdoc,
|
|
2149
|
-
jsonc,
|
|
2150
|
-
jsse,
|
|
2151
|
-
node,
|
|
2152
|
-
default14 as parserJsonc,
|
|
2153
|
-
parserTs,
|
|
2154
|
-
default4 as pluginEslintComments,
|
|
2155
|
-
pluginImport,
|
|
2156
|
-
default5 as pluginJsdoc,
|
|
2157
|
-
pluginJsonc,
|
|
2158
|
-
default7 as pluginNoOnlyTests,
|
|
2159
|
-
default6 as pluginNode,
|
|
2160
|
-
default8 as pluginReact,
|
|
2161
|
-
default9 as pluginReactHooks,
|
|
2162
|
-
pluginReactRefresh,
|
|
2163
|
-
pluginSortKeys,
|
|
2164
|
-
default2 as pluginStylistic,
|
|
2165
|
-
default12 as pluginTailwind,
|
|
2166
|
-
default3 as pluginTs,
|
|
2167
|
-
default10 as pluginUnicorn,
|
|
2168
|
-
default11 as pluginUnusedImports,
|
|
2169
|
-
default13 as pluginVitest,
|
|
2170
|
-
react,
|
|
2171
|
-
reactHooks,
|
|
2172
|
-
renameRules,
|
|
2173
|
-
sortPackageJson,
|
|
2174
|
-
sortTsconfig,
|
|
2175
|
-
test,
|
|
2176
|
-
typescript,
|
|
2177
|
-
unicorn
|
|
2178
|
-
};
|
|
2121
|
+
|
|
2122
|
+
// src/presets.ts
|
|
2123
|
+
function jssestd() {
|
|
2124
|
+
return jsse({
|
|
2125
|
+
typescript: {
|
|
2126
|
+
tsconfigPath: ["./tsconfig.json", "./tsconfig.eslint.json"]
|
|
2127
|
+
}
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
function jsseReact() {
|
|
2131
|
+
return jsse({ react: true });
|
|
2132
|
+
}
|
|
2179
2133
|
/*! Bundled license information:
|
|
2180
2134
|
|
|
2181
2135
|
natural-compare/index.js:
|
|
@@ -2187,3 +2141,5 @@ natural-compare/index.js:
|
|
|
2187
2141
|
* @license MIT License
|
|
2188
2142
|
*)
|
|
2189
2143
|
*/
|
|
2144
|
+
|
|
2145
|
+
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_YAML, combine, comments, jsse as default, ignores, imports, isCI, isInEditor, javascript, jsdoc, jsonc, jsse, jsseReact, jssestd, node, pluginSortKeys, react, reactHooks, renameRules, sortPackageJson, sortTsconfig, test, typescript, unicorn };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"packageManager": "pnpm@8.8.0",
|
|
6
6
|
"description": "jsse eslint config",
|
|
7
7
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
},
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
|
+
"bin": {
|
|
23
|
+
"jsselint": "dist/cli.js"
|
|
24
|
+
},
|
|
22
25
|
"files": [
|
|
23
26
|
"dist"
|
|
24
27
|
],
|
|
@@ -64,6 +67,7 @@
|
|
|
64
67
|
"@types/fs-extra": "^11.0.2",
|
|
65
68
|
"@types/node": "^20.8.6",
|
|
66
69
|
"bumpp": "^9.2.0",
|
|
70
|
+
"cac": "^6.7.14",
|
|
67
71
|
"eslint": "^8.51.0",
|
|
68
72
|
"eslint-flat-config-viewer": "^0.1.0",
|
|
69
73
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
@@ -79,8 +83,8 @@
|
|
|
79
83
|
"vitest": "^0.34.6"
|
|
80
84
|
},
|
|
81
85
|
"scripts": {
|
|
82
|
-
"build": "
|
|
83
|
-
"build-fast": "tsup src/index.ts --format esm,cjs --clean",
|
|
86
|
+
"build": "pnpm build-fast --dts",
|
|
87
|
+
"build-fast": "tsup src/index.ts src/cli.ts --format esm,cjs --clean",
|
|
84
88
|
"dev": "tsup src/index.ts --format esm,cjs --watch & eslint-flat-config-viewer",
|
|
85
89
|
"fmt": "prettier -w .",
|
|
86
90
|
"fmtc": "prettier --check .",
|