eslint-plugin-svelte
Advanced tools
@@ -17,3 +17,3 @@ import './rule-types.js'; | ||
name: "eslint-plugin-svelte"; | ||
version: "3.3.2"; | ||
version: "3.3.3"; | ||
}; | ||
@@ -20,0 +20,0 @@ export declare const processors: { |
export declare const name = "eslint-plugin-svelte"; | ||
export declare const version = "3.3.2"; | ||
export declare const version = "3.3.3"; |
@@ -5,2 +5,2 @@ // IMPORTANT! | ||
export const name = 'eslint-plugin-svelte'; | ||
export const version = '3.3.2'; | ||
export const version = '3.3.3'; |
@@ -306,6 +306,14 @@ import { createRule } from '../utils/index.js'; | ||
return; | ||
const identifiers = node.id.properties | ||
.filter((p) => p.type === 'Property') | ||
.map((p) => p.value) | ||
.filter((v) => v.type === 'Identifier'); | ||
const identifiers = []; | ||
for (const p of node.id.properties) { | ||
if (p.type !== 'Property') { | ||
continue; | ||
} | ||
if (p.value.type === 'Identifier') { | ||
identifiers.push(p.value); | ||
} | ||
else if (p.value.type === 'AssignmentPattern' && p.value.left.type === 'Identifier') { | ||
identifiers.push(p.value.left); | ||
} | ||
} | ||
for (const identifier of identifiers) { | ||
@@ -312,0 +320,0 @@ const paths = getUsedNestedPropertyNames(identifier); |
{ | ||
"name": "eslint-plugin-svelte", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"description": "ESLint plugin for Svelte using AST", | ||
@@ -5,0 +5,0 @@ "repository": "git+https://github.com/sveltejs/eslint-plugin-svelte.git", |
759490
0.05%17701
0.05%