shuvi 1.0.28 → 1.0.29

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.
@@ -12,14 +12,18 @@ exports.optionRulesDir = new commander_1.Option('--rulesDir <path...>', `Use add
12
12
  exports.optionFix = new commander_1.Option('--fix', `Automatically fix problems`).default(false);
13
13
  exports.optionFixType = new commander_1.Option('--fix-type <type...>', `Specify the types of fixes to apply (problem, suggestion, layout)`).default(null);
14
14
  exports.optionIgnorePath = new commander_1.Option('--ignore-path <filePath>', `Specify path of ignore file`).default(null);
15
- exports.optionNoIgnore = new commander_1.Option('--no-ignore', `Disable use of ignore files and patterns`).default(false);
15
+ exports.optionNoIgnore = new commander_1.Option('--no-ignore', `Disable use of ignore files and patterns`).default(true);
16
16
  exports.optionQuiet = new commander_1.Option('--quiet', `Report errors only`).default(false);
17
- exports.optionMaxWarnings = new commander_1.Option('--max-warnings', `Number of warnings to trigger nonzero exit code`).default(-1);
17
+ exports.optionMaxWarnings = new commander_1.Option('--max-warnings', `Number of warnings to trigger nonzero exit code`)
18
+ .argParser(function (value) {
19
+ return parseInt(value, 10);
20
+ })
21
+ .default(-1);
18
22
  exports.optionOutputFile = new commander_1.Option('-o, --output-file <path>', `Specify file to write report to`).default(null);
19
23
  exports.optionFormat = new commander_1.Option('-f, --format <format>', `Use a specific output format`).default(null, 'Shuvi.js custom formatter');
20
- exports.optionNoInlineConfig = new commander_1.Option('--no-inline-config', `Prevent comments from changing config or rules`).default(false);
21
- exports.optionReportUnusedDisableDirectives = new commander_1.Option('--report-unused-disable-directives', `Adds reported errors for unused eslint-disable directives ("error" | "warn" | "off")`).default(null);
22
- exports.optionNoCache = new commander_1.Option('--no-cache', `Disable caching`).default(false);
24
+ exports.optionNoInlineConfig = new commander_1.Option('--no-inline-config', `Prevent comments from changing config or rules`).default(true);
25
+ exports.optionReportUnusedDisableDirectives = new commander_1.Option('--report-unused-disable-directives <directives>', `Adds reported errors for unused eslint-disable directives ("error" | "warn" | "off")`).default(null);
26
+ exports.optionNoCache = new commander_1.Option('--no-cache', `Disable caching`).default(true);
23
27
  exports.optionCacheLocation = new commander_1.Option('--cache-location <location>', `Path to the cache file or directory`).default('.eslintcache');
24
28
  exports.optionCacheStrategy = new commander_1.Option('--cache-strategy <strategy>', `Strategy to use for detecting changed files in the cache, either metadata or content`).default('metadata');
25
29
  exports.optionErrorOnUnmatchedPattern = new commander_1.Option('--error-on-unmatched-pattern', `Show errors when any file patterns are unmatched - default: false`).default(false);
@@ -31,10 +31,10 @@ const eslintOptions = (options, cacheLocation) => ({
31
31
  fix: options.fix,
32
32
  fixTypes: options.fixType,
33
33
  ignorePath: options.ignorePath,
34
- ignore: !Boolean(options.ignore),
35
- allowInlineConfig: !Boolean(options.inlineConfig),
34
+ ignore: Boolean(options.ignore),
35
+ allowInlineConfig: Boolean(options.inlineConfig),
36
36
  reportUnusedDisableDirectives: options.reportUnusedDisableDirectives,
37
- cache: !Boolean(options.cache),
37
+ cache: Boolean(options.cache),
38
38
  cacheLocation: cacheLocation,
39
39
  cacheStrategy: options.cacheStrategy,
40
40
  errorOnUnmatchedPattern: options.errorOnUnmatchedPattern
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuvi",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
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.28",
34
- "@shuvi/platform-web": "1.0.28",
35
- "@shuvi/service": "1.0.28",
36
- "@shuvi/shared": "1.0.28",
37
- "@shuvi/toolpack": "1.0.28",
38
- "@shuvi/utils": "1.0.28",
39
- "@shuvi/telemetry": "1.0.28",
33
+ "@shuvi/platform-shared": "1.0.29",
34
+ "@shuvi/platform-web": "1.0.29",
35
+ "@shuvi/service": "1.0.29",
36
+ "@shuvi/shared": "1.0.29",
37
+ "@shuvi/toolpack": "1.0.29",
38
+ "@shuvi/utils": "1.0.29",
39
+ "@shuvi/telemetry": "1.0.29",
40
40
  "cli-highlight": "^2.1.9",
41
41
  "commander": "10.0.0",
42
42
  "cross-spawn": "7.0.3",