Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
Upgrade ESLint to the latest
Browse files Browse the repository at this point in the history
  • Loading branch information
salomvary committed Oct 25, 2019
1 parent 600a7f4 commit b7a5658
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": ["airbnb-base", "prettier"],
"parserOptions": {
"sourceType": "scripts"
"sourceType": "script"
},
"env": {
"browser": true,
Expand Down
2 changes: 1 addition & 1 deletion app/soundcloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function getTrackMetadata() {
ipcMain.once('trackMetadata', (_, trackMetadata) => {
const title = parseTitle(this.window.getTitle())
if (title) {
resolve(Object.assign({}, title, trackMetadata))
resolve({ ...title, ...trackMetadata })
} else {
resolve()
}
Expand Down
5 changes: 3 additions & 2 deletions app/window-open-policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ function onNewWindow(event, url, frameName, disposition, options) {
/* eslint no-param-reassign: off */
delete options.minWidth
delete options.minHeight
options.webPreferences = Object.assign({}, options.webPreferences, {
options.webPreferences = {
...options.webPreferences,
preload: `${__dirname}/preload-popup.js`
})
}
} else {
event.preventDefault()
shell.openExternal(url)
Expand Down
115 changes: 62 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
"electron": "^7.0.0",
"electron-builder": "22.0.0",
"electron-builder-squirrel-windows": "^22.0.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^4.2.0",
"eslint": "^6.5.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.17.2",
"gulp": "^4.0.1",
"gulp-rename": "^1.4.0",
Expand Down

0 comments on commit b7a5658

Please sign in to comment.