Skip to content

Commit

Permalink
chore: upgrade eslint node config
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed Sep 16, 2023
1 parent 50c95e1 commit 2d5da46
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 100 deletions.
155 changes: 61 additions & 94 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@vercel/webpack-asset-relocator-loader": "^1.7.3",
"@will-stone/eslint-config-base": "^7.1.2",
"@will-stone/eslint-config-jest": "^3.0.1",
"@will-stone/eslint-config-node": "^2.0.1",
"@will-stone/eslint-config-node": "^2.0.2",
"@will-stone/eslint-config-prettier": "^3.0.1",
"@will-stone/eslint-config-react": "^3.0.2",
"@will-stone/eslint-config-typescript": "^8.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/main/state/middleware.action-hub.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable node/callback-return -- must flush middleware to get nextState */
/* eslint-disable n/callback-return -- must flush middleware to get nextState */
/* eslint-disable unicorn/prefer-regexp-test -- rtk uses .match */
import { app, autoUpdater, shell } from 'electron'
import deepEqual from 'fast-deep-equal'
Expand Down
2 changes: 1 addition & 1 deletion src/main/state/middleware.bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const busMiddleware = (): Middleware => () => (next) => (action) => {
/**
* Move to next middleware
*/
// eslint-disable-next-line node/callback-return -- must flush to get nextState
// eslint-disable-next-line n/callback-return -- must flush to get nextState
const result = next(action)

// Send actions from main to all renderers
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/picker/state/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const pickerMiddleware =
({ dispatch }) =>
(next) =>
(action) => {
// eslint-disable-next-line node/callback-return -- Move to next middleware
// eslint-disable-next-line n/callback-return -- Move to next middleware
const result = next(action)

const doesActionOpenPicker =
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/prefs/state/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const prefsMiddleware =
({ dispatch }) =>
(next) =>
(action) => {
// eslint-disable-next-line node/callback-return -- Move to next middleware
// eslint-disable-next-line n/callback-return -- Move to next middleware
const result = next(action)

if (clickedOpenPrefs.match(action)) {
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/state/middleware.bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const busMiddleware =
/**
* Move to next middleware
*/
// eslint-disable-next-line node/callback-return -- must flush to get nextState
// eslint-disable-next-line n/callback-return -- must flush to get nextState
const result = next(action)

// Only send actions from this channel to prevent an infinite loop.
Expand Down

0 comments on commit 2d5da46

Please sign in to comment.