create-quasar 1.11.7 → 1.11.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-quasar",
3
- "version": "1.11.7",
3
+ "version": "1.11.8",
4
4
  "description": "Scaffolds Quasar Apps, AppExtensions or UI kits",
5
5
  "type": "module",
6
6
  "author": {
@@ -39,6 +39,7 @@
39
39
  "@types/prompts": "^2.4.9",
40
40
  "@typescript-eslint/eslint-plugin": "^7.18.0",
41
41
  "@typescript-eslint/parser": "^7.18.0",
42
+ "eslint": "^8.57.1",
42
43
  "eslint-plugin-lodash-template": "^1.1.0",
43
44
  "tsx": "^4.19.1",
44
45
  "typescript": "^5.6.2"
@@ -1,7 +1,7 @@
1
1
  import prompts from 'prompts';
2
2
 
3
3
  type ScriptType = 'js' | 'ts';
4
- type AppEngine = 'vite' | 'webpack';
4
+ type AppEngine = 'vite-1' | 'vite-2' | 'webpack-3' | 'webpack-4';
5
5
  type PackageManager = 'yarn' | 'npm' | 'pnpm';
6
6
 
7
7
  type CreateProjectOptions = {
@@ -33,10 +33,17 @@ export async function createProject({ scriptType, appEngine, packageManager }: C
33
33
  author: 'Quasar Team (info@quasar.dev)',
34
34
 
35
35
  // The defaults
36
- sfcStyle: 'composition',
36
+ sfcStyle: 'composition-setup',
37
37
  css: 'scss',
38
- preset: ['lint'],
39
- lintConfig: 'prettier',
38
+ ...(appEngine === 'vite-1' || appEngine === 'webpack-3'
39
+ ? {
40
+ preset: ['lint'],
41
+ lintConfig: 'prettier',
42
+ }
43
+ : {
44
+ preset: ['eslint'],
45
+ prettier: true,
46
+ }),
40
47
 
41
48
  packageManager,
42
49
  });
@@ -21,7 +21,7 @@
21
21
  "devDependencies": {
22
22
  <% if (preset.lint) { %>
23
23
  "@babel/eslint-parser": "^7.13.14",
24
- "eslint": "^8.57.0",
24
+ "eslint": "^8.57.1",
25
25
  "eslint-plugin-vue": "^9.0.0",
26
26
  "eslint-webpack-plugin": "^2.0.0",
27
27
  <% if (lintConfig === 'standard') { %>
@@ -26,7 +26,7 @@
26
26
  <% if (preset.lint) { %>
27
27
  "@typescript-eslint/eslint-plugin": "^5.10.0",
28
28
  "@typescript-eslint/parser": "^5.10.0",
29
- "eslint": "^8.57.0",
29
+ "eslint": "^8.57.1",
30
30
  "eslint-plugin-vue": "^9.0.0",
31
31
  <% if (lintConfig === 'standard') { %>
32
32
  "eslint-config-standard": "^17.0.0",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  <% if (preset.lint) { %>
28
- "eslint": "^8.57.0",
28
+ "eslint": "^8.57.1",
29
29
  "eslint-plugin-vue": "^9.0.0",
30
30
  "vite-plugin-checker": "^0.8.0",
31
31
  <% if (lintConfig === 'standard') { %>
@@ -13,7 +13,7 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
13
13
  // --> boot files are part of "main.js"
14
14
  // https://v2.quasar.dev/quasar-cli-vite/boot-files
15
15
  boot: [<% if (preset.i18n) { %>
16
- 'i18n'<% } %><% if (preset.axios) { %><%= preset.i18n ? ',' : '' %>
16
+ 'i18n'<% } %><% if (preset.axios) { %><% if (preset.i18n) { %>,<% } %>
17
17
  'axios'<% } %>
18
18
  ],
19
19
 
@@ -27,7 +27,7 @@
27
27
  "devDependencies": {
28
28
  <% if (preset.lint) { %>
29
29
  "@babel/eslint-parser": "^7.13.14",
30
- "eslint": "^8.57.0",
30
+ "eslint": "^8.57.1",
31
31
  "eslint-plugin-vue": "^9.0.0",
32
32
  "eslint-webpack-plugin": "^3.1.1",
33
33
  <% if (lintConfig === 'standard') { %>
@@ -29,7 +29,7 @@
29
29
  "@typescript-eslint/parser": "^7.16.0",
30
30
  "vite-plugin-checker": "^0.8.0",
31
31
  "vue-tsc": "^2.0.29",
32
- "eslint": "^8.57.0",
32
+ "eslint": "^8.57.1",
33
33
  "eslint-plugin-vue": "^9.0.0",
34
34
  <% if (lintConfig === 'standard') { %>
35
35
  "eslint-config-standard": "^17.0.0",
@@ -35,14 +35,23 @@ export default [
35
35
  */
36
36
  ...pluginVue.configs[ 'flat/essential' ],
37
37
 
38
+ {
39
+ files: ['**/*.ts', '**/*.vue'],
40
+ rules: {
41
+ '@typescript-eslint/consistent-type-imports': [
42
+ 'error',
43
+ { prefer: 'type-imports' }
44
+ ],
45
+ }
46
+ },
38
47
  // https://github.com/vuejs/eslint-config-typescript
39
48
  ...vueTsEslintConfig({
40
49
  // Optional: extend additional configurations from typescript-eslint'.
41
50
  // Supports all the configurations in
42
51
  // https://typescript-eslint.io/users/configs#recommended-configurations
43
52
  extends: [
44
- // By default, only the recommended rules are enabled.
45
- 'recommended'
53
+ // By default, only the 'recommendedTypeChecked' rules are enabled.
54
+ 'recommendedTypeChecked'
46
55
  // You can also manually enable the stylistic rules.
47
56
  // "stylistic",
48
57
 
@@ -71,10 +80,6 @@ export default [
71
80
  // add your custom rules here
72
81
  rules: {
73
82
  'prefer-promise-reject-errors': 'off',
74
- '@typescript-eslint/consistent-type-imports': [
75
- 'error',
76
- { prefer: 'type-imports' }
77
- ],
78
83
 
79
84
  // allow debugger during development only
80
85
  'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
@@ -28,7 +28,7 @@
28
28
  <% if (preset.lint) { %>
29
29
  "@typescript-eslint/eslint-plugin": "^6.0.0",
30
30
  "@typescript-eslint/parser": "^6.0.0",
31
- "eslint": "^8.57.0",
31
+ "eslint": "^8.57.1",
32
32
  "eslint-plugin-vue": "^9.0.0",
33
33
  <% if (lintConfig === 'standard') { %>
34
34
  "eslint-config-standard": "^17.0.0",
@@ -35,14 +35,24 @@ export default [
35
35
  */
36
36
  ...pluginVue.configs[ 'flat/essential' ],
37
37
 
38
+ // this rule needs to be above the vueTsEslintConfig to avoid error: 'You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file.'
39
+ {
40
+ files: ['**/*.ts', '**/*.vue'],
41
+ rules: {
42
+ '@typescript-eslint/consistent-type-imports': [
43
+ 'error',
44
+ { prefer: 'type-imports' }
45
+ ],
46
+ }
47
+ },
38
48
  // https://github.com/vuejs/eslint-config-typescript
39
49
  ...vueTsEslintConfig({
40
50
  // Optional: extend additional configurations from typescript-eslint'.
41
51
  // Supports all the configurations in
42
52
  // https://typescript-eslint.io/users/configs#recommended-configurations
43
53
  extends: [
44
- // By default, only the recommended rules are enabled.
45
- 'recommended'
54
+ // By default, only the 'recommendedTypeChecked' rules are enabled.
55
+ 'recommendedTypeChecked'
46
56
  // You can also manually enable the stylistic rules.
47
57
  // "stylistic",
48
58
 
@@ -71,10 +81,6 @@ export default [
71
81
  // add your custom rules here
72
82
  rules: {
73
83
  'prefer-promise-reject-errors': 'off',
74
- '@typescript-eslint/consistent-type-imports': [
75
- 'error',
76
- { prefer: 'type-imports' }
77
- ],
78
84
 
79
85
  // allow debugger during development only
80
86
  'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'