-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support typescript-eslint@8 (#418)
* feat: support typescript-eslint@8 * Create late-dancers-guess.md --------- Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
- Loading branch information
1 parent
4d771f7
commit b03d0d5
Showing
22 changed files
with
83 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"eslint-plugin-astro": patch | ||
--- | ||
|
||
feat: support typescript-eslint@8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ describe("`recommended` config", () => { | |
astro: plugin as never, | ||
}, | ||
baseConfig: { | ||
// @ts-expect-error -- typing bug | ||
Check failure on line 22 in tests/src/config/recommended.ts GitHub Actions / test-for-eslint-v8
|
||
parserOptions: { | ||
ecmaVersion: 2020, | ||
}, | ||
|
@@ -46,9 +47,7 @@ describe("`recommended` config", () => { | |
}) | ||
it("`flat/recommended` config should work. ", async () => { | ||
const linter = new FlatESLint({ | ||
// @ts-expect-error -- typing bug | ||
overrideConfigFile: true, | ||
// @ts-expect-error -- typing bug | ||
overrideConfig: [...plugin.configs["flat/recommended"]], | ||
}) | ||
const result = await linter.lintText(code, { filePath: "test.astro" }) | ||
|
@@ -71,9 +70,7 @@ describe("`recommended` config", () => { | |
}) | ||
it("`flat/recommended` config with *.js should work. ", async () => { | ||
const linter = new FlatESLint({ | ||
// @ts-expect-error -- typing bug | ||
overrideConfigFile: true, | ||
// @ts-expect-error -- typing bug | ||
overrideConfig: [...plugin.configs["flat/recommended"]], | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ describe("Integration test for client-side script", () => { | |
}, | ||
useEslintrc: false, | ||
overrideConfig: { | ||
// @ts-expect-error -- typing bug | ||
Check failure on line 31 in tests/src/integration/client-javascript.ts GitHub Actions / test-for-eslint-v8
|
||
extends: ["plugin:astro/base"], | ||
rules: { | ||
"no-restricted-syntax": ["error", "Identifier[name='id']"], | ||
|
@@ -36,7 +37,6 @@ describe("Integration test for client-side script", () => { | |
}) | ||
: new ESLint({ | ||
overrideConfigFile: true as any, | ||
// @ts-expect-error -- typing bug | ||
overrideConfig: [ | ||
...astroPlugin.configs["flat/base"], | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ describe("Integration test for client-side ts", () => { | |
}, | ||
useEslintrc: false, | ||
overrideConfig: { | ||
// @ts-expect-error -- typing bug | ||
Check failure on line 32 in tests/src/integration/client-typescript.ts GitHub Actions / test-for-eslint-v8
|
||
extends: ["plugin:astro/base"], | ||
parser: "@typescript-eslint/parser", | ||
rules: { | ||
|
@@ -49,11 +50,12 @@ describe("Integration test for client-side ts", () => { | |
}) | ||
: new ESLint({ | ||
overrideConfigFile: true as any, | ||
// @ts-expect-error -- typing bug | ||
overrideConfig: [ | ||
Check failure on line 53 in tests/src/integration/client-typescript.ts GitHub Actions / test-for-eslint-v8
|
||
// @ts-expect-error -- typing bug | ||
Check failure on line 54 in tests/src/integration/client-typescript.ts GitHub Actions / test-for-eslint-v8
|
||
...astroPlugin.configs["flat/base"], | ||
{ | ||
files: ["*.ts", "**/*.ts"], | ||
// @ts-expect-error -- typing bug | ||
languageOptions: { | ||
parser: tsESLintParser, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.