From bf3367b41dc6480f266776e8712c98b2b1778bb6 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Wed, 28 Apr 2021 12:11:39 +0200 Subject: [PATCH] build: minor changes to build and dependencies --- .eslintrc | 44 +++++++++++++++++++++++-------------- .github/workflows/build.yml | 4 ++-- package.json | 2 +- 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/.eslintrc b/.eslintrc index 3ca19365..53e07d3c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,22 +9,25 @@ "plugin:vue/recommended" ], "parserOptions": { - "parser": "babel-eslint", + "parser": "@babel/eslint-parser", "ecmaVersion": 9, - "sourceType": "module" + "sourceType": "module", + "requireConfigFile": false }, "rules": { "indent": [ "error", 3, - { "SwitchCase": 1 } + { + "SwitchCase": 1 + } ], "linebreak-style": [ "error", "unix" ], "brace-style": [ - "error", + "error", "stroustrup" ], "quotes": [ @@ -36,7 +39,7 @@ "always" ], "curly": [ - "error", + "error", "multi-or-nest" ], "no-console": "off", @@ -44,18 +47,25 @@ "vue/no-side-effects-in-computed-properties": "off", "vue/require-default-prop": "off", "vue/no-v-html": "off", - "vue/html-indent": ["error", 3, { - "attribute": 1, - "baseIndent": 1, - "closeBracket": 0, - "ignores": [] - }], - "vue/max-attributes-per-line": ["error", { - "singleline": 2, - "multiline": { - "max": 1, - "allowFirstLine": false + "vue/html-indent": [ + "error", + 3, + { + "attribute": 1, + "baseIndent": 1, + "closeBracket": 0, + "ignores": [] } - }] + ], + "vue/max-attributes-per-line": [ + "error", + { + "singleline": 2, + "multiline": { + "max": 1, + "allowFirstLine": false + } + } + ] } } \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b823318..fddb67bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,10 +17,10 @@ jobs: - name: Install Node.js, NPM and Yarn uses: actions/setup-node@v1 with: - node-version: 10 + node-version: 12 - name: Build/release Electron app uses: samuelmeuli/action-electron-builder@v1 with: github_token: ${{ secrets.github_token }} - release: ${{ startsWith(github.ref, 'refs/tags/v') }} \ No newline at end of file + release: ${{ startsWith(github.ref, 'refs/tags/v') }} diff --git a/package.json b/package.json index eeb0d8ba..c8d1192a 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "vuex": "^3.6.0" }, "devDependencies": { - "babel-eslint": "^10.1.0", + "@babel/eslint-parser": "^7.13.14", "cross-env": "^7.0.2", "electron": "^12.0.5", "electron-builder": "^22.9.1",