Updated eslint configuration
This commit is contained in:
parent
25e8ed8a06
commit
01a9747339
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
},
|
||||
rules: {
|
||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
module.exports = {
|
||||
singleQuote: true,
|
||||
printWidth: 120,
|
||||
tabWidth: 4,
|
||||
endOfLine: "auto",
|
||||
};
|
|
@ -1,16 +1,9 @@
|
|||
{
|
||||
"eslint.validate": [
|
||||
"javascript",
|
||||
"typescript",
|
||||
"vue",
|
||||
"html",
|
||||
"scss",
|
||||
"json",
|
||||
],
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true,
|
||||
},
|
||||
"editor.bracketPairColorization.enabled": true,
|
||||
"editor.guides.bracketPairs": true,
|
||||
"files.eol": "\n",
|
||||
"editor.tabSize": 4,
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
module.exports = {
|
||||
presets: ["@vue/cli-plugin-babel/preset"],
|
||||
presets: ['@vue/cli-plugin-babel/preset'],
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module.exports = {
|
||||
preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel",
|
||||
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
|
||||
transform: {
|
||||
"^.+\\.vue$": "vue-jest",
|
||||
'^.+\\.vue$': 'vue-jest',
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,17 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<title>
|
||||
<%= htmlWebpackPlugin.options.title %>
|
||||
</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
||||
Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
18
src/main.ts
18
src/main.ts
|
@ -1,12 +1,8 @@
|
|||
import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
import { Quasar } from "quasar";
|
||||
import quasarUserOptions from "./quasar-user-options";
|
||||
import { createApp } from 'vue';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import { Quasar } from 'quasar';
|
||||
import quasarUserOptions from './quasar-user-options';
|
||||
|
||||
createApp(App)
|
||||
.use(Quasar, quasarUserOptions)
|
||||
.use(store)
|
||||
.use(router)
|
||||
.mount("#app");
|
||||
createApp(App).use(Quasar, quasarUserOptions).use(store).use(router).mount('#app');
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import "./styles/quasar.scss";
|
||||
import lang from "quasar/lang/es.js";
|
||||
import "@quasar/extras/roboto-font/roboto-font.css";
|
||||
import "@quasar/extras/material-icons/material-icons.css";
|
||||
import './styles/quasar.scss';
|
||||
import lang from 'quasar/lang/es.js';
|
||||
import '@quasar/extras/roboto-font/roboto-font.css';
|
||||
import '@quasar/extras/material-icons/material-icons.css';
|
||||
|
||||
// To be used on app.use(Quasar, { ... })
|
||||
export default {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { createStore } from "vuex";
|
||||
import { createStore } from 'vuex';
|
||||
|
||||
export default createStore({
|
||||
state: {},
|
||||
|
|
|
@ -1,9 +1,16 @@
|
|||
module.exports = {
|
||||
pluginOptions: {
|
||||
quasar: {
|
||||
importStrategy: "kebab",
|
||||
importStrategy: 'kebab',
|
||||
rtlSupport: false,
|
||||
},
|
||||
},
|
||||
transpileDependencies: ["quasar"],
|
||||
css: {
|
||||
loaderOptions: {
|
||||
sass: {
|
||||
additionalData: `@import "@/styles/quasar.variables.scss";`,
|
||||
},
|
||||
},
|
||||
},
|
||||
transpileDependencies: ['quasar'],
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue