shuvi 1.0.23 → 1.0.24

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.
@@ -82,7 +82,7 @@ function formatResults(baseDir, results, format) {
82
82
  output: output,
83
83
  outputWithMessages: resultsWithMessages.length > 0
84
84
  ? output +
85
- `\n\n${chalk_1.default.cyan('info')} - Need to disable some ESLint rules?`
85
+ `\n\n${chalk_1.default.cyan('info')} - Need to disable some ESLint rules? Learn more here: https://shuvijs.github.io/shuvijs.org/docs/guides/ESLint#disabling-rules`
86
86
  : '',
87
87
  totalShuviPluginErrorCount,
88
88
  totalShuviPluginWarningCount
@@ -67,7 +67,7 @@ const requiredPackages = [
67
67
  ];
68
68
  exports.ESLINT_PROMPT_VALUES = [
69
69
  {
70
- title: 'Recommended',
70
+ title: 'Base configuration (recommended)',
71
71
  config: {
72
72
  extends: 'shuvi'
73
73
  }
@@ -79,7 +79,7 @@ exports.ESLINT_PROMPT_VALUES = [
79
79
  ];
80
80
  function cliPrompt() {
81
81
  return __awaiter(this, void 0, void 0, function* () {
82
- console.log(chalk_1.default.bold(`${chalk_1.default.cyan('?')} How would you like to configure ESLint?`));
82
+ console.log(chalk_1.default.bold(`${chalk_1.default.cyan('?')} How would you like to configure ESLint? https://shuvijs.github.io/shuvijs.org/docs/guides/ESLint`));
83
83
  try {
84
84
  const cliSelect = (yield Promise.resolve(require('cli-select'))).default;
85
85
  const { value } = yield cliSelect({
@@ -168,7 +168,7 @@ function lint(baseDir, lintDirs, eslintrcFile, pkgJsonPath, { lintDuringBuild =
168
168
  }
169
169
  }
170
170
  else {
171
- console.warn('The Shuvi.js plugin was not detected in your ESLint configuration.');
171
+ console.warn('The Shuvi.js plugin was not detected in your ESLint configuration. https://shuvijs.github.io/shuvijs.org/docs/guides/ESLint#migrating-existing-config');
172
172
  }
173
173
  const lintStart = process.hrtime();
174
174
  let results = yield eslint.lintFiles(lintDirs);
@@ -272,7 +272,7 @@ function runLintCheck(baseDir, lintDirs, opts) {
272
272
  : yield cliPrompt();
273
273
  if (selectedConfig == null) {
274
274
  // Show a warning if no option is selected in prompt
275
- console.warn('If you set up ESLint yourself, we recommend adding the Shuvi.js ESLint plugin.');
275
+ console.warn('If you set up ESLint yourself, we recommend adding the Shuvi.js ESLint plugin. See https://shuvijs.github.io/shuvijs.org/docs/guides/ESLint#migrating-existing-config');
276
276
  return null;
277
277
  }
278
278
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuvi",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
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.23",
34
- "@shuvi/platform-web": "1.0.23",
35
- "@shuvi/service": "1.0.23",
36
- "@shuvi/shared": "1.0.23",
37
- "@shuvi/toolpack": "1.0.23",
38
- "@shuvi/utils": "1.0.23",
39
- "@shuvi/telemetry": "1.0.23",
33
+ "@shuvi/platform-shared": "1.0.24",
34
+ "@shuvi/platform-web": "1.0.24",
35
+ "@shuvi/service": "1.0.24",
36
+ "@shuvi/shared": "1.0.24",
37
+ "@shuvi/toolpack": "1.0.24",
38
+ "@shuvi/utils": "1.0.24",
39
+ "@shuvi/telemetry": "1.0.24",
40
40
  "cli-highlight": "^2.1.9",
41
41
  "commander": "10.0.0",
42
42
  "cross-spawn": "7.0.3",