Skip to content

Commit 0e8bf1d

Browse files
Updated linting for all files
1 parent eded86a commit 0e8bf1d

File tree

23 files changed

+527
-516
lines changed

23 files changed

+527
-516
lines changed

.eslintrc.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@ module.exports = {
33
root: true,
44

55
parserOptions: {
6-
parser: '@babel/eslint-parser',
7-
sourceType: 'module',
6+
parser: 'babel-eslint',
7+
sourceType: 'module'
88
},
99

1010
env: {
11-
browser: true,
11+
browser: true
1212
},
1313

1414
extends: [
15-
// updated to Airbnb Style guide - Aug 2021
16-
'airbnb-base',
17-
1815
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
1916
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
20-
// 'plugin:vue/essential',
21-
// '@vue/standard'
17+
'plugin:vue/essential',
18+
'@vue/standard'
2219
],
2320

2421
// required to lint *.vue files
@@ -28,7 +25,7 @@ module.exports = {
2825
ga: true, // Google Analytics
2926
cordova: true,
3027
__statics: true,
31-
process: true,
28+
process: true
3229
},
3330

3431
// add your custom rules here
@@ -51,6 +48,6 @@ module.exports = {
5148
// allow console.log during development only
5249
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
5350
// allow debugger during development only
54-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
55-
},
56-
};
51+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
52+
}
53+
}

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"vuex": "^3.1.1"
4949
},
5050
"devDependencies": {
51-
"@babel/eslint-parser": "^7.15.0",
5251
"@quasar/app": "^1.0.0",
5352
"@quasar/quasar-app-extension-testing": "^1.0.0",
5453
"@quasar/quasar-app-extension-testing-unit-jest": "^1.0.0",
@@ -61,9 +60,7 @@
6160
"electron-debug": "^3.0.1",
6261
"electron-devtools-installer": "^2.2.4",
6362
"eslint": "^7.32.0",
64-
"eslint-config-airbnb-base": "^14.2.1",
6563
"eslint-loader": "^2.1.1",
66-
"eslint-plugin-import": "^2.24.0",
6764
"eslint-plugin-vue": "^5.0.0",
6865
"strip-ansi": "^3.0.1",
6966
"vue-cli-plugin-electron-builder": "^1.3.6"

src-electron/main-process/electron-main.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* environment.
66
*/
77

8-
// NOTE Aug 2021 - VUEJS DevTools not loading, need to debug why
8+
// NOTE Aug 2021 - VUEJS DevTools not loading, need to debug why is does not in Dev mode
99

1010
// Install `electron-debug` with `devtron`
1111
require('electron-debug')({ showDevTools: true })

src-pwa/custom-service-worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file (which will be your service worker)
3-
* is picked up by the build system ONLY if
4-
* quasar.conf > pwa > workboxPluginMode is set to "InjectManifest"
2+
This file (which will be your service worker)
3+
is picked up by the build system ONLY if
4+
quasar.conf > pwa > workboxPluginMode is set to "InjectManifest"
55
*/

src/components/dashboard_items/CodeSnippet.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-unused-vars */
12
<!--
23
Description:
34
Located under Component Details in Dashboard
@@ -118,6 +119,7 @@ export default {
118119
// Iterates through active component's HTML elements list and adds to code snippet
119120
let htmlArr = this.componentMap[componentName].htmlList
120121
let outputStr = ``
122+
// eslint-disable-next-line no-unused-vars
121123
for (let el of htmlArr) {
122124
if (!el.text) {
123125
console.log(htmlArr)

src/components/file_system_interface/ExportProject.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* eslint-disable no-unused-vars */
2+
/* eslint-disable no-unused-vars */
3+
/* eslint-disable no-unused-vars */
4+
/* eslint-disable no-unused-vars */
5+
/* eslint-disable no-unused-vars */
6+
/* eslint-disable no-unused-vars */
7+
/* eslint-disable no-unused-vars */
18
/* eslint-disable no-useless-escape */
29
/* eslint-disable no-useless-escape */
310
<!--
@@ -168,6 +175,7 @@ export default {
168175
// iterate through component's htmllist
169176
let htmlArr = this.componentMap[componentName].htmlList
170177
let outputStr = ``
178+
// eslint-disable-next-line no-unused-vars
171179
for (let el of htmlArr) {
172180
if (!el.text) {
173181
outputStr += ` <${el}/>\n`
@@ -440,6 +448,7 @@ export default {
440448
this.createPackage(data)
441449
442450
// exports images to the /assets folder
451+
// eslint-disable-next-line no-unused-vars
443452
for (let [routeImage, imageLocation] of Object.entries(this.imagePath)) {
444453
if (imageLocation !== '') {
445454
this.createAssetFile(path.join(data, 'src', 'assets', routeImage), imageLocation)
@@ -449,6 +458,7 @@ export default {
449458
// main logic below for creating components
450459
this.createRouter(data)
451460
461+
// eslint-disable-next-line no-unused-vars
452462
for (let componentName in this.componentMap) {
453463
// if componentName is a route:
454464
if (componentName !== 'App') {

src/components/file_system_interface/SaveProjectComponent.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable no-unused-vars */
2+
/* eslint-disable no-unused-vars */
13
<!--
24
Description:
35
Displays Save button
@@ -84,6 +86,7 @@ export default {
8486
let state = this.$store.state
8587
let routes = state.routes
8688
// for each route call parseAndDelete on htmlList
89+
// eslint-disable-next-line no-unused-vars
8790
for (let view in routes) {
8891
// console.log('views in Routes', routes[view])
8992
routes[view].forEach(component => {
@@ -92,6 +95,7 @@ export default {
9295
})
9396
}
9497
let componentMap = this.$store.state.componentMap
98+
// eslint-disable-next-line no-unused-vars
9599
for (let component in componentMap) {
96100
if (component.htmlList) {
97101
let comphtml = component.htmlList

src/router/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
/* eslint-disable import/no-named-as-default */
33
/* eslint-disable import/default */
44
/* eslint-disable import/namespace */
5-
import Vue from 'vue';
6-
import VueRouter from 'vue-router';
5+
import Vue from 'vue'
6+
import VueRouter from 'vue-router'
77

8-
import routes from './routes';
8+
import routes from './routes'
99

10-
Vue.use(VueRouter);
10+
Vue.use(VueRouter)
1111

1212
/*
1313
* If not building with SSR mode, you can
1414
* directly export the Router instantiation
1515
*/
1616

17-
export default function routerConstructor(/* { store, ssrContext } */) {
17+
export default function routerConstructor (/* { store, ssrContext } */) {
1818
const Router = new VueRouter({
1919
scrollBehavior: () => ({ x: 0, y: 0 }),
2020
routes,
@@ -23,8 +23,8 @@ export default function routerConstructor(/* { store, ssrContext } */) {
2323
// quasar.conf.js -> build -> vueRouterMode
2424
// quasar.conf.js -> build -> publicPath
2525
mode: process.env.VUE_ROUTER_MODE,
26-
base: process.env.VUE_ROUTER_BASE,
27-
});
26+
base: process.env.VUE_ROUTER_BASE
27+
})
2828

29-
return Router;
29+
return Router
3030
}

0 commit comments

Comments
 (0)