Skip to content

Commit f11a2d5

Browse files
chore(deps): update dependency eslint to v10 (#253)
* chore(deps): update dependency eslint to v10 * fix * fix * fix type * Create swift-ligers-rush.md * fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: yosuke ota <otameshiyo23@gmail.com>
1 parent 6f41a21 commit f11a2d5

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed

.changeset/swift-ligers-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-markdown-preferences": patch
3+
---
4+
5+
fix: improved type compatibility with ESLint v10

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export default defineConfig([
339339
"docs/.vitepress/build-system/shim/",
340340
"docs/.vitepress/dist/",
341341
".changeset/",
342-
"playground/src/example.md",
342+
"playground/**/*.*",
343343
],
344344
},
345345
]);

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"build": "npm run build:meta && npm run build:tsdown",
2020
"build:meta": "npm run ts -- ./tools/update-meta.ts",
2121
"build:tsdown": "tsdown",
22-
"lint": "eslint .",
22+
"lint": "eslint . --config=./eslint.config.mjs --no-config-lookup",
2323
"tsc": "tsc --project tsconfig.build.json",
24-
"eslint-fix": "eslint . --fix",
24+
"eslint-fix": "eslint . --fix --config=./eslint.config.mjs --no-config-lookup",
2525
"markdownlint": "npx -y markdownlint-cli2 .",
2626
"test": "npm run mocha -- \"tests/src/**/*.ts\" --reporter=dot --timeout=60000",
2727
"test:debug": "node --experimental-strip-types --experimental-transform-types ./node_modules/mocha/bin/mocha.js \"tests/src/**/*.ts\" --reporter=dot --timeout=60000",
@@ -81,7 +81,7 @@
8181
"@changesets/cli": "^2.28.1",
8282
"@changesets/get-release-plan": "^4.0.8",
8383
"@eslint/core": "^1.0.0",
84-
"@eslint/markdown": "^7.4.0",
84+
"@eslint/markdown": "^7.5.1",
8585
"@ota-meshi/eslint-plugin": "^0.20.0",
8686
"@shikijs/vitepress-twoslash": "^4.0.0",
8787
"@types/eslint": "^9.6.1",
@@ -96,7 +96,7 @@
9696
"assert": "^2.1.0",
9797
"c8": "^11.0.0",
9898
"env-cmd": "^11.0.0",
99-
"eslint": "^9.34.0",
99+
"eslint": "^10.0.0",
100100
"eslint-compat-utils": "^0.6.4",
101101
"eslint-config-prettier": "^10.1.1",
102102
"eslint-plugin-eslint-comments": "^3.2.0",

src/configs/recommended.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const languageOptions = {
1111
frontmatter: "yaml",
1212
};
1313
export const plugins = {
14-
markdown,
14+
markdown: markdown as ESLint.Plugin,
1515
// eslint-disable-next-line @typescript-eslint/naming-convention -- ignore
1616
get "markdown-preferences"(): ESLint.Plugin {
1717
return plugin;

src/configs/standard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const languageOptions = {
1111
frontmatter: "yaml",
1212
};
1313
export const plugins = {
14-
markdown,
14+
markdown: markdown as ESLint.Plugin,
1515
// eslint-disable-next-line @typescript-eslint/naming-convention -- ignore
1616
get "markdown-preferences"(): ESLint.Plugin {
1717
return plugin;

tests/src/rules/padding-line-between-blocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe("requiresBlankLineBetween", () => {
128128
const tester = new SnapshotRuleTester({
129129
plugins: {
130130
"markdown-preferences": plugin,
131-
markdown: eslintMarkdown,
131+
markdown: eslintMarkdown as never,
132132
},
133133
language: "markdown-preferences/extended-syntax",
134134
languageOptions: {

tools/update-rulesets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const languageOptions = {
2626
frontmatter: "yaml",
2727
};
2828
export const plugins = {
29-
markdown,
29+
markdown: markdown as ESLint.Plugin,
3030
// eslint-disable-next-line @typescript-eslint/naming-convention -- ignore
3131
get "markdown-preferences"(): ESLint.Plugin {
3232
return plugin;

0 commit comments

Comments
 (0)