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