diff --git a/test/bundles/.eslintrc.cjs b/test/bundles/eslint.config.mjs similarity index 69% rename from test/bundles/.eslintrc.cjs rename to test/bundles/eslint.config.mjs index 22655b42f4..013a3585c2 100644 --- a/test/bundles/.eslintrc.cjs +++ b/test/bundles/eslint.config.mjs @@ -13,7 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +import playwright from 'eslint-plugin-playwright'; -module.exports = { - extends: ['plugin:playwright/jest-playwright'], -}; +export default [ + { + ...playwright.configs['flat/recommended'], + rules: { + ...playwright.configs['flat/recommended'].rules, + // Customize Playwright rules + // ... + }, + }, +]; diff --git a/test/e2e/.eslintrc.cjs b/test/e2e/eslint.config.mjs similarity index 69% rename from test/e2e/.eslintrc.cjs rename to test/e2e/eslint.config.mjs index 22655b42f4..013a3585c2 100644 --- a/test/e2e/.eslintrc.cjs +++ b/test/e2e/eslint.config.mjs @@ -13,7 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +import playwright from 'eslint-plugin-playwright'; -module.exports = { - extends: ['plugin:playwright/jest-playwright'], -}; +export default [ + { + ...playwright.configs['flat/recommended'], + rules: { + ...playwright.configs['flat/recommended'].rules, + // Customize Playwright rules + // ... + }, + }, +]; diff --git a/test/performance/.eslintrc.cjs b/test/performance/eslint.config.mjs similarity index 69% rename from test/performance/.eslintrc.cjs rename to test/performance/eslint.config.mjs index 22655b42f4..013a3585c2 100644 --- a/test/performance/.eslintrc.cjs +++ b/test/performance/eslint.config.mjs @@ -13,7 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +import playwright from 'eslint-plugin-playwright'; -module.exports = { - extends: ['plugin:playwright/jest-playwright'], -}; +export default [ + { + ...playwright.configs['flat/recommended'], + rules: { + ...playwright.configs['flat/recommended'].rules, + // Customize Playwright rules + // ... + }, + }, +];