diff --git a/.github/workflows/e2e-eslint-workflow.yml b/.github/workflows/e2e-eslint-workflow.yml index a4acb25101e0..e536e3011be2 100644 --- a/.github/workflows/e2e-eslint-workflow.yml +++ b/.github/workflows/e2e-eslint-workflow.yml @@ -28,7 +28,7 @@ jobs: yarn init -p yarn add eslint - echo '{"rules": {"semi": ["error", "always"]}}' > .eslintrc + echo 'export default {"rules": {"semi": ["error", "always"]}}' > eslint.config.mjs echo '42;' | tee ok.js yarn eslint ok.js @@ -41,9 +41,17 @@ jobs: source scripts/e2e-setup-ci.sh yarn init -p - yarn add eslint typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin - - echo '{"parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"], "rules": {"@typescript-eslint/explicit-function-return-type": "error"}}' > .eslintrc + yarn add eslint typescript typescript-eslint + + cat > eslint.config.mjs < 42;' | tee ok.ts yarn eslint ok.ts