mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
chore: bump linters and parsers and electron's friends
- prettier and eslint have to be configured - few rules have been switched off - deps bumped in this did not require major changes
This commit is contained in:
parent
192fd9de75
commit
864d07fd1b
@ -3,12 +3,15 @@ module.exports = {
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
extends: ["plugin:vue/essential", "@vue/prettier"],
|
||||
extends: ["plugin:vue/essential"],
|
||||
rules: {
|
||||
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
|
||||
"arrow-body-style": "off",
|
||||
"prefer-arrow-callback": "off",
|
||||
"vue/multi-word-component-names": "off"
|
||||
},
|
||||
parserOptions: {
|
||||
parser: "babel-eslint"
|
||||
parser: "@babel/eslint-parser"
|
||||
}
|
||||
};
|
||||
|
33
package.json
33
package.json
@ -19,6 +19,7 @@
|
||||
"dependencies": {
|
||||
"@popperjs/core": "^2.10.2",
|
||||
"core-js": "^3.19.0",
|
||||
"csvjson-csv2json": "^5.0.6",
|
||||
"electron-store": "^5.1.0",
|
||||
"frappe-charts": "1.6.1",
|
||||
"frappejs": "https://github.com/frappe/frappejs",
|
||||
@ -31,27 +32,29 @@
|
||||
"vue-router": "^3.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "^4.1.0",
|
||||
"@vue/cli-plugin-eslint": "^4.1.0",
|
||||
"@vue/cli-plugin-router": "^4.1.0",
|
||||
"@vue/cli-service": "^4.1.0",
|
||||
"@vue/eslint-config-prettier": "^5.0.0",
|
||||
"@babel/core": "^7.16.0",
|
||||
"@babel/eslint-parser": "^7.16.0",
|
||||
"@vue/cli-plugin-babel": "^4.5.0",
|
||||
"@vue/cli-plugin-eslint": "^5.0.0-beta.7",
|
||||
"@vue/cli-plugin-router": "^4.5.0",
|
||||
"@vue/cli-service": "^4.5.0",
|
||||
"autoprefixer": "^9",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"electron": "^8.0.0",
|
||||
"electron-devtools-installer": "^3.2.0",
|
||||
"electron-notarize": "^0.2.1",
|
||||
"electron-updater": "^4.2.0",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-prettier": "^3.1.1",
|
||||
"eslint-plugin-vue": "^5.0.0",
|
||||
"lint-staged": "^9.4.3",
|
||||
"electron-notarize": "^1.1.1",
|
||||
"electron-updater": "^4.3.9",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-vue": "^8.0.3",
|
||||
"lint-staged": "^11.2.6",
|
||||
"postcss": "^7",
|
||||
"prettier": "^1.19.1",
|
||||
"raw-loader": "^4.0.0",
|
||||
"prettier": "^2.4.1",
|
||||
"raw-loader": "^4.0.2",
|
||||
"tailwindcss": "npm:@tailwindcss/postcss7-compat",
|
||||
"vue-cli-plugin-electron-builder": "^2.0.0",
|
||||
"vue-template-compiler": "^2.6.10"
|
||||
"vue-template-compiler": "^2.6.10",
|
||||
"webpack": "^5.61.0"
|
||||
},
|
||||
"gitHooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
|
@ -5,7 +5,6 @@ import coreModels from 'frappejs/models';
|
||||
import FeatherIcon from 'frappejs/ui/components/FeatherIcon';
|
||||
import outsideClickDirective from 'frappejs/ui/plugins/outsideClickDirective';
|
||||
import models from '../models';
|
||||
import { ipcRenderer } from 'electron';
|
||||
|
||||
// vue imports
|
||||
import Vue from 'vue';
|
||||
@ -13,6 +12,10 @@ import PortalVue from 'portal-vue';
|
||||
import App from './App';
|
||||
import router from './router';
|
||||
|
||||
// other imports
|
||||
import { ipcRenderer } from 'electron';
|
||||
import Store from 'electron-store';
|
||||
|
||||
(async () => {
|
||||
frappe.isServer = true;
|
||||
frappe.isElectron = true;
|
||||
|
Loading…
Reference in New Issue
Block a user