diff --git a/packages/js/e2e-utils/.eslintrc.js b/packages/js/e2e-utils/.eslintrc.js index 75d467c88d1d9..fcf93fdd0476c 100644 --- a/packages/js/e2e-utils/.eslintrc.js +++ b/packages/js/e2e-utils/.eslintrc.js @@ -1,4 +1,5 @@ module.exports = { + root: true, parser: '@typescript-eslint/parser', env: { 'jest/globals': true, diff --git a/packages/js/e2e-utils/CHANGELOG.md b/packages/js/e2e-utils/CHANGELOG.md index ba1454ea21299..fe86f80c6c159 100644 --- a/packages/js/e2e-utils/CHANGELOG.md +++ b/packages/js/e2e-utils/CHANGELOG.md @@ -1,5 +1,9 @@ # Unreleased +## Fixed + +- Added the `root: true` flag to `e2e-utils` ESLint config file so that ESLint ignores other ancestor config files when checking that package. This solves a version conflict when running ESLint. + ## Added - `createSimpleDownloadableProduct` component which creates a simple downloadable product, containing four parameters for title, price, download name and download limit. diff --git a/packages/js/e2e-utils/package.json b/packages/js/e2e-utils/package.json index ea70d42e7c39f..2e0d9763070c4 100644 --- a/packages/js/e2e-utils/package.json +++ b/packages/js/e2e-utils/package.json @@ -46,10 +46,5 @@ "build": "pnpm run clean && pnpm run compile", "prepare": "pnpm run build", "lint": "eslint src" - }, - "lint-staged": { - "*.(t|j)s?(x)": [ - "eslint --fix" - ] } }