From a6b19c012c8d79538ab1843d76eb11b2574bd637 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 30 Nov 2024 08:31:26 +0900 Subject: [PATCH] fix: crash with eslint v9.16.0 in `svelte/no-inner-declarations` --- package.json | 2 +- .../eslint-plugin-svelte/src/rules/no-inner-declarations.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aa42ba685..2a5246e90 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "env-cmd": "^10.1.0", - "eslint": "^9.12.0", + "eslint": "^9.16.0", "eslint-config-prettier": "^9.1.0", "eslint-formatter-friendly": "^7.0.0", "eslint-plugin-eslint-plugin": "^6.2.0", diff --git a/packages/eslint-plugin-svelte/src/rules/no-inner-declarations.ts b/packages/eslint-plugin-svelte/src/rules/no-inner-declarations.ts index 568b3faf3..42e5d469a 100644 --- a/packages/eslint-plugin-svelte/src/rules/no-inner-declarations.ts +++ b/packages/eslint-plugin-svelte/src/rules/no-inner-declarations.ts @@ -10,6 +10,7 @@ const coreRule = getCoreRule('no-inner-declarations'); export default createRule('no-inner-declarations', { meta: { + ...coreRule.meta, docs: { description: 'disallow variable or `function` declarations in nested blocks', category: 'Extension Rules',