create-quasar 1.0.24 → 1.0.27

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.0.24",
3
+ "version": "1.0.27",
4
4
  "description": "Scaffolds Quasar Apps, AppExtensions or UI kits",
5
5
  "author": {
6
6
  "name": "Razvan Stoenescu",
@@ -18,22 +18,22 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  <% if (preset.lint) { %>
21
- "babel-eslint": "^10.0.1",
22
- "eslint": "^7.21.0",
23
- "eslint-webpack-plugin": "^2.4.0",
24
- "eslint-plugin-vue": "^7.7.0",
21
+ "@babel/eslint-parser": "^7.13.14",
22
+ "eslint": "^8.10.0",
23
+ "eslint-plugin-vue": "^9.0.0",
24
+ "eslint-webpack-plugin": "^2.0.0",
25
25
  <% if (lintConfig === 'standard') { %>
26
- "eslint-config-standard": "^16.0.2",
27
- "eslint-plugin-import": "^2.14.0",
28
- "eslint-plugin-node": "^11.0.0",
29
- "eslint-plugin-promise": "^4.0.1",
26
+ "eslint-config-standard": "^17.0.0",
27
+ "eslint-plugin-import": "^2.19.1",
28
+ "eslint-plugin-n": "^15.0.0",
29
+ "eslint-plugin-promise": "^6.0.0",
30
30
  <% } else if (lintConfig === 'airbnb') { %>
31
- "eslint-config-airbnb-base": "^14.0.0",
31
+ "eslint-config-airbnb-base": "^15.0.0",
32
32
  "eslint-plugin-import": "^2.20.1",
33
33
  <% } else if (lintConfig === 'prettier') { %>
34
34
  "eslint-config-prettier": "^8.1.0",
35
- <% } %>
36
- <% } %>
35
+ "prettier": "^2.5.1",
36
+ <% } } %>
37
37
  "@quasar/app": "^2.0.0"
38
38
  },
39
39
  "browserslist": [
@@ -92,7 +92,7 @@ const linksData = [
92
92
  icon: 'favorite',
93
93
  link: 'https://awesome.quasar.dev'
94
94
  }
95
- ];
95
+ ]
96
96
 
97
97
  export default {
98
98
  name: 'MainLayout',
@@ -6,13 +6,14 @@ module.exports = {
6
6
  root: true,
7
7
 
8
8
  parserOptions: {
9
- parser: 'babel-eslint',
9
+ parser: '@babel/eslint-parser',
10
10
  ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
11
11
  sourceType: 'module' // Allows for the use of imports
12
12
  },
13
13
 
14
14
  env: {
15
- browser: true
15
+ browser: true,
16
+ 'vue/setup-compiler-macros': true
16
17
  },
17
18
 
18
19
  // Rules order is important, please avoid shuffling them
@@ -62,6 +63,8 @@ module.exports = {
62
63
  // allow paren-less arrow functions
63
64
  'arrow-parens': 'off',
64
65
  'one-var': 'off',
66
+ 'no-void': 'off',
67
+ 'multiline-ternary': 'off',
65
68
 
66
69
  'import/first': 'off',
67
70
  'import/named': 'error',
@@ -70,8 +73,12 @@ module.exports = {
70
73
  'import/export': 'error',
71
74
  'import/extensions': 'off',
72
75
  'import/no-unresolved': 'off',
73
- 'import/no-extraneous-dependencies': 'off',<% } else if (lintConfig === 'airbnb') { %>
76
+ 'import/no-extraneous-dependencies': 'off',
77
+ <% } else if (lintConfig === 'airbnb') { %>
74
78
  'no-param-reassign': 'off',
79
+ 'no-void': 'off',
80
+ 'no-nested-ternary': 'off',
81
+ 'max-classes-per-file': 'off',
75
82
 
76
83
  'import/first': 'off',
77
84
  'import/named': 'error',
@@ -84,7 +91,8 @@ module.exports = {
84
91
  'import/prefer-default-export': 'off',
85
92
  <% } %>
86
93
  'prefer-promise-reject-errors': 'off',
87
- 'func-names': 'off',
94
+
95
+ 'vue/multi-word-component-names': 'off',
88
96
 
89
97
  // allow debugger during development only
90
98
  'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
@@ -10,8 +10,7 @@
10
10
  "test": "echo \"No test specified\" && exit 0"
11
11
  },
12
12
  "dependencies": {
13
- <% if (typescriptConfig === 'composition') { %>"@vue/composition-api": "^1.0.0-rc.3",
14
- <% } else if (typescriptConfig === 'class') { %>
13
+ <% if (typescriptConfig === 'class') { %>
15
14
  "vue-class-component": "^7.2.2",
16
15
  "vue-property-decorator": "^8.3.0",
17
16
  <% } %>
@@ -23,24 +22,23 @@
23
22
  },
24
23
  "devDependencies": {
25
24
  <% if (preset.lint) { %>
26
- "babel-eslint": "^10.0.1",
27
- "eslint": "^7.21.0",
28
- "eslint-plugin-vue": "^7.7.0",
25
+ "@typescript-eslint/eslint-plugin": "^5.10.0",
26
+ "@typescript-eslint/parser": "^5.10.0",
27
+ "eslint": "^8.10.0",
28
+ "eslint-plugin-vue": "^9.0.0",
29
29
  <% if (lintConfig === 'standard') { %>
30
- "eslint-config-standard": "^16.0.2",
31
- "eslint-plugin-import": "^2.14.0",
32
- "eslint-plugin-node": "^11.0.0",
33
- "eslint-plugin-promise": "^4.0.1",
30
+ "eslint-config-standard": "^17.0.0",
31
+ "eslint-plugin-import": "^2.19.1",
32
+ "eslint-plugin-n": "^15.0.0",
33
+ "eslint-plugin-promise": "^6.0.0",
34
34
  <% } else if (lintConfig === 'airbnb') { %>
35
- "eslint-config-airbnb-base": "^14.0.0",
35
+ "eslint-config-airbnb-base": "^15.0.0",
36
36
  "eslint-plugin-import": "^2.20.1",
37
37
  <% } else if (lintConfig === 'prettier') { %>
38
38
  "eslint-config-prettier": "^8.1.0",
39
- <% } %>
40
- "@typescript-eslint/eslint-plugin": "^4.16.1",
41
- "@typescript-eslint/parser": "^4.16.1",
42
- <% } %>
43
- "@types/node": "^10.17.15",
39
+ "prettier": "^2.5.1",
40
+ <% } } %>
41
+ "@types/node": "^12.20.21",
44
42
  "@quasar/app": "^2.0.0"
45
43
  },
46
44
  "browserslist": [
@@ -17,7 +17,10 @@ module.exports = configure(function (/* ctx */) {
17
17
  // https://v1.quasar.dev/quasar-cli/supporting-ts
18
18
  supportTS: <% if (preset.lint) { %>{
19
19
  tsCheckerConfig: {
20
- eslint: true
20
+ eslint: {
21
+ enabled: true,
22
+ files: './src/**/*.{ts,tsx,js,jsx,vue}',
23
+ },
21
24
  }
22
25
  }<% } else { %>true<% } %>,
23
26
 
@@ -28,7 +31,6 @@ module.exports = configure(function (/* ctx */) {
28
31
  // --> boot files are part of "main.js"
29
32
  // https://v1.quasar.dev/quasar-cli/boot-files
30
33
  boot: [
31
- <% if (typescriptConfig === 'composition') { %>'composition-api',<% } %>
32
34
  <% if (preset.i18n) { %>'i18n',<% } %>
33
35
  <% if (preset.axios) { %>'axios',<% } %>
34
36
  ],
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script lang="ts">
8
- <% if (typescriptConfig === 'composition') { %>import { defineComponent } from '@vue/composition-api';
8
+ <% if (typescriptConfig === 'composition') { %>import { defineComponent } from 'vue';
9
9
 
10
10
  export default defineComponent({
11
11
  name: 'App',
@@ -23,7 +23,7 @@
23
23
 
24
24
  <script lang="ts">
25
25
  <% if (typescriptConfig === 'composition') { %>
26
- import { defineComponent } from '@vue/composition-api';
26
+ import { defineComponent } from 'vue';
27
27
 
28
28
  export default defineComponent({
29
29
  name: 'EssentialLink',
@@ -16,7 +16,7 @@
16
16
  <% if (typescriptConfig === 'composition') { %>
17
17
  import {
18
18
  defineComponent, PropType, computed, ref, toRef, Ref,
19
- } from '@vue/composition-api';
19
+ } from 'vue';
20
20
  import { Todo, Meta } from './models';
21
21
 
22
22
  function useClickCount() {
@@ -48,7 +48,7 @@
48
48
 
49
49
  <script lang="ts">
50
50
  <% if (typescriptConfig === 'composition') { %>
51
- import { defineComponent, ref } from '@vue/composition-api';
51
+ import { defineComponent, ref } from 'vue';
52
52
  import EssentialLink from 'components/EssentialLink.vue'
53
53
 
54
54
  const linksData = [
@@ -24,7 +24,7 @@
24
24
 
25
25
  <script lang="ts">
26
26
  <% if (typescriptConfig === 'composition') { %>
27
- import { defineComponent } from '@vue/composition-api';
27
+ import { defineComponent } from 'vue';
28
28
 
29
29
  export default defineComponent({
30
30
  name: 'ErrorNotFound',
@@ -13,7 +13,7 @@
13
13
  import { Todo, Meta } from 'components/models';
14
14
  import ExampleComponent from 'components/ExampleComponent.vue';
15
15
  <% if (typescriptConfig === 'composition') { %>
16
- import { defineComponent, ref } from '@vue/composition-api';
16
+ import { defineComponent, ref } from 'vue';
17
17
 
18
18
  export default defineComponent({
19
19
  name: 'PageIndex',
@@ -73,5 +73,4 @@ module.exports = async function ({ scope, utils }) {
73
73
  if (scope.preset.i18n) utils.renderTemplate(utils.join(__dirname, 'i18n'), scope)
74
74
  if (scope.preset.vuex) utils.renderTemplate(utils.join(__dirname, 'vuex'), scope)
75
75
  if (scope.preset.lint) utils.renderTemplate(utils.join(__dirname, 'lint'), scope)
76
- if (scope.typescriptConfig === 'composition') utils.renderTemplate(utils.join(__dirname, 'composition'), scope)
77
76
  }
@@ -6,23 +6,19 @@ module.exports = {
6
6
  // Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
7
7
  root: true,
8
8
 
9
- // https://eslint.vuejs.org/user-guide/#how-to-use-custom-parser
9
+ // https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
10
10
  // Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
11
11
  // `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
12
12
  parserOptions: {
13
- // https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
14
- // https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#eslint
15
- // Needed to make the parser take into account 'vue' files
16
- extraFileExtensions: ['.vue'],
17
- parser: '@typescript-eslint/parser',
18
- project: resolve(__dirname, './tsconfig.json'),
19
- tsconfigRootDir: __dirname,
20
- ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
21
- sourceType: 'module' // Allows for the use of imports
13
+ parser: require.resolve('@typescript-eslint/parser'),
14
+ extraFileExtensions: [ '.vue' ]
22
15
  },
23
16
 
24
17
  env: {
25
- browser: true
18
+ browser: true,
19
+ es2021: true,
20
+ node: true,
21
+ 'vue/setup-compiler-macros': true
26
22
  },
27
23
 
28
24
  // Rules order is important, please avoid shuffling them
@@ -82,19 +78,30 @@ module.exports = {
82
78
  // allow paren-less arrow functions
83
79
  'arrow-parens': 'off',
84
80
  'one-var': 'off',
81
+ 'no-void': 'off',
82
+ 'multiline-ternary': 'off',
85
83
 
86
84
  'import/first': 'off',
87
- 'import/named': 'error',
88
85
  'import/namespace': 'error',
89
86
  'import/default': 'error',
90
87
  'import/export': 'error',
91
88
  'import/extensions': 'off',
92
89
  'import/no-unresolved': 'off',
93
- 'import/no-extraneous-dependencies': 'off',<% } else if (lintConfig === 'airbnb') { %>
90
+ 'import/no-extraneous-dependencies': 'off',
91
+
92
+ // The core 'import/named' rules
93
+ // does not work with type definitions
94
+ 'import/named': 'off',
95
+ <% } else if (lintConfig === 'airbnb') { %>
94
96
  'no-param-reassign': 'off',
97
+ 'no-void': 'off',
98
+ 'no-nested-ternary': 'off',
99
+ 'max-classes-per-file': 'off',
100
+
101
+ 'no-shadow': 'off',
102
+ '@typescript-eslint/no-shadow': 'error',
95
103
 
96
104
  'import/first': 'off',
97
- 'import/named': 'error',
98
105
  'import/namespace': 'error',
99
106
  'import/default': 'error',
100
107
  'import/export': 'error',
@@ -102,18 +109,26 @@ module.exports = {
102
109
  'import/no-unresolved': 'off',
103
110
  'import/no-extraneous-dependencies': 'off',
104
111
  'import/prefer-default-export': 'off',
112
+
113
+ // The core 'import/named' rules
114
+ // does not work with type definitions
115
+ 'import/named': 'off',
105
116
  <% } %>
106
117
  'prefer-promise-reject-errors': 'off',
107
- 'func-names': 'off',
108
118
 
109
- // TypeScript
110
119
  quotes: ['warn', 'single', { avoidEscape: true }],
120
+
121
+ // this rule, if on, would require explicit return type on the `render` function
111
122
  '@typescript-eslint/explicit-function-return-type': 'off',
112
- '@typescript-eslint/explicit-module-boundary-types': 'off',
113
- <% if (lintConfig === 'airbnb') { %>
114
- 'no-shadow': 'off',
115
- '@typescript-eslint/no-shadow': 'error',
116
- <% } %>
123
+
124
+ // in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
125
+ '@typescript-eslint/no-var-requires': 'off',
126
+
127
+ // The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
128
+ // does not work with type definitions
129
+ 'no-unused-vars': 'off',
130
+
131
+ 'vue/multi-word-component-names': 'off',
117
132
 
118
133
  // allow debugger during development only
119
134
  'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
@@ -24,7 +24,7 @@
24
24
  "devDependencies": {
25
25
  <% if (preset.lint) { %>
26
26
  "eslint": "^8.10.0",
27
- "eslint-plugin-vue": "^8.5.0",
27
+ "eslint-plugin-vue": "^9.0.0",
28
28
  <% if (lintConfig === 'standard') { %>
29
29
  "eslint-config-standard": "^17.0.0",
30
30
  "eslint-plugin-import": "^2.19.1",
@@ -26,7 +26,7 @@
26
26
  <% if (preset.lint) { %>
27
27
  "@babel/eslint-parser": "^7.13.14",
28
28
  "eslint": "^8.10.0",
29
- "eslint-plugin-vue": "^8.5.0",
29
+ "eslint-plugin-vue": "^9.0.0",
30
30
  "eslint-webpack-plugin": "^3.1.1",
31
31
  <% if (lintConfig === 'standard') { %>
32
32
  "eslint-config-standard": "^17.0.0",
@@ -27,7 +27,7 @@
27
27
  "@typescript-eslint/eslint-plugin": "^5.10.0",
28
28
  "@typescript-eslint/parser": "^5.10.0",
29
29
  "eslint": "^8.10.0",
30
- "eslint-plugin-vue": "^8.5.0",
30
+ "eslint-plugin-vue": "^9.0.0",
31
31
  <% if (lintConfig === 'standard') { %>
32
32
  "eslint-config-standard": "^17.0.0",
33
33
  "eslint-plugin-import": "^2.19.1",
@@ -28,7 +28,7 @@
28
28
  "@typescript-eslint/eslint-plugin": "^5.10.0",
29
29
  "@typescript-eslint/parser": "^5.10.0",
30
30
  "eslint": "^8.10.0",
31
- "eslint-plugin-vue": "^8.5.0",
31
+ "eslint-plugin-vue": "^9.0.0",
32
32
  <% if (lintConfig === 'standard') { %>
33
33
  "eslint-config-standard": "^17.0.0",
34
34
  "eslint-plugin-import": "^2.19.1",
@@ -1,6 +0,0 @@
1
- import VueCompositionApi from '@vue/composition-api';
2
- import { boot } from 'quasar/wrappers';
3
-
4
- export default boot(({ Vue }) => {
5
- Vue.use(VueCompositionApi);
6
- });