Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix ESLint E2Es failing since v9 release #6444

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update e2e-eslint-workflow.yml
  • Loading branch information
arcanis authored Sep 13, 2024
commit 78a09aedb9746de260fcd8f013558b49a94fcb79
16 changes: 9 additions & 7 deletions .github/workflows/e2e-eslint-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ jobs:
yarn init -p
yarn add eslint typescript typescript-eslint

echo "import tseslint from 'typescript-eslint';\n
export default tseslint.config({
files: ['**/*.ts'],
plugins: { '@typescript-eslint': tseslint.plugin },
languageOptions: { parser: tseslint.parser },
rules: { '@typescript-eslint/explicit-function-return-type': 'error' }
});" > eslint.config.mjs
cat > eslint.config.mjs <<EOF
import tseslint from 'typescript-eslint';\n
export default tseslint.config({
files: ['**/*.ts'],
plugins: { '@typescript-eslint': tseslint.plugin },
languageOptions: { parser: tseslint.parser },
rules: { '@typescript-eslint/explicit-function-return-type': 'error' }
});
EOF

echo 'const f = (): number => 42;' | tee ok.ts
yarn eslint ok.ts
Expand Down
Loading