create-quasar 1.10.1 → 1.11.1
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 +3 -3
- package/templates/app/quasar-v2/index.js +4 -4
- package/templates/app/quasar-v2/js-vite-1/BASE/quasar.config.js +0 -1
- package/templates/app/quasar-v2/js-vite-2/.eslintrc.cjs +1 -1
- package/templates/app/quasar-v2/js-vite-2/BASE/README.md +3 -4
- package/templates/app/quasar-v2/js-vite-2/BASE/_.editorconfig +2 -4
- package/templates/app/quasar-v2/js-vite-2/BASE/_.vscode/extensions.json +2 -2
- package/templates/app/quasar-v2/js-vite-2/BASE/_.vscode/settings.json +2 -2
- package/templates/app/quasar-v2/js-vite-2/BASE/_package.json +15 -21
- package/templates/app/quasar-v2/js-vite-2/BASE/postcss.config.js +0 -1
- package/templates/app/quasar-v2/js-vite-2/BASE/quasar.config.js +22 -17
- package/templates/app/quasar-v2/js-vite-2/eslint/_eslint.config.js +73 -0
- package/templates/app/quasar-v2/js-vite-2/index.js +11 -10
- package/templates/app/quasar-v2/js-vite-2/pinia/src/stores/example-store.js +13 -7
- package/templates/app/quasar-v2/js-vite-2/prettier/_.prettierrc.json +6 -0
- package/templates/app/quasar-v2/js-webpack-4/.eslintrc.cjs +1 -1
- package/templates/app/quasar-v2/js-webpack-4/BASE/README.md +3 -4
- package/templates/app/quasar-v2/js-webpack-4/BASE/_.editorconfig +2 -4
- package/templates/app/quasar-v2/js-webpack-4/BASE/_.vscode/extensions.json +2 -2
- package/templates/app/quasar-v2/js-webpack-4/BASE/_.vscode/settings.json +2 -2
- package/templates/app/quasar-v2/js-webpack-4/BASE/_package.json +17 -22
- package/templates/app/quasar-v2/js-webpack-4/BASE/{babel.config.cjs → babel.config.js} +1 -3
- package/templates/app/quasar-v2/js-webpack-4/BASE/{postcss.config.cjs → postcss.config.js} +3 -3
- package/templates/app/quasar-v2/js-webpack-4/BASE/quasar.config.js +18 -21
- package/templates/app/quasar-v2/js-webpack-4/BASE/src/router/index.js +1 -1
- package/templates/app/quasar-v2/js-webpack-4/eslint/_eslint.config.js +73 -0
- package/templates/app/quasar-v2/js-webpack-4/i18n/src/i18n/index.js +1 -1
- package/templates/app/quasar-v2/js-webpack-4/index.js +11 -10
- package/templates/app/quasar-v2/js-webpack-4/prettier/_.prettierrc.json +6 -0
- package/templates/app/quasar-v2/ts-vite-1/BASE/quasar.config.js +0 -1
- package/templates/app/quasar-v2/ts-vite-2/.eslintrc.cjs +1 -1
- package/templates/app/quasar-v2/ts-vite-2/BASE/README.md +3 -4
- package/templates/app/quasar-v2/ts-vite-2/BASE/_.editorconfig +2 -4
- package/templates/app/quasar-v2/ts-vite-2/BASE/_.vscode/extensions.json +2 -2
- package/templates/app/quasar-v2/ts-vite-2/BASE/_.vscode/settings.json +2 -2
- package/templates/app/quasar-v2/ts-vite-2/BASE/_package.json +16 -23
- package/templates/app/quasar-v2/ts-vite-2/BASE/postcss.config.js +0 -1
- package/templates/app/quasar-v2/ts-vite-2/BASE/quasar.config.ts +21 -17
- package/templates/app/quasar-v2/ts-vite-2/BASE/src/env.d.ts +0 -2
- package/templates/app/quasar-v2/ts-vite-2/eslint/_eslint.config.js +94 -0
- package/templates/app/quasar-v2/ts-vite-2/i18n/src/boot/i18n.ts +3 -3
- package/templates/app/quasar-v2/ts-vite-2/index.js +11 -16
- package/templates/app/quasar-v2/ts-vite-2/pinia/src/stores/example-store.ts +7 -1
- package/templates/app/quasar-v2/ts-vite-2/pinia/src/stores/index.ts +1 -1
- package/templates/app/quasar-v2/ts-vite-2/prettier/_.prettierrc.json +6 -0
- package/templates/app/quasar-v2/ts-webpack-4/.eslintrc.cjs +1 -1
- package/templates/app/quasar-v2/ts-webpack-4/BASE/README.md +3 -4
- package/templates/app/quasar-v2/ts-webpack-4/BASE/_.editorconfig +2 -4
- package/templates/app/quasar-v2/ts-webpack-4/BASE/_.vscode/extensions.json +2 -2
- package/templates/app/quasar-v2/ts-webpack-4/BASE/_.vscode/settings.json +2 -2
- package/templates/app/quasar-v2/ts-webpack-4/BASE/_package.json +19 -24
- package/templates/app/quasar-v2/ts-webpack-4/BASE/babel.config.cjs +0 -2
- package/templates/app/quasar-v2/ts-webpack-4/BASE/postcss.config.cjs +0 -1
- package/templates/app/quasar-v2/ts-webpack-4/BASE/quasar.config.ts +11 -13
- package/templates/app/quasar-v2/ts-webpack-4/BASE/src/env.d.ts +0 -2
- package/templates/app/quasar-v2/ts-webpack-4/eslint/_eslint.config.js +94 -0
- package/templates/app/quasar-v2/ts-webpack-4/i18n/src/boot/i18n.ts +3 -3
- package/templates/app/quasar-v2/ts-webpack-4/index.js +11 -16
- package/templates/app/quasar-v2/ts-webpack-4/pinia/src/stores/index.ts +1 -1
- package/templates/app/quasar-v2/ts-webpack-4/prettier/_.prettierrc.json +6 -0
- package/templates/app-extension/ae-ts/BASE/app-extension/_package.json +4 -4
- package/templates/app-extension/ae-ts/BASE/app-extension/src/index.ts +2 -2
- package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/_package.json +1 -1
- package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/quasar.config.ts +8 -0
- package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/_package.json +1 -1
- package/templates/app-extension/ae-ts/install-script/app-extension/src/install.ts +2 -2
- package/templates/ui-kit/quasar-v2/ae/app-extension/src/index.js +2 -2
- package/templates/ui-kit/quasar-v2/ae-install/app-extension/src/install.js +2 -2
- package/utils/index.js +2 -2
- package/templates/app/quasar-v2/js-vite-2/lint/_.eslintignore +0 -7
- package/templates/app/quasar-v2/js-vite-2/lint/_.eslintrc.cjs +0 -100
- package/templates/app/quasar-v2/js-vite-2/pinia/src/stores/store-flag.d.ts +0 -13
- package/templates/app/quasar-v2/js-webpack-4/lint/_.eslintignore +0 -8
- package/templates/app/quasar-v2/js-webpack-4/lint/_.eslintrc.cjs +0 -101
- package/templates/app/quasar-v2/ts-vite-2/lint/_.eslintignore +0 -7
- package/templates/app/quasar-v2/ts-vite-2/lint/_.eslintrc.cjs +0 -135
- package/templates/app/quasar-v2/ts-vite-2/prettier/_.prettierrc +0 -4
- package/templates/app/quasar-v2/ts-webpack-4/lint/_.eslintignore +0 -8
- package/templates/app/quasar-v2/ts-webpack-4/lint/_.eslintrc.cjs +0 -139
- package/templates/app/quasar-v2/ts-webpack-4/prettier/_.prettierrc +0 -4
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
|
|
3
|
-
// This option interrupts the configuration hierarchy at this file
|
|
4
|
-
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
|
|
5
|
-
root: true,
|
|
6
|
-
|
|
7
|
-
parserOptions: {
|
|
8
|
-
ecmaVersion: 2021, // Allows for the parsing of modern ECMAScript features
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
env: {
|
|
12
|
-
node: true,
|
|
13
|
-
browser: true,
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
// Rules order is important, please avoid shuffling them
|
|
17
|
-
extends: [
|
|
18
|
-
// Base ESLint recommended rules
|
|
19
|
-
// 'eslint:recommended',
|
|
20
|
-
|
|
21
|
-
// Uncomment any of the lines below to choose desired strictness,
|
|
22
|
-
// but leave only one uncommented!
|
|
23
|
-
// See https://eslint.vuejs.org/rules/#available-rules
|
|
24
|
-
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
|
|
25
|
-
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
|
|
26
|
-
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
|
|
27
|
-
|
|
28
|
-
<% if (lintConfig === 'standard') { %>'standard'
|
|
29
|
-
<% } else if (lintConfig === 'airbnb') { %>'airbnb-base'
|
|
30
|
-
<% } else if (lintConfig === 'prettier') { %>// https://github.com/prettier/eslint-config-prettier#installation
|
|
31
|
-
// usage with Prettier, provided by 'eslint-config-prettier'.
|
|
32
|
-
'prettier'<% } %>
|
|
33
|
-
],
|
|
34
|
-
|
|
35
|
-
plugins: [
|
|
36
|
-
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
|
|
37
|
-
// required to lint *.vue files
|
|
38
|
-
'vue',
|
|
39
|
-
<% if (lintConfig === 'prettier') { %>
|
|
40
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
|
|
41
|
-
// Prettier has not been included as plugin to avoid performance impact
|
|
42
|
-
// add it as an extension for your IDE
|
|
43
|
-
<% } %>
|
|
44
|
-
],
|
|
45
|
-
|
|
46
|
-
globals: {
|
|
47
|
-
ga: 'readonly', // Google Analytics
|
|
48
|
-
cordova: 'readonly',
|
|
49
|
-
__statics: 'readonly',
|
|
50
|
-
__QUASAR_SSR__: 'readonly',
|
|
51
|
-
__QUASAR_SSR_SERVER__: 'readonly',
|
|
52
|
-
__QUASAR_SSR_CLIENT__: 'readonly',
|
|
53
|
-
__QUASAR_SSR_PWA__: 'readonly',
|
|
54
|
-
process: 'readonly',
|
|
55
|
-
Capacitor: 'readonly',
|
|
56
|
-
chrome: 'readonly'
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
// add your custom rules here
|
|
60
|
-
rules: {
|
|
61
|
-
<% if (lintConfig === 'standard') { %>
|
|
62
|
-
// allow async-await
|
|
63
|
-
'generator-star-spacing': 'off',
|
|
64
|
-
// allow paren-less arrow functions
|
|
65
|
-
'arrow-parens': 'off',
|
|
66
|
-
'one-var': 'off',
|
|
67
|
-
'no-void': 'off',
|
|
68
|
-
'multiline-ternary': 'off',
|
|
69
|
-
|
|
70
|
-
'import/first': 'off',
|
|
71
|
-
'import/named': 'error',
|
|
72
|
-
'import/namespace': 'error',
|
|
73
|
-
'import/default': 'error',
|
|
74
|
-
'import/export': 'error',
|
|
75
|
-
'import/extensions': 'off',
|
|
76
|
-
'import/no-unresolved': 'off',
|
|
77
|
-
'import/no-extraneous-dependencies': 'off',
|
|
78
|
-
<% } else if (lintConfig === 'airbnb') { %>
|
|
79
|
-
'no-plusplus': 'off',
|
|
80
|
-
'no-param-reassign': 'off',
|
|
81
|
-
'no-void': 'off',
|
|
82
|
-
'no-nested-ternary': 'off',
|
|
83
|
-
'max-classes-per-file': 'off',
|
|
84
|
-
|
|
85
|
-
'import/first': 'off',
|
|
86
|
-
'import/named': 'error',
|
|
87
|
-
'import/namespace': 'error',
|
|
88
|
-
'import/default': 'error',
|
|
89
|
-
'import/export': 'error',
|
|
90
|
-
'import/extensions': 'off',
|
|
91
|
-
'import/no-unresolved': 'off',
|
|
92
|
-
'import/no-extraneous-dependencies': 'off',
|
|
93
|
-
'import/prefer-default-export': 'off',
|
|
94
|
-
<% } %>
|
|
95
|
-
'prefer-promise-reject-errors': 'off',
|
|
96
|
-
|
|
97
|
-
// allow debugger during development only
|
|
98
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
WARNING: DO NOT MODIFY OR DELETE
|
|
3
|
-
This file is auto-generated by Quasar CLI
|
|
4
|
-
It's recommended to NOT .gitignore it
|
|
5
|
-
You don't have to use TypeScript in your project, don't worry
|
|
6
|
-
*/
|
|
7
|
-
import "quasar/dist/types/feature-flag.d.ts";
|
|
8
|
-
|
|
9
|
-
declare module "quasar/dist/types/feature-flag.d.ts" {
|
|
10
|
-
interface QuasarFeatureFlags {
|
|
11
|
-
store: true;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
|
|
3
|
-
// This option interrupts the configuration hierarchy at this file
|
|
4
|
-
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
|
|
5
|
-
root: true,
|
|
6
|
-
|
|
7
|
-
parserOptions: {
|
|
8
|
-
parser: '@babel/eslint-parser',
|
|
9
|
-
ecmaVersion: 2021, // Allows for the parsing of modern ECMAScript features
|
|
10
|
-
sourceType: 'module' // Allows for the use of imports
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
env: {
|
|
14
|
-
browser: true
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
// Rules order is important, please avoid shuffling them
|
|
18
|
-
extends: [
|
|
19
|
-
// Base ESLint recommended rules
|
|
20
|
-
// 'eslint:recommended',
|
|
21
|
-
|
|
22
|
-
// Uncomment any of the lines below to choose desired strictness,
|
|
23
|
-
// but leave only one uncommented!
|
|
24
|
-
// See https://eslint.vuejs.org/rules/#available-rules
|
|
25
|
-
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
|
|
26
|
-
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
|
|
27
|
-
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
|
|
28
|
-
|
|
29
|
-
<% if (lintConfig === 'standard') { %>'standard'
|
|
30
|
-
<% } else if (lintConfig === 'airbnb') { %>'airbnb-base'
|
|
31
|
-
<% } else if (lintConfig === 'prettier') { %>// https://github.com/prettier/eslint-config-prettier#installation
|
|
32
|
-
// usage with Prettier, provided by 'eslint-config-prettier'.
|
|
33
|
-
'prettier'<% } %>
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
plugins: [
|
|
37
|
-
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
|
|
38
|
-
// required to lint *.vue files
|
|
39
|
-
'vue',
|
|
40
|
-
<% if (lintConfig === 'prettier') { %>
|
|
41
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
|
|
42
|
-
// Prettier has not been included as plugin to avoid performance impact
|
|
43
|
-
// add it as an extension for your IDE
|
|
44
|
-
<% } %>
|
|
45
|
-
],
|
|
46
|
-
|
|
47
|
-
globals: {
|
|
48
|
-
ga: 'readonly', // Google Analytics
|
|
49
|
-
cordova: 'readonly',
|
|
50
|
-
__statics: 'readonly',
|
|
51
|
-
__QUASAR_SSR__: 'readonly',
|
|
52
|
-
__QUASAR_SSR_SERVER__: 'readonly',
|
|
53
|
-
__QUASAR_SSR_CLIENT__: 'readonly',
|
|
54
|
-
__QUASAR_SSR_PWA__: 'readonly',
|
|
55
|
-
process: 'readonly',
|
|
56
|
-
Capacitor: 'readonly',
|
|
57
|
-
chrome: 'readonly'
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
// add your custom rules here
|
|
61
|
-
rules: {
|
|
62
|
-
<% if (lintConfig === 'standard') { %>
|
|
63
|
-
// allow async-await
|
|
64
|
-
'generator-star-spacing': 'off',
|
|
65
|
-
// allow paren-less arrow functions
|
|
66
|
-
'arrow-parens': 'off',
|
|
67
|
-
'one-var': 'off',
|
|
68
|
-
'no-void': 'off',
|
|
69
|
-
'multiline-ternary': 'off',
|
|
70
|
-
|
|
71
|
-
'import/first': 'off',
|
|
72
|
-
'import/named': 'error',
|
|
73
|
-
'import/namespace': 'error',
|
|
74
|
-
'import/default': 'error',
|
|
75
|
-
'import/export': 'error',
|
|
76
|
-
'import/extensions': 'off',
|
|
77
|
-
'import/no-unresolved': 'off',
|
|
78
|
-
'import/no-extraneous-dependencies': 'off',
|
|
79
|
-
<% } else if (lintConfig === 'airbnb') { %>
|
|
80
|
-
'no-plusplus': 'off',
|
|
81
|
-
'no-param-reassign': 'off',
|
|
82
|
-
'no-void': 'off',
|
|
83
|
-
'no-nested-ternary': 'off',
|
|
84
|
-
'max-classes-per-file': 'off',
|
|
85
|
-
|
|
86
|
-
'import/first': 'off',
|
|
87
|
-
'import/named': 'error',
|
|
88
|
-
'import/namespace': 'error',
|
|
89
|
-
'import/default': 'error',
|
|
90
|
-
'import/export': 'error',
|
|
91
|
-
'import/extensions': 'off',
|
|
92
|
-
'import/no-unresolved': 'off',
|
|
93
|
-
'import/no-extraneous-dependencies': 'off',
|
|
94
|
-
'import/prefer-default-export': 'off',
|
|
95
|
-
<% } %>
|
|
96
|
-
'prefer-promise-reject-errors': 'off',
|
|
97
|
-
|
|
98
|
-
// allow debugger during development only
|
|
99
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
100
|
-
}
|
|
101
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
|
|
3
|
-
// This option interrupts the configuration hierarchy at this file
|
|
4
|
-
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
|
|
5
|
-
root: true,
|
|
6
|
-
|
|
7
|
-
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
|
|
8
|
-
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
|
|
9
|
-
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
|
|
10
|
-
parserOptions: {
|
|
11
|
-
parser: require.resolve('@typescript-eslint/parser'),
|
|
12
|
-
extraFileExtensions: [ '.vue' ]
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
env: {
|
|
16
|
-
browser: true,
|
|
17
|
-
es2021: true,
|
|
18
|
-
node: true
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Rules order is important, please avoid shuffling them
|
|
22
|
-
extends: [
|
|
23
|
-
// Base ESLint recommended rules
|
|
24
|
-
// 'eslint:recommended',
|
|
25
|
-
|
|
26
|
-
// https://typescript-eslint.io/getting-started/legacy-eslint-setup
|
|
27
|
-
// ESLint typescript rules
|
|
28
|
-
'plugin:@typescript-eslint/recommended',
|
|
29
|
-
|
|
30
|
-
// Uncomment any of the lines below to choose desired strictness,
|
|
31
|
-
// but leave only one uncommented!
|
|
32
|
-
// See https://eslint.vuejs.org/rules/#available-rules
|
|
33
|
-
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
|
|
34
|
-
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
|
|
35
|
-
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
|
|
36
|
-
|
|
37
|
-
<% if (lintConfig === 'standard') { %>'standard'
|
|
38
|
-
<% } else if (lintConfig === 'airbnb') { %>'airbnb-base'
|
|
39
|
-
<% } else if (lintConfig === 'prettier') { %>// https://github.com/prettier/eslint-config-prettier#installation
|
|
40
|
-
// usage with Prettier, provided by 'eslint-config-prettier'.
|
|
41
|
-
'prettier'<% } %>
|
|
42
|
-
],
|
|
43
|
-
|
|
44
|
-
plugins: [
|
|
45
|
-
// required to apply rules which need type information
|
|
46
|
-
'@typescript-eslint',
|
|
47
|
-
|
|
48
|
-
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
|
|
49
|
-
// required to lint *.vue files
|
|
50
|
-
'vue'
|
|
51
|
-
<% if (lintConfig === 'prettier') { %>
|
|
52
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
|
|
53
|
-
// Prettier has not been included as plugin to avoid performance impact
|
|
54
|
-
// add it as an extension for your IDE
|
|
55
|
-
<% } %>
|
|
56
|
-
],
|
|
57
|
-
|
|
58
|
-
globals: {
|
|
59
|
-
ga: 'readonly', // Google Analytics
|
|
60
|
-
cordova: 'readonly',
|
|
61
|
-
__statics: 'readonly',
|
|
62
|
-
__QUASAR_SSR__: 'readonly',
|
|
63
|
-
__QUASAR_SSR_SERVER__: 'readonly',
|
|
64
|
-
__QUASAR_SSR_CLIENT__: 'readonly',
|
|
65
|
-
__QUASAR_SSR_PWA__: 'readonly',
|
|
66
|
-
process: 'readonly',
|
|
67
|
-
Capacitor: 'readonly',
|
|
68
|
-
chrome: 'readonly'
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
// add your custom rules here
|
|
72
|
-
rules: {
|
|
73
|
-
<% if (lintConfig === 'standard') { %>
|
|
74
|
-
// allow async-await
|
|
75
|
-
'generator-star-spacing': 'off',
|
|
76
|
-
// allow paren-less arrow functions
|
|
77
|
-
'arrow-parens': 'off',
|
|
78
|
-
'one-var': 'off',
|
|
79
|
-
'no-void': 'off',
|
|
80
|
-
'multiline-ternary': 'off',
|
|
81
|
-
|
|
82
|
-
'import/first': 'off',
|
|
83
|
-
'import/namespace': 'error',
|
|
84
|
-
'import/default': 'error',
|
|
85
|
-
'import/export': 'error',
|
|
86
|
-
'import/extensions': 'off',
|
|
87
|
-
'import/no-unresolved': 'off',
|
|
88
|
-
'import/no-extraneous-dependencies': 'off',
|
|
89
|
-
|
|
90
|
-
// The core 'import/named' rules
|
|
91
|
-
// does not work with type definitions
|
|
92
|
-
'import/named': 'off',
|
|
93
|
-
<% } else if (lintConfig === 'airbnb') { %>
|
|
94
|
-
'no-plusplus': 'off',
|
|
95
|
-
'no-param-reassign': 'off',
|
|
96
|
-
'no-void': 'off',
|
|
97
|
-
'no-nested-ternary': 'off',
|
|
98
|
-
'max-classes-per-file': 'off',
|
|
99
|
-
|
|
100
|
-
'no-shadow': 'off',
|
|
101
|
-
'@typescript-eslint/no-shadow': 'error',
|
|
102
|
-
|
|
103
|
-
'import/first': 'off',
|
|
104
|
-
'import/named': 'error',
|
|
105
|
-
'import/namespace': 'error',
|
|
106
|
-
'import/default': 'error',
|
|
107
|
-
'import/export': 'error',
|
|
108
|
-
'import/extensions': 'off',
|
|
109
|
-
'import/no-unresolved': 'off',
|
|
110
|
-
'import/no-extraneous-dependencies': 'off',
|
|
111
|
-
'import/prefer-default-export': 'off',
|
|
112
|
-
<% } %>
|
|
113
|
-
'prefer-promise-reject-errors': 'off',
|
|
114
|
-
|
|
115
|
-
quotes: ['warn', 'single', { avoidEscape: true }],
|
|
116
|
-
|
|
117
|
-
// this rule, if on, would require explicit return type on the `render` function
|
|
118
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
119
|
-
|
|
120
|
-
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
|
|
121
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
122
|
-
|
|
123
|
-
'@typescript-eslint/consistent-type-imports': [
|
|
124
|
-
'error',
|
|
125
|
-
{ prefer: 'type-imports' },
|
|
126
|
-
],
|
|
127
|
-
|
|
128
|
-
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
|
|
129
|
-
// does not work with type definitions
|
|
130
|
-
'no-unused-vars': 'off',
|
|
131
|
-
|
|
132
|
-
// allow debugger during development only
|
|
133
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = {
|
|
3
|
-
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
|
|
4
|
-
// This option interrupts the configuration hierarchy at this file
|
|
5
|
-
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
|
|
6
|
-
root: true,
|
|
7
|
-
|
|
8
|
-
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
|
|
9
|
-
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
|
|
10
|
-
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
|
|
11
|
-
parserOptions: {
|
|
12
|
-
parser: require.resolve('@typescript-eslint/parser'),
|
|
13
|
-
extraFileExtensions: [ '.vue' ]
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
env: {
|
|
17
|
-
browser: true,
|
|
18
|
-
es2021: true,
|
|
19
|
-
node: true
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
// Rules order is important, please avoid shuffling them
|
|
23
|
-
extends: [
|
|
24
|
-
// Base ESLint recommended rules
|
|
25
|
-
// 'eslint:recommended',
|
|
26
|
-
|
|
27
|
-
// https://typescript-eslint.io/getting-started/legacy-eslint-setup
|
|
28
|
-
// ESLint typescript rules
|
|
29
|
-
'plugin:@typescript-eslint/recommended',
|
|
30
|
-
|
|
31
|
-
// Uncomment any of the lines below to choose desired strictness,
|
|
32
|
-
// but leave only one uncommented!
|
|
33
|
-
// See https://eslint.vuejs.org/rules/#available-rules
|
|
34
|
-
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
|
|
35
|
-
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
|
|
36
|
-
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
|
|
37
|
-
|
|
38
|
-
<% if (lintConfig === 'standard') { %>'standard'
|
|
39
|
-
<% } else if (lintConfig === 'airbnb') { %>'airbnb-base'
|
|
40
|
-
<% } else if (lintConfig === 'prettier') { %>// https://github.com/prettier/eslint-config-prettier#installation
|
|
41
|
-
// usage with Prettier, provided by 'eslint-config-prettier'.
|
|
42
|
-
'prettier'<% } %>
|
|
43
|
-
],
|
|
44
|
-
|
|
45
|
-
plugins: [
|
|
46
|
-
// required to apply rules which need type information
|
|
47
|
-
'@typescript-eslint',
|
|
48
|
-
|
|
49
|
-
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
|
|
50
|
-
// required to lint *.vue files
|
|
51
|
-
'vue'
|
|
52
|
-
<% if (lintConfig === 'prettier') { %>
|
|
53
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
|
|
54
|
-
// Prettier has not been included as plugin to avoid performance impact
|
|
55
|
-
// add it as an extension for your IDE
|
|
56
|
-
<% } %>
|
|
57
|
-
],
|
|
58
|
-
|
|
59
|
-
globals: {
|
|
60
|
-
ga: 'readonly', // Google Analytics
|
|
61
|
-
cordova: 'readonly',
|
|
62
|
-
__statics: 'readonly',
|
|
63
|
-
__QUASAR_SSR__: 'readonly',
|
|
64
|
-
__QUASAR_SSR_SERVER__: 'readonly',
|
|
65
|
-
__QUASAR_SSR_CLIENT__: 'readonly',
|
|
66
|
-
__QUASAR_SSR_PWA__: 'readonly',
|
|
67
|
-
process: 'readonly',
|
|
68
|
-
Capacitor: 'readonly',
|
|
69
|
-
chrome: 'readonly',
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
// add your custom rules here
|
|
73
|
-
rules: {
|
|
74
|
-
<% if (lintConfig === 'standard') { %>
|
|
75
|
-
// allow async-await
|
|
76
|
-
'generator-star-spacing': 'off',
|
|
77
|
-
// allow paren-less arrow functions
|
|
78
|
-
'arrow-parens': 'off',
|
|
79
|
-
'one-var': 'off',
|
|
80
|
-
'no-void': 'off',
|
|
81
|
-
'multiline-ternary': 'off',
|
|
82
|
-
|
|
83
|
-
'import/first': 'off',
|
|
84
|
-
'import/namespace': 'error',
|
|
85
|
-
'import/default': 'error',
|
|
86
|
-
'import/export': 'error',
|
|
87
|
-
'import/extensions': 'off',
|
|
88
|
-
'import/no-unresolved': 'off',
|
|
89
|
-
'import/no-extraneous-dependencies': 'off',
|
|
90
|
-
|
|
91
|
-
// The core 'import/named' rules
|
|
92
|
-
// does not work with type definitions
|
|
93
|
-
'import/named': 'off',
|
|
94
|
-
<% } else if (lintConfig === 'airbnb') { %>
|
|
95
|
-
'no-plusplus': 'off',
|
|
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',
|
|
103
|
-
|
|
104
|
-
'import/first': 'off',
|
|
105
|
-
'import/namespace': 'error',
|
|
106
|
-
'import/default': 'error',
|
|
107
|
-
'import/export': 'error',
|
|
108
|
-
'import/extensions': 'off',
|
|
109
|
-
'import/no-unresolved': 'off',
|
|
110
|
-
'import/no-extraneous-dependencies': 'off',
|
|
111
|
-
'import/prefer-default-export': 'off',
|
|
112
|
-
|
|
113
|
-
// The core 'import/named' rules
|
|
114
|
-
// does not work with type definitions
|
|
115
|
-
'import/named': 'off',
|
|
116
|
-
<% } %>
|
|
117
|
-
'prefer-promise-reject-errors': 'off',
|
|
118
|
-
|
|
119
|
-
quotes: ['warn', 'single', { avoidEscape: true }],
|
|
120
|
-
|
|
121
|
-
// this rule, if on, would require explicit return type on the `render` function
|
|
122
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
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
|
-
'@typescript-eslint/consistent-type-imports': [
|
|
128
|
-
'error',
|
|
129
|
-
{ prefer: 'type-imports' },
|
|
130
|
-
],
|
|
131
|
-
|
|
132
|
-
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
|
|
133
|
-
// does not work with type definitions
|
|
134
|
-
'no-unused-vars': 'off',
|
|
135
|
-
|
|
136
|
-
// allow debugger during development only
|
|
137
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
138
|
-
}
|
|
139
|
-
}
|