Skip to content

Commit

Permalink
Eslint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
proofoftom committed Feb 20, 2020
1 parent 2a39e47 commit c345420
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 68 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ module.exports = {
'__statics': true,
'process': true,
'Capacitor': true,
'chrome': true
'chrome': true,
'module': true,
'require': true
},

// add your custom rules here
Expand Down
6 changes: 2 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
presets: [
'@quasar/babel-preset-app'
]
}
presets: ["@quasar/babel-preset-app"]
};
93 changes: 43 additions & 50 deletions quasar.conf.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
// Configuration for your app
// https://quasar.dev/quasar-cli/quasar-conf-js

module.exports = function (ctx) {
module.exports = function(/*ctx*/) {
return {
// app boot file (/src/boot)
// --> boot files are part of "main.js"
// https://quasar.dev/quasar-cli/cli-documentation/boot-files
boot: [
'axios'
],
boot: ["axios"],

// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
css: [
'app.scss'
],
css: ["app.scss"],

// https://github.com/quasarframework/quasar/tree/dev/extras
extras: [
Expand All @@ -25,14 +21,14 @@ module.exports = function (ctx) {
// 'line-awesome',
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!

'roboto-font', // optional, you are not bound to it
'material-icons' // optional, you are not bound to it
"roboto-font", // optional, you are not bound to it
"material-icons" // optional, you are not bound to it
],

// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
framework: {
iconSet: 'material-icons', // Quasar icon set
lang: 'en-us', // Quasar language pack
iconSet: "material-icons", // Quasar icon set
lang: "en-us", // Quasar language pack

// Possible values for "all":
// * 'auto' - Auto-import needed Quasar components & directives
Expand All @@ -41,7 +37,7 @@ module.exports = function (ctx) {
// (fastest compile time; minimum bundle size; most tedious)
// * true - Import everything from Quasar
// (not treeshaking Quasar; biggest bundle size; convenient)
all: 'auto',
all: "auto",

components: [],
directives: [],
Expand All @@ -56,7 +52,7 @@ module.exports = function (ctx) {
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
build: {
scopeHoisting: true,
vueRouterMode: 'hash', // available values: 'hash', 'history'
vueRouterMode: "hash", // available values: 'hash', 'history'
showProgress: true,
gzip: false,
analyze: false,
Expand All @@ -65,16 +61,16 @@ module.exports = function (ctx) {
// extractCSS: false,

// https://quasar.dev/quasar-cli/cli-documentation/handling-webpack
extendWebpack (cfg) {
extendWebpack(cfg) {
cfg.module.rules.push({
enforce: 'pre',
enforce: "pre",
test: /\.(js|vue)$/,
loader: 'eslint-loader',
loader: "eslint-loader",
exclude: /node_modules/,
options: {
formatter: require('eslint').CLIEngine.getFormatter('stylish')
formatter: require("eslint").CLIEngine.getFormatter("stylish")
}
})
});
}
},

Expand All @@ -96,41 +92,41 @@ module.exports = function (ctx) {

// https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa
pwa: {
workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
workboxPluginMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
workboxOptions: {}, // only for GenerateSW
manifest: {
name: 'Cl(ea)r.fund Web',
short_name: 'Cl(ea)r.fund Web',
description: 'A front end for clr.fund',
display: 'standalone',
orientation: 'portrait',
background_color: '#ffffff',
theme_color: '#027be3',
name: "Cl(ea)r.fund Web",
short_name: "Cl(ea)r.fund Web",
description: "A front end for clr.fund",
display: "standalone",
orientation: "portrait",
background_color: "#ffffff",
theme_color: "#027be3",
icons: [
{
'src': 'statics/icons/icon-128x128.png',
'sizes': '128x128',
'type': 'image/png'
src: "statics/icons/icon-128x128.png",
sizes: "128x128",
type: "image/png"
},
{
'src': 'statics/icons/icon-192x192.png',
'sizes': '192x192',
'type': 'image/png'
src: "statics/icons/icon-192x192.png",
sizes: "192x192",
type: "image/png"
},
{
'src': 'statics/icons/icon-256x256.png',
'sizes': '256x256',
'type': 'image/png'
src: "statics/icons/icon-256x256.png",
sizes: "256x256",
type: "image/png"
},
{
'src': 'statics/icons/icon-384x384.png',
'sizes': '384x384',
'type': 'image/png'
src: "statics/icons/icon-384x384.png",
sizes: "384x384",
type: "image/png"
},
{
'src': 'statics/icons/icon-512x512.png',
'sizes': '512x512',
'type': 'image/png'
src: "statics/icons/icon-512x512.png",
sizes: "512x512",
type: "image/png"
}
]
}
Expand All @@ -139,45 +135,42 @@ module.exports = function (ctx) {
// Full list of options: https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
cordova: {
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
id: 'fund.clr.app'
id: "fund.clr.app"
},


// Full list of options: https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
capacitor: {
hideSplashscreen: true
},

// Full list of options: https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
electron: {
bundler: 'packager', // 'packager' or 'builder'
bundler: "packager", // 'packager' or 'builder'

packager: {
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options

// OS X / Mac App Store
// appBundleId: '',
// appCategoryType: '',
// osxSign: '',
// protocol: 'myapp://path',

// Windows only
// win32metadata: { ... }
},

builder: {
// https://www.electron.build/configuration/configuration

appId: 'web'
appId: "web"
},

// More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration
nodeIntegration: true,

extendWebpack (cfg) {
extendWebpack(/*cfg*/) {
// do something with Electron main process Webpack cfg
// chainWebpack also available besides this extendWebpack
}
}
}
}
};
};
3 changes: 1 addition & 2 deletions src/store/module-example/actions.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export function someAction (/* context */) {
}
export function someAction(/* context */) {}
3 changes: 1 addition & 2 deletions src/store/module-example/getters.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export function someGetter (/* state */) {
}
export function someGetter(/* state */) {}
10 changes: 5 additions & 5 deletions src/store/module-example/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import state from './state'
import * as getters from './getters'
import * as mutations from './mutations'
import * as actions from './actions'
import state from "./state";
import * as getters from "./getters";
import * as mutations from "./mutations";
import * as actions from "./actions";

export default {
namespaced: true,
getters,
mutations,
actions,
state
}
};
3 changes: 1 addition & 2 deletions src/store/module-example/mutations.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export function someMutation (/* state */) {
}
export function someMutation(/* state */) {}
4 changes: 2 additions & 2 deletions src/store/module-example/state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function () {
export default function() {
return {
//
}
};
}

0 comments on commit c345420

Please sign in to comment.