-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(create-quasar): update all new q/app templates to use ESLint v9;…
… convert webpack to type=module & all related files
- Loading branch information
1 parent
d0eab9d
commit 0b4767e
Showing
45 changed files
with
419 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
create-quasar/templates/app/quasar-v2/js-vite-2/BASE/_.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
root = true | ||
|
||
[*] | ||
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
4 changes: 2 additions & 2 deletions
4
create-quasar/templates/app/quasar-v2/js-vite-2/BASE/_.vscode/extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
create-quasar/templates/app/quasar-v2/js-vite-2/BASE/_.vscode/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
create-quasar/templates/app/quasar-v2/js-vite-2/BASE/postcss.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
create-quasar/templates/app/quasar-v2/js-vite-2/eslint/_eslint.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import pluginVue from 'eslint-plugin-vue' | ||
import pluginQuasar from '@quasar/app-vite/eslint'<% if (prettier) { %> | ||
import prettierSkipFormatting from '@vue/eslint-config-prettier/skip-formatting'<% } %> | ||
|
||
export default [ | ||
{ | ||
/** | ||
* Ignore the following files. | ||
* Please note that pluginQuasar.configs.recommended already ignores | ||
* the "node_modules" folder for you (and all other Quasar project | ||
* relevant folders and files). | ||
* | ||
* ESLint requires "ignores" key to be the only one in this object | ||
*/ | ||
// ignores: [] | ||
}, | ||
|
||
pluginQuasar.configs.recommended, | ||
js.configs.recommended, | ||
...pluginVue.configs[ 'flat/essential' ], | ||
|
||
{ | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
|
||
globals: { | ||
...globals.browser, | ||
...globals.node, // SSR, Electron, config files | ||
process: 'readonly', // process.env.* | ||
ga: 'readonly', // Google Analytics | ||
cordova: 'readonly', | ||
Capacitor: 'readonly', | ||
chrome: 'readonly', // BEX related | ||
browser: 'readonly' // BEX related | ||
} | ||
}, | ||
|
||
linterOptions: { | ||
reportUnusedDisableDirectives: 'warn' | ||
}, | ||
|
||
// add your custom rules here | ||
rules: { | ||
'prefer-promise-reject-errors': 'off', | ||
|
||
// allow debugger during development only | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | ||
} | ||
}, | ||
|
||
{ | ||
files: [ 'src-pwa/custom-service-worker.{js,ts}' ], | ||
languageOptions: { | ||
globals: { | ||
...globals.serviceworker | ||
} | ||
} | ||
}<% if (prettier) { %>, | ||
|
||
prettierSkipFormatting<% } %> | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 0 additions & 76 deletions
76
create-quasar/templates/app/quasar-v2/js-vite-2/lint/_eslint.config.js
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
create-quasar/templates/app/quasar-v2/js-vite-2/prettier/_.prettierrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 100 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
create-quasar/templates/app/quasar-v2/js-webpack-4/BASE/_.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
root = true | ||
|
||
[*] | ||
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
4 changes: 2 additions & 2 deletions
4
create-quasar/templates/app/quasar-v2/js-webpack-4/BASE/_.vscode/extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
create-quasar/templates/app/quasar-v2/js-webpack-4/BASE/_.vscode/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.