Skip to content

Commit a54e9a2

Browse files
authored
fix: typo in eslint config
1 parent 560b024 commit a54e9a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ If not already, the project should be updated to yarn v4 instead of yarn v1. yar
178178
1. Make sure that you are ready to do a semver major bump, with a new minimum nodejs version of v20.
179179
1. Update your package.json engines to require node 20
180180
1. Install the updated `@sofie-automation/code-standard-preset` package
181-
1. Install tools that used to be included by the preset package: `yarn add eslint husky lint-staged prettier`, any you do not need can be omitted.
181+
1. Install tools that used to be included by the preset package: `yarn add --dev eslint husky lint-staged prettier`, any you do not need can be omitted.
182182
1. Check the package.json scripts;
183183
- Change `husky install` to `husky`
184184
- Change the `lint:raw` to simply `eslint`

eslint/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function compactObj(obj) {
2828
export async function generateEslintConfig(options) {
2929
// Conditionally load the testRunner plugin
3030
const jestPlugin =
31-
options.testRunner === undefined && options.testRunner === 'jest'
31+
options.testRunner === undefined || options.testRunner === 'jest'
3232
? (await import('eslint-plugin-jest')).default
3333
: null
3434
const vitestPlugin = options.testRunner === 'vitest' ? (await import('@vitest/eslint-plugin')).default : null

0 commit comments

Comments
 (0)