shuvi 1.0.56 → 1.0.58
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.
|
@@ -2,13 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.optionErrorOnUnmatchedPattern = exports.optionCacheStrategy = exports.optionCacheLocation = exports.optionNoCache = exports.optionReportUnusedDisableDirectives = exports.optionNoInlineConfig = exports.optionFormat = exports.optionOutputFile = exports.optionMaxWarnings = exports.optionQuiet = exports.optionNoIgnore = exports.optionIgnorePath = exports.optionFixType = exports.optionFix = exports.optionRulesDir = exports.optionResolvePluginsRelativeTo = exports.optionExt = exports.optionConfig = exports.optionStrict = exports.optionFile = exports.optionDir = void 0;
|
|
4
4
|
const commander_1 = require("commander");
|
|
5
|
-
|
|
6
|
-
exports.
|
|
5
|
+
const collectArrayOptions_1 = require("../utils/collectArrayOptions");
|
|
6
|
+
exports.optionDir = new commander_1.Option('-d, --dir <dirPath>', `Include directory, or directories, to run ESLint`)
|
|
7
|
+
.default([])
|
|
8
|
+
.argParser(collectArrayOptions_1.collectArrayOptions);
|
|
9
|
+
exports.optionFile = new commander_1.Option('--file <file...>', `Include file, or files, to run ESLint`)
|
|
10
|
+
.default([])
|
|
11
|
+
.argParser(collectArrayOptions_1.collectArrayOptions);
|
|
7
12
|
exports.optionStrict = new commander_1.Option('--strict', `Creates an .eslintrc.json file using the shuvi.js strict configuration (only possible if no .eslintrc.json file is present)`).default(false);
|
|
8
13
|
exports.optionConfig = new commander_1.Option('-c, --config <config>', `Use this configuration file, overriding all other config options`).default(null);
|
|
9
14
|
exports.optionExt = new commander_1.Option('--ext <ext...>', `Specify JavaScript file extensions`).default(['.js', '.mjs', '.cjs', '.jsx', '.ts', '.mts', '.cts', '.tsx']);
|
|
10
15
|
exports.optionResolvePluginsRelativeTo = new commander_1.Option('--resolve-plugins-relative-to <path>', `A folder where plugins should be resolved from, CWD by default`).default(null, 'CWD');
|
|
11
|
-
exports.optionRulesDir = new commander_1.Option('--rulesDir <path...>', `Use additional rules from this directory`)
|
|
16
|
+
exports.optionRulesDir = new commander_1.Option('--rulesDir <path...>', `Use additional rules from this directory`)
|
|
17
|
+
.default([])
|
|
18
|
+
.argParser(collectArrayOptions_1.collectArrayOptions);
|
|
12
19
|
exports.optionFix = new commander_1.Option('--fix', `Automatically fix problems`).default(false);
|
|
13
20
|
exports.optionFixType = new commander_1.Option('--fix-type <type...>', `Specify the types of fixes to apply (problem, suggestion, layout)`).default(null);
|
|
14
21
|
exports.optionIgnorePath = new commander_1.Option('--ignore-path <filePath>', `Specify path of ignore file`).default(null);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function collectArrayOptions(value: string, previous: string[]): string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shuvi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.58",
|
|
4
4
|
"description": "Full Stack Web development framework.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"find-up": "4.1.0",
|
|
31
31
|
"semver": "7.3.2",
|
|
32
32
|
"cli-select": "1.1.2",
|
|
33
|
-
"@shuvi/platform-shared": "1.0.
|
|
34
|
-
"@shuvi/platform-web": "1.0.
|
|
35
|
-
"@shuvi/service": "1.0.
|
|
36
|
-
"@shuvi/shared": "1.0.
|
|
37
|
-
"@shuvi/toolpack": "1.0.
|
|
38
|
-
"@shuvi/utils": "1.0.
|
|
39
|
-
"@shuvi/reporters": "1.0.
|
|
33
|
+
"@shuvi/platform-shared": "1.0.58",
|
|
34
|
+
"@shuvi/platform-web": "1.0.58",
|
|
35
|
+
"@shuvi/service": "1.0.58",
|
|
36
|
+
"@shuvi/shared": "1.0.58",
|
|
37
|
+
"@shuvi/toolpack": "1.0.58",
|
|
38
|
+
"@shuvi/utils": "1.0.58",
|
|
39
|
+
"@shuvi/reporters": "1.0.58",
|
|
40
40
|
"cli-highlight": "^2.1.9",
|
|
41
41
|
"commander": "10.0.0",
|
|
42
42
|
"cross-spawn": "7.0.3",
|