Skip to content

Commit

Permalink
Merge pull request #148 from foretagsplatsen/dependabot/npm_and_yarn/…
Browse files Browse the repository at this point in the history
…foretagsplatsen/eslint-plugin-6.0.0

15549487: Bump @foretagsplatsen/eslint-plugin from 5.0.0 to 6.0.0
  • Loading branch information
DamienCassou authored Feb 12, 2024
2 parents f061661 + e66a797 commit 25a99be
Show file tree
Hide file tree
Showing 5 changed files with 382 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
module.exports = {
root: true,
extends: ["plugin:@foretagsplatsen/main"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2022,
},
env: {
es6: true,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "jasmine --config=jasmine.json"
},
"devDependencies": {
"@foretagsplatsen/eslint-plugin": "^5.0.0",
"@foretagsplatsen/eslint-plugin": "^6.0.0",
"electron": "^28.2.2",
"eslint": "^8.56.0",
"jasmine": "^5.1.0"
Expand Down
4 changes: 2 additions & 2 deletions src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ export default function event(spec, my) {
*/
function bindCallback(callback) {
// eslint-disable-next-line no-shadow -- we should fix that later
let binding = bindings.filter((binding) =>
let binding = bindings.find((binding) =>
binding.isForCallback(callback),
)[0];
);

// Don't register the same callback twice:
if (binding) {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const path = require("path");
const path = require("node:path");

let config = {
entry: "./index.js",
Expand Down
Loading

0 comments on commit 25a99be

Please sign in to comment.