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 +1 -1
- package/templates/app/quasar-v1/js/BASE/_package.json +11 -11
- package/templates/app/quasar-v1/js/BASE/src/layouts/MainLayout.vue +1 -1
- package/templates/app/quasar-v1/js/lint/_.eslintrc.js +12 -4
- package/templates/app/quasar-v1/ts/BASE/_package.json +13 -15
- package/templates/app/quasar-v1/ts/BASE/quasar.conf.js +4 -2
- package/templates/app/quasar-v1/ts/BASE/src/App.vue +1 -1
- package/templates/app/quasar-v1/ts/BASE/src/components/EssentialLink.vue +1 -1
- package/templates/app/quasar-v1/ts/BASE/src/components/ExampleComponent.vue +1 -1
- package/templates/app/quasar-v1/ts/BASE/src/layouts/MainLayout.vue +1 -1
- package/templates/app/quasar-v1/ts/BASE/src/pages/Error404.vue +1 -1
- package/templates/app/quasar-v1/ts/BASE/src/pages/Index.vue +1 -1
- package/templates/app/quasar-v1/ts/index.js +0 -1
- package/templates/app/quasar-v1/ts/lint/_.eslintrc.js +36 -21
- package/templates/app/quasar-v2/js-vite/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/js-webpack/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/ts-vite/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/ts-webpack/BASE/_package.json +1 -1
- package/templates/app/quasar-v1/ts/composition/src/boot/composition-api.ts +0 -6
package/package.json
CHANGED
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
<% if (preset.lint) { %>
|
|
21
|
-
"babel-
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"eslint-
|
|
24
|
-
"eslint-plugin
|
|
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": "^
|
|
27
|
-
"eslint-plugin-import": "^2.
|
|
28
|
-
"eslint-plugin-
|
|
29
|
-
"eslint-plugin-promise": "^
|
|
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": "^
|
|
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": [
|
|
@@ -6,13 +6,14 @@ module.exports = {
|
|
|
6
6
|
root: true,
|
|
7
7
|
|
|
8
8
|
parserOptions: {
|
|
9
|
-
parser: 'babel-
|
|
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'
|
|
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
|
-
|
|
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 === '
|
|
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
|
-
"
|
|
27
|
-
"eslint": "^
|
|
28
|
-
"eslint
|
|
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": "^
|
|
31
|
-
"eslint-plugin-import": "^2.
|
|
32
|
-
"eslint-plugin-
|
|
33
|
-
"eslint-plugin-promise": "^
|
|
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": "^
|
|
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
|
-
|
|
41
|
-
"@
|
|
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:
|
|
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 '
|
|
8
|
+
<% if (typescriptConfig === 'composition') { %>import { defineComponent } from 'vue';
|
|
9
9
|
|
|
10
10
|
export default defineComponent({
|
|
11
11
|
name: 'App',
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
<script lang="ts">
|
|
50
50
|
<% if (typescriptConfig === 'composition') { %>
|
|
51
|
-
import { defineComponent, ref } from '
|
|
51
|
+
import { defineComponent, ref } from 'vue';
|
|
52
52
|
import EssentialLink from 'components/EssentialLink.vue'
|
|
53
53
|
|
|
54
54
|
const linksData = [
|
|
@@ -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 '
|
|
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
|
-
|
|
14
|
-
|
|
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'
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
'no-
|
|
115
|
-
|
|
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": "^
|
|
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": "^
|
|
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": "^
|
|
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": "^
|
|
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",
|