-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: use typescript-eslint@v6's reworked configs #7425
Changes from all commits
e321967
a04a084
5b0a6fb
4cc2d0e
cf41c34
f92766f
74844d2
d00bd00
2a112e0
c39bd43
d92c4bc
c5330c3
aab0759
b712a2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
**/*.d.ts | ||
packages/**/*.min.js | ||
packages/**/dist/**/* | ||
packages/**/fixtures/**/* | ||
packages/webapi/**/* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
"test:e2e": "cd packages/astro && pnpm playwright install && pnpm run test:e2e", | ||
"test:e2e:match": "cd packages/astro && pnpm playwright install && pnpm run test:e2e:match", | ||
"benchmark": "astro-benchmark", | ||
"lint": "eslint --cache .", | ||
"lint": "eslint . --report-unused-disable-directives", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not strictly necessary, but I've found this to be a nice cleanup. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'd want to still keep the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ehh I've found the cache to be ... unreliable when working with type checking. Theoretically a file's lint result could be impacted by a couple of other factors -other files it imports types from, TSConfig settings- so caching becomes difficult. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I won't deny that I've seen |
||
"version": "changeset version && node ./scripts/deps/update-example-versions.js && pnpm install --no-frozen-lockfile && pnpm run format", | ||
"preinstall": "npx only-allow pnpm" | ||
}, | ||
|
@@ -78,8 +78,8 @@ | |
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.26.1", | ||
"@types/node": "^18.16.18", | ||
"@typescript-eslint/eslint-plugin": "^5.60.0", | ||
"@typescript-eslint/parser": "^5.60.0", | ||
"@typescript-eslint/eslint-plugin": "6.0.0-alpha.158", | ||
"@typescript-eslint/parser": "6.0.0-alpha.158", | ||
"esbuild": "^0.17.19", | ||
"eslint": "^8.43.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
import { | ||
AstroCheck, | ||
DiagnosticSeverity, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder, since this is a breaking change, should we try to move to use the new eslint configuration format? https://eslint.org/docs/latest/use/configure/configuration-files-new