svelte-eslint-parser
Advanced tools
Comparing version 0.41.0 to 0.41.1
export declare const name = "svelte-eslint-parser"; | ||
export declare const version = "0.41.0"; | ||
export declare const version = "0.41.1"; |
@@ -8,2 +8,2 @@ "use strict"; | ||
exports.name = "svelte-eslint-parser"; | ||
exports.version = "0.41.0"; | ||
exports.version = "0.41.1"; |
@@ -41,7 +41,5 @@ "use strict"; | ||
nodes: [], | ||
transparent: true, | ||
}, | ||
start: root.options.start, | ||
end: root.options.end, | ||
parent: null, | ||
}; | ||
@@ -48,0 +46,0 @@ } |
@@ -68,4 +68,2 @@ "use strict"; | ||
end: keyEnd, | ||
metadata: null, | ||
parent: null, | ||
}; | ||
@@ -81,4 +79,2 @@ } | ||
end: keyEnd, | ||
metadata: null, | ||
parent: null, | ||
}; | ||
@@ -94,4 +90,2 @@ } | ||
end: state.index, | ||
metadata: null, | ||
parent: null, | ||
}; | ||
@@ -127,4 +121,2 @@ } | ||
end, | ||
metadata: null, | ||
parent: null, | ||
}; | ||
@@ -142,3 +134,2 @@ } | ||
end: state.index, | ||
parent: null, | ||
}; | ||
@@ -158,3 +149,2 @@ } | ||
end: end - 1, | ||
parent: null, | ||
}; | ||
@@ -179,3 +169,2 @@ } | ||
end, | ||
parent: null, | ||
}; | ||
@@ -182,0 +171,0 @@ } |
@@ -1,113 +0,41 @@ | ||
import type { parse } from "svelte/compiler"; | ||
export type Root = ModernParseReturnType<typeof parse>; | ||
export type Fragment = Root["fragment"]; | ||
export type SvelteOptions = Root["options"]; | ||
export type Script = Root["instance"]; | ||
type FragmentChild = Fragment["nodes"][number]; | ||
export type Text = Extract<FragmentChild, { | ||
type: "Text"; | ||
}>; | ||
export type ExpressionTag = Extract<FragmentChild, { | ||
type: "ExpressionTag"; | ||
}>; | ||
export type HtmlTag = Extract<FragmentChild, { | ||
type: "HtmlTag"; | ||
}>; | ||
export type ConstTag = Extract<FragmentChild, { | ||
type: "ConstTag"; | ||
}>; | ||
export type DebugTag = Extract<FragmentChild, { | ||
type: "DebugTag"; | ||
}>; | ||
export type RenderTag = Extract<FragmentChild, { | ||
type: "RenderTag"; | ||
}>; | ||
export type Component = Extract<FragmentChild, { | ||
type: "Component"; | ||
}>; | ||
export type TitleElement = Extract<FragmentChild, { | ||
type: "TitleElement"; | ||
}>; | ||
export type SlotElement = Extract<FragmentChild, { | ||
type: "SlotElement"; | ||
}>; | ||
export type RegularElement = Extract<FragmentChild, { | ||
type: "RegularElement"; | ||
}>; | ||
export type SvelteBody = Extract<FragmentChild, { | ||
type: "SvelteBody"; | ||
}>; | ||
export type SvelteComponent = Extract<FragmentChild, { | ||
type: "SvelteComponent"; | ||
}>; | ||
export type SvelteDocument = Extract<FragmentChild, { | ||
type: "SvelteDocument"; | ||
}>; | ||
export type SvelteElement = Extract<FragmentChild, { | ||
type: "SvelteElement"; | ||
}>; | ||
export type SvelteFragment = Extract<FragmentChild, { | ||
type: "SvelteFragment"; | ||
}>; | ||
export type SvelteHead = Extract<FragmentChild, { | ||
type: "SvelteHead"; | ||
}>; | ||
export type SvelteOptionsRaw = Extract<FragmentChild, { | ||
type: "SvelteOptions"; | ||
}>; | ||
export type SvelteSelf = Extract<FragmentChild, { | ||
type: "SvelteSelf"; | ||
}>; | ||
export type SvelteWindow = Extract<FragmentChild, { | ||
type: "SvelteWindow"; | ||
}>; | ||
export type IfBlock = Extract<FragmentChild, { | ||
type: "IfBlock"; | ||
}>; | ||
export type EachBlock = Extract<FragmentChild, { | ||
type: "EachBlock"; | ||
}>; | ||
export type AwaitBlock = Extract<FragmentChild, { | ||
type: "AwaitBlock"; | ||
}>; | ||
export type KeyBlock = Extract<FragmentChild, { | ||
type: "KeyBlock"; | ||
}>; | ||
export type SnippetBlock = Extract<FragmentChild, { | ||
type: "SnippetBlock"; | ||
}>; | ||
export type Comment = Extract<FragmentChild, { | ||
type: "Comment"; | ||
}>; | ||
type ComponentAttribute = Component["attributes"][number]; | ||
export type Attribute = Extract<ComponentAttribute, { | ||
type: "Attribute"; | ||
}>; | ||
export type SpreadAttribute = Extract<ComponentAttribute, { | ||
type: "SpreadAttribute"; | ||
}>; | ||
export type AnimateDirective = Extract<ComponentAttribute, { | ||
type: "AnimateDirective"; | ||
}>; | ||
export type BindDirective = Extract<ComponentAttribute, { | ||
type: "BindDirective"; | ||
}>; | ||
export type ClassDirective = Extract<ComponentAttribute, { | ||
type: "ClassDirective"; | ||
}>; | ||
export type LetDirective = Extract<ComponentAttribute, { | ||
type: "LetDirective"; | ||
}>; | ||
export type OnDirective = Extract<ComponentAttribute, { | ||
type: "OnDirective"; | ||
}>; | ||
export type StyleDirective = Extract<ComponentAttribute, { | ||
type: "StyleDirective"; | ||
}>; | ||
export type TransitionDirective = Extract<ComponentAttribute, { | ||
type: "TransitionDirective"; | ||
}>; | ||
export type UseDirective = Extract<ComponentAttribute, { | ||
type: "UseDirective"; | ||
}>; | ||
import type { AST } from "svelte/compiler"; | ||
export type Root = AST.Root; | ||
export type Fragment = AST.Fragment; | ||
export type SvelteOptions = AST.SvelteOptions; | ||
export type Script = AST.Script; | ||
export type Text = AST.Text; | ||
export type ExpressionTag = AST.ExpressionTag; | ||
export type HtmlTag = AST.HtmlTag; | ||
export type ConstTag = AST.ConstTag; | ||
export type DebugTag = AST.DebugTag; | ||
export type RenderTag = AST.RenderTag; | ||
export type Component = AST.Component; | ||
export type TitleElement = AST.TitleElement; | ||
export type SlotElement = AST.SlotElement; | ||
export type RegularElement = AST.RegularElement; | ||
export type SvelteBody = AST.SvelteBody; | ||
export type SvelteComponent = AST.SvelteComponent; | ||
export type SvelteDocument = AST.SvelteDocument; | ||
export type SvelteElement = AST.SvelteElement; | ||
export type SvelteFragment = AST.SvelteFragment; | ||
export type SvelteHead = AST.SvelteHead; | ||
export type SvelteOptionsRaw = AST.SvelteOptionsRaw; | ||
export type SvelteSelf = AST.SvelteSelf; | ||
export type SvelteWindow = AST.SvelteWindow; | ||
export type IfBlock = AST.IfBlock; | ||
export type EachBlock = AST.EachBlock; | ||
export type AwaitBlock = AST.AwaitBlock; | ||
export type KeyBlock = AST.KeyBlock; | ||
export type SnippetBlock = AST.SnippetBlock; | ||
export type Comment = AST.Comment; | ||
export type Attribute = AST.Attribute; | ||
export type SpreadAttribute = AST.SpreadAttribute; | ||
export type AnimateDirective = AST.AnimateDirective; | ||
export type BindDirective = AST.BindDirective; | ||
export type ClassDirective = AST.ClassDirective; | ||
export type LetDirective = AST.LetDirective; | ||
export type OnDirective = AST.OnDirective; | ||
export type StyleDirective = AST.StyleDirective; | ||
export type TransitionDirective = AST.TransitionDirective; | ||
export type UseDirective = AST.UseDirective; | ||
export type Tag = ExpressionTag | HtmlTag | ConstTag | DebugTag | RenderTag; | ||
@@ -117,9 +45,1 @@ export type ElementLike = Component | TitleElement | SlotElement | RegularElement | SvelteBody | SvelteComponent | SvelteDocument | SvelteElement | SvelteFragment | SvelteHead | SvelteOptionsRaw | SvelteSelf | SvelteWindow; | ||
export type Directive = AnimateDirective | BindDirective | ClassDirective | LetDirective | OnDirective | StyleDirective | TransitionDirective | UseDirective; | ||
type ModernParseReturnType<T> = T extends { | ||
(source: string, options: { | ||
filename?: string; | ||
modern: true; | ||
}): infer R; | ||
(...args: any[]): any; | ||
} ? R : any; | ||
export {}; |
"use strict"; | ||
// FIXME Since the node type is not provided by "svelte/compiler", | ||
// we work around this by extracting the type from the parse function. | ||
// See also https://github.com/sveltejs/svelte/issues/12292 | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -55,3 +55,3 @@ "use strict"; | ||
const runes = (_a = compilerOptions.getProperty("runes")) === null || _a === void 0 ? void 0 : _a.getStatic(); | ||
if (runes) { | ||
if ((runes === null || runes === void 0 ? void 0 : runes.value) != null) { | ||
result.compilerOptions.runes = Boolean(runes.value); | ||
@@ -64,3 +64,3 @@ } | ||
const files = (_b = kit.getProperty("files")) === null || _b === void 0 ? void 0 : _b.getStatic(); | ||
if (files) | ||
if ((files === null || files === void 0 ? void 0 : files.value) != null) | ||
result.kit.files = files.value; | ||
@@ -67,0 +67,0 @@ } |
{ | ||
"name": "svelte-eslint-parser", | ||
"version": "0.41.0", | ||
"version": "0.41.1", | ||
"description": "Svelte parser for ESLint", | ||
@@ -45,22 +45,22 @@ "repository": "git+https://github.com/sveltejs/svelte-eslint-parser.git", | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.7", | ||
"@changesets/get-release-plan": "^4.0.3", | ||
"@changesets/cli": "^2.27.8", | ||
"@changesets/get-release-plan": "^4.0.4", | ||
"@ota-meshi/eslint-plugin": "^0.15.3", | ||
"@types/benchmark": "^2.1.5", | ||
"@types/chai": "^4.3.16", | ||
"@types/eslint": "^8.56.10", | ||
"@types/chai": "^4.3.19", | ||
"@types/eslint": "^9.6.1", | ||
"@types/eslint-scope": "^3.7.7", | ||
"@types/eslint-visitor-keys": "^3.3.0", | ||
"@types/estree": "^1.0.5", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^20.14.11", | ||
"@types/mocha": "^10.0.8", | ||
"@types/node": "^20.16.5", | ||
"@types/semver": "^7.5.8", | ||
"@typescript-eslint/eslint-plugin": "^7.16.1", | ||
"@typescript-eslint/parser": "~7.16.1", | ||
"@typescript-eslint/types": "~7.16.1", | ||
"@typescript-eslint/eslint-plugin": "^7.18.0", | ||
"@typescript-eslint/parser": "~7.18.0", | ||
"@typescript-eslint/types": "~7.18.0", | ||
"benchmark": "^2.1.4", | ||
"chai": "^4.4.1", | ||
"chai": "^4.5.0", | ||
"env-cmd": "^10.1.0", | ||
"esbuild": "^0.23.0", | ||
"esbuild-register": "^3.5.0", | ||
"esbuild": "^0.23.1", | ||
"esbuild-register": "^3.6.0", | ||
"eslint": "^8.57.0", | ||
@@ -71,13 +71,13 @@ "eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-jsonc": "^2.16.0", | ||
"eslint-plugin-n": "^17.9.0", | ||
"eslint-plugin-n": "^17.10.2", | ||
"eslint-plugin-node-dependencies": "^0.12.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"eslint-plugin-regexp": "^2.6.0", | ||
"eslint-plugin-svelte": "^2.42.0", | ||
"eslint-plugin-svelte": "^2.43.0", | ||
"eslint-plugin-yml": "^1.14.0", | ||
"estree-walker": "^3.0.3", | ||
"locate-character": "^3.0.0", | ||
"magic-string": "^0.30.10", | ||
"mocha": "^10.6.0", | ||
"mocha-chai-jest-snapshot": "^1.1.4", | ||
"magic-string": "^0.30.11", | ||
"mocha": "^10.7.3", | ||
"mocha-chai-jest-snapshot": "^1.1.6", | ||
"nyc": "^17.0.0", | ||
@@ -89,5 +89,5 @@ "prettier": "~3.3.3", | ||
"semver": "^7.6.3", | ||
"svelte": "^5.0.0-next.191", | ||
"svelte2tsx": "^0.7.13", | ||
"typescript": "~5.5.3", | ||
"svelte": "^5.0.0-next.245", | ||
"svelte2tsx": "^0.7.19", | ||
"typescript": "~5.6.2", | ||
"typescript-eslint-parser-for-extra-files": "^0.7.0" | ||
@@ -94,0 +94,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
345866
370008
8268