astro-eslint-parser 0.13.3 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,370 @@
1
+ import * as eslint from 'eslint';
2
+ import { TSESTree } from '@typescript-eslint/types';
3
+ import { ScopeManager } from '@typescript-eslint/scope-manager';
4
+ import { ParseResult } from '@astrojs/compiler';
5
+ import { Node, AttributeNode, ParentNode } from '@astrojs/compiler/types';
6
+ import { VisitorKeys as VisitorKeys$1 } from '@typescript-eslint/visitor-keys';
7
+
8
+ type RangeAndLoc = {
9
+ range: TSESTree.Range;
10
+ loc: TSESTree.SourceLocation;
11
+ };
12
+ declare class Context {
13
+ readonly code: string;
14
+ readonly filePath?: string;
15
+ readonly locs: LinesAndColumns;
16
+ private readonly locsMap;
17
+ private readonly state;
18
+ constructor(code: string, filePath?: string);
19
+ getLocFromIndex(index: number): {
20
+ line: number;
21
+ column: number;
22
+ };
23
+ getIndexFromLoc(loc: {
24
+ line: number;
25
+ column: number;
26
+ }): number;
27
+ /**
28
+ * Get the location information of the given indexes.
29
+ */
30
+ getLocations(start: number, end: number): RangeAndLoc;
31
+ /**
32
+ * Build token
33
+ */
34
+ buildToken(type: TSESTree.Token["type"], range: TSESTree.Range): TSESTree.Token;
35
+ /**
36
+ * get text
37
+ */
38
+ getText(range: TSESTree.Range): string;
39
+ get originalAST(): any;
40
+ set originalAST(originalAST: any);
41
+ }
42
+ declare class LinesAndColumns {
43
+ private readonly lineStartIndices;
44
+ private readonly code;
45
+ private readonly normalizedLineFeed;
46
+ constructor(origCode: string);
47
+ getLocFromIndex(index: number): {
48
+ line: number;
49
+ column: number;
50
+ };
51
+ getIndexFromLoc(loc: {
52
+ line: number;
53
+ column: number;
54
+ }): number;
55
+ getNormalizedLineFeed(): NormalizedLineFeed;
56
+ }
57
+ declare class NormalizedLineFeed {
58
+ readonly code: string;
59
+ private readonly offsets;
60
+ get needRemap(): boolean;
61
+ /**
62
+ * Remap index
63
+ */
64
+ readonly remapIndex: (index: number) => number;
65
+ constructor(code: string, offsets: number[]);
66
+ }
67
+
68
+ interface BaseNode {
69
+ loc: TSESTree.SourceLocation;
70
+ range: TSESTree.Range;
71
+ type: string;
72
+ }
73
+
74
+ type JSXNode = JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText;
75
+ type JSXChild = JSXElement | JSXFragment | JSXExpression | JSXText | AstroHTMLComment | AstroRawText;
76
+ type JSXParentNode = JSXElement | JSXFragment | AstroFragment;
77
+ interface JSXElement extends BaseNode {
78
+ type: "JSXElement";
79
+ openingElement: JSXOpeningElement;
80
+ closingElement: JSXClosingElement | null;
81
+ children: JSXChild[];
82
+ parent?: JSXParentNode;
83
+ }
84
+ interface JSXFragment extends BaseNode {
85
+ type: "JSXFragment";
86
+ openingFragment: JSXOpeningFragment;
87
+ closingFragment: JSXClosingFragment;
88
+ children: JSXChild[];
89
+ parent?: JSXParentNode;
90
+ }
91
+ interface JSXOpeningElement extends BaseNode {
92
+ type: "JSXOpeningElement";
93
+ typeParameters?: TSESTree.TSTypeParameterInstantiation;
94
+ selfClosing: boolean;
95
+ name: JSXTagNameExpression;
96
+ attributes: (JSXAttribute | JSXSpreadAttribute | AstroShorthandAttribute | AstroTemplateLiteralAttribute)[];
97
+ parent?: JSXElement;
98
+ }
99
+ interface JSXClosingElement extends BaseNode {
100
+ type: "JSXClosingElement";
101
+ name: JSXTagNameExpression;
102
+ parent?: JSXElement;
103
+ }
104
+ interface JSXClosingFragment extends BaseNode {
105
+ type: "JSXClosingFragment";
106
+ parent?: JSXFragment;
107
+ }
108
+ interface JSXOpeningFragment extends BaseNode {
109
+ type: "JSXOpeningFragment";
110
+ parent?: JSXFragment;
111
+ }
112
+ interface JSXAttribute extends BaseNode {
113
+ type: "JSXAttribute";
114
+ name: JSXIdentifier | JSXNamespacedName;
115
+ value: JSXExpression | TSESTree.Literal | null;
116
+ parent?: JSXOpeningElement;
117
+ }
118
+ interface JSXSpreadAttribute extends BaseNode {
119
+ type: "JSXSpreadAttribute";
120
+ argument: TSESTree.Expression;
121
+ parent?: JSXOpeningElement;
122
+ }
123
+ type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
124
+ interface JSXIdentifier extends BaseNode {
125
+ type: "JSXIdentifier";
126
+ name: string;
127
+ parent?: JSXAttribute | AstroShorthandAttribute | AstroTemplateLiteralAttribute | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXClosingElement;
128
+ }
129
+ interface JSXMemberExpression extends BaseNode {
130
+ type: "JSXMemberExpression";
131
+ object: JSXTagNameExpression;
132
+ property: JSXIdentifier;
133
+ parent?: JSXMemberExpression | JSXOpeningElement | JSXClosingElement;
134
+ }
135
+ interface JSXNamespacedName extends BaseNode {
136
+ type: "JSXNamespacedName";
137
+ namespace: JSXIdentifier;
138
+ name: JSXIdentifier;
139
+ parent?: JSXAttribute | AstroShorthandAttribute | AstroTemplateLiteralAttribute | JSXMemberExpression | JSXOpeningElement | JSXClosingElement;
140
+ }
141
+ type JSXExpression = JSXExpressionContainer | JSXSpreadChild;
142
+ interface JSXExpressionContainer extends BaseNode {
143
+ type: "JSXExpressionContainer";
144
+ expression: TSESTree.Expression | JSXEmptyExpression;
145
+ parent?: JSXAttribute | AstroShorthandAttribute | AstroTemplateLiteralAttribute | JSXParentNode;
146
+ }
147
+ interface JSXSpreadChild extends BaseNode {
148
+ type: "JSXSpreadChild";
149
+ expression: TSESTree.Expression;
150
+ parent?: JSXAttribute | JSXParentNode;
151
+ }
152
+ interface JSXEmptyExpression extends BaseNode {
153
+ type: "JSXEmptyExpression";
154
+ parent?: JSXExpressionContainer;
155
+ }
156
+ interface JSXText extends BaseNode {
157
+ type: "JSXText";
158
+ value: string;
159
+ raw: string;
160
+ parent?: JSXParentNode;
161
+ }
162
+
163
+ type AstroNode = AstroProgram | AstroFragment | AstroHTMLComment | AstroDoctype | AstroShorthandAttribute | AstroTemplateLiteralAttribute | AstroRawText;
164
+ type AstroChild = JSXElement | JSXFragment | JSXExpression | JSXText | AstroHTMLComment | AstroRawText;
165
+ type AstroParentNode = JSXElement | JSXFragment | AstroFragment;
166
+ /** Node of Astro program root */
167
+ interface AstroProgram extends Omit<TSESTree.Program, "type" | "body"> {
168
+ type: "Program";
169
+ body: (TSESTree.Program["body"][number] | AstroFragment)[];
170
+ sourceType: "script" | "module";
171
+ comments: TSESTree.Comment[];
172
+ tokens: TSESTree.Token[];
173
+ parent?: undefined;
174
+ }
175
+ /** Node of Astro fragment */
176
+ interface AstroFragment extends BaseNode {
177
+ type: "AstroFragment";
178
+ children: (AstroChild | AstroDoctype)[];
179
+ parent?: AstroParentNode;
180
+ }
181
+ /** Node of Astro html comment */
182
+ interface AstroHTMLComment extends BaseNode {
183
+ type: "AstroHTMLComment";
184
+ value: string;
185
+ parent?: AstroParentNode;
186
+ }
187
+ /** Node of Astro doctype */
188
+ interface AstroDoctype extends BaseNode {
189
+ type: "AstroDoctype";
190
+ parent?: AstroFragment;
191
+ }
192
+ /** Node of Astro shorthand attribute */
193
+ interface AstroShorthandAttribute extends Omit<JSXAttribute, "type"> {
194
+ type: "AstroShorthandAttribute";
195
+ value: JSXExpressionContainer;
196
+ }
197
+ /** Node of Astro template-literal attribute */
198
+ interface AstroTemplateLiteralAttribute extends Omit<JSXAttribute, "type"> {
199
+ type: "AstroTemplateLiteralAttribute";
200
+ value: JSXExpressionContainer & {
201
+ expression: TSESTree.TemplateLiteral;
202
+ };
203
+ }
204
+ /** Node of Astro raw text */
205
+ interface AstroRawText extends Omit<JSXText, "type"> {
206
+ type: "AstroRawText";
207
+ parent?: JSXElement;
208
+ }
209
+
210
+ type Comment = TSESTree.Comment;
211
+ type Token = TSESTree.Token;
212
+ type SourceLocation = TSESTree.SourceLocation;
213
+ type Range = TSESTree.Range;
214
+ type Position = TSESTree.Position;
215
+
216
+ type index_AstroChild = AstroChild;
217
+ type index_AstroDoctype = AstroDoctype;
218
+ type index_AstroFragment = AstroFragment;
219
+ type index_AstroHTMLComment = AstroHTMLComment;
220
+ type index_AstroNode = AstroNode;
221
+ type index_AstroParentNode = AstroParentNode;
222
+ type index_AstroProgram = AstroProgram;
223
+ type index_AstroRawText = AstroRawText;
224
+ type index_AstroShorthandAttribute = AstroShorthandAttribute;
225
+ type index_AstroTemplateLiteralAttribute = AstroTemplateLiteralAttribute;
226
+ type index_Comment = Comment;
227
+ type index_JSXAttribute = JSXAttribute;
228
+ type index_JSXChild = JSXChild;
229
+ type index_JSXClosingElement = JSXClosingElement;
230
+ type index_JSXClosingFragment = JSXClosingFragment;
231
+ type index_JSXElement = JSXElement;
232
+ type index_JSXEmptyExpression = JSXEmptyExpression;
233
+ type index_JSXExpression = JSXExpression;
234
+ type index_JSXExpressionContainer = JSXExpressionContainer;
235
+ type index_JSXFragment = JSXFragment;
236
+ type index_JSXIdentifier = JSXIdentifier;
237
+ type index_JSXMemberExpression = JSXMemberExpression;
238
+ type index_JSXNamespacedName = JSXNamespacedName;
239
+ type index_JSXNode = JSXNode;
240
+ type index_JSXOpeningElement = JSXOpeningElement;
241
+ type index_JSXOpeningFragment = JSXOpeningFragment;
242
+ type index_JSXParentNode = JSXParentNode;
243
+ type index_JSXSpreadAttribute = JSXSpreadAttribute;
244
+ type index_JSXSpreadChild = JSXSpreadChild;
245
+ type index_JSXTagNameExpression = JSXTagNameExpression;
246
+ type index_JSXText = JSXText;
247
+ type index_Position = Position;
248
+ type index_Range = Range;
249
+ type index_SourceLocation = SourceLocation;
250
+ type index_Token = Token;
251
+ declare namespace index {
252
+ export {
253
+ index_AstroChild as AstroChild,
254
+ index_AstroDoctype as AstroDoctype,
255
+ index_AstroFragment as AstroFragment,
256
+ index_AstroHTMLComment as AstroHTMLComment,
257
+ index_AstroNode as AstroNode,
258
+ index_AstroParentNode as AstroParentNode,
259
+ index_AstroProgram as AstroProgram,
260
+ index_AstroRawText as AstroRawText,
261
+ index_AstroShorthandAttribute as AstroShorthandAttribute,
262
+ index_AstroTemplateLiteralAttribute as AstroTemplateLiteralAttribute,
263
+ index_Comment as Comment,
264
+ index_JSXAttribute as JSXAttribute,
265
+ index_JSXChild as JSXChild,
266
+ index_JSXClosingElement as JSXClosingElement,
267
+ index_JSXClosingFragment as JSXClosingFragment,
268
+ index_JSXElement as JSXElement,
269
+ index_JSXEmptyExpression as JSXEmptyExpression,
270
+ index_JSXExpression as JSXExpression,
271
+ index_JSXExpressionContainer as JSXExpressionContainer,
272
+ index_JSXFragment as JSXFragment,
273
+ index_JSXIdentifier as JSXIdentifier,
274
+ index_JSXMemberExpression as JSXMemberExpression,
275
+ index_JSXNamespacedName as JSXNamespacedName,
276
+ index_JSXNode as JSXNode,
277
+ index_JSXOpeningElement as JSXOpeningElement,
278
+ index_JSXOpeningFragment as JSXOpeningFragment,
279
+ index_JSXParentNode as JSXParentNode,
280
+ index_JSXSpreadAttribute as JSXSpreadAttribute,
281
+ index_JSXSpreadChild as JSXSpreadChild,
282
+ index_JSXTagNameExpression as JSXTagNameExpression,
283
+ index_JSXText as JSXText,
284
+ index_Position as Position,
285
+ index_Range as Range,
286
+ index_SourceLocation as SourceLocation,
287
+ index_Token as Token,
288
+ };
289
+ }
290
+
291
+ /**
292
+ * Parse source code
293
+ */
294
+ declare function parseForESLint$1(code: string, options?: any): {
295
+ ast: AstroProgram;
296
+ services: Record<string, any> & {
297
+ isAstro: true;
298
+ getAstroAst: () => ParseResult["ast"];
299
+ getAstroResult: () => ParseResult;
300
+ };
301
+ visitorKeys: {
302
+ [type: string]: string[];
303
+ };
304
+ scopeManager: ScopeManager;
305
+ };
306
+
307
+ interface ParseTemplateResult {
308
+ result: ParseResult;
309
+ getEndOffset: (node: Node) => number;
310
+ calcAttributeValueStartOffset: (node: AttributeNode) => number;
311
+ calcAttributeEndOffset: (node: AttributeNode) => number;
312
+ walk: (parent: ParentNode, enter: (n: Node | AttributeNode, parents: ParentNode[]) => void, leave?: (n: Node | AttributeNode, parents: ParentNode[]) => void) => void;
313
+ getLocFromIndex: (index: number) => {
314
+ line: number;
315
+ column: number;
316
+ };
317
+ getIndexFromLoc: (loc: {
318
+ line: number;
319
+ column: number;
320
+ }) => number;
321
+ }
322
+ /**
323
+ * Parse the astro component template.
324
+ */
325
+ declare function parseTemplate(code: string): ParseTemplateResult;
326
+
327
+ interface Visitor<N> {
328
+ visitorKeys?: VisitorKeys$1;
329
+ enterNode(node: N, parent: N | null): void;
330
+ leaveNode(node: N, parent: N | null): void;
331
+ }
332
+ declare function traverseNodes(node: AstroNode, visitor: Visitor<AstroNode | TSESTree.Node>): void;
333
+ declare function traverseNodes(node: TSESTree.Node, visitor: Visitor<TSESTree.Node>): void;
334
+
335
+ /**
336
+ * Astro parse errors.
337
+ */
338
+ declare class ParseError extends SyntaxError {
339
+ index: number;
340
+ lineNumber: number;
341
+ column: number;
342
+ originalAST: any;
343
+ /**
344
+ * Initialize this ParseError instance.
345
+ */
346
+ constructor(message: string, offset: number | {
347
+ line: number;
348
+ column: number;
349
+ }, ctx: Context);
350
+ }
351
+
352
+ var name = "astro-eslint-parser";
353
+ var version = "0.15.0";
354
+
355
+ declare const meta_name: typeof name;
356
+ declare const meta_version: typeof version;
357
+ declare namespace meta {
358
+ export {
359
+ meta_name as name,
360
+ meta_version as version,
361
+ };
362
+ }
363
+
364
+ /**
365
+ * Parse source code
366
+ */
367
+ declare function parseForESLint(code: string, options?: any): ReturnType<typeof parseForESLint$1>;
368
+ declare const VisitorKeys: eslint.SourceCode.VisitorKeys;
369
+
370
+ export { index as AST, ParseError, ParseTemplateResult, VisitorKeys, meta, name, parseForESLint, parseTemplate, traverseNodes };
package/lib/index.d.ts CHANGED
@@ -349,11 +349,22 @@ declare class ParseError extends SyntaxError {
349
349
  }, ctx: Context);
350
350
  }
351
351
 
352
- declare const name = "astro-eslint-parser";
352
+ var name = "astro-eslint-parser";
353
+ var version = "0.15.0";
354
+
355
+ declare const meta_name: typeof name;
356
+ declare const meta_version: typeof version;
357
+ declare namespace meta {
358
+ export {
359
+ meta_name as name,
360
+ meta_version as version,
361
+ };
362
+ }
363
+
353
364
  /**
354
365
  * Parse source code
355
366
  */
356
367
  declare function parseForESLint(code: string, options?: any): ReturnType<typeof parseForESLint$1>;
357
368
  declare const VisitorKeys: eslint.SourceCode.VisitorKeys;
358
369
 
359
- export { index as AST, ParseError, ParseTemplateResult, VisitorKeys, name, parseForESLint, parseTemplate, traverseNodes };
370
+ export { index as AST, ParseError, ParseTemplateResult, VisitorKeys, meta, name, parseForESLint, parseTemplate, traverseNodes };
package/lib/index.js CHANGED
@@ -33,6 +33,7 @@ __export(src_exports, {
33
33
  AST: () => ast_exports,
34
34
  ParseError: () => ParseError,
35
35
  VisitorKeys: () => VisitorKeys,
36
+ meta: () => meta_exports,
36
37
  name: () => name,
37
38
  parseForESLint: () => parseForESLint2,
38
39
  parseTemplate: () => parseTemplate2,
@@ -2551,8 +2552,18 @@ function parseTemplate2(code) {
2551
2552
  // src/ast/index.ts
2552
2553
  var ast_exports = {};
2553
2554
 
2554
- // src/index.ts
2555
+ // src/meta.ts
2556
+ var meta_exports = {};
2557
+ __export(meta_exports, {
2558
+ name: () => name,
2559
+ version: () => version
2560
+ });
2561
+
2562
+ // package.json
2555
2563
  var name = "astro-eslint-parser";
2564
+ var version = "0.15.0";
2565
+
2566
+ // src/index.ts
2556
2567
  function parseForESLint2(code, options) {
2557
2568
  return parseForESLint(code, options);
2558
2569
  }
@@ -2562,6 +2573,7 @@ var VisitorKeys = KEYS;
2562
2573
  AST,
2563
2574
  ParseError,
2564
2575
  VisitorKeys,
2576
+ meta,
2565
2577
  name,
2566
2578
  parseForESLint,
2567
2579
  parseTemplate,
package/lib/index.mjs CHANGED
@@ -1,10 +1,15 @@
1
+ var __defProp = Object.defineProperty;
1
2
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
3
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
4
  }) : x)(function(x) {
4
5
  if (typeof require !== "undefined")
5
6
  return require.apply(this, arguments);
6
- throw new Error('Dynamic require of "' + x + '" is not supported');
7
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
8
  });
9
+ var __export = (target, all) => {
10
+ for (var name2 in all)
11
+ __defProp(target, name2, { get: all[name2], enumerable: true });
12
+ };
8
13
 
9
14
  // src/visitor-keys.ts
10
15
  import { unionWith } from "eslint-visitor-keys";
@@ -2520,8 +2525,18 @@ function parseTemplate2(code) {
2520
2525
  // src/ast/index.ts
2521
2526
  var ast_exports = {};
2522
2527
 
2523
- // src/index.ts
2528
+ // src/meta.ts
2529
+ var meta_exports = {};
2530
+ __export(meta_exports, {
2531
+ name: () => name,
2532
+ version: () => version
2533
+ });
2534
+
2535
+ // package.json
2524
2536
  var name = "astro-eslint-parser";
2537
+ var version = "0.15.0";
2538
+
2539
+ // src/index.ts
2525
2540
  function parseForESLint2(code, options) {
2526
2541
  return parseForESLint(code, options);
2527
2542
  }
@@ -2530,6 +2545,7 @@ export {
2530
2545
  ast_exports as AST,
2531
2546
  ParseError,
2532
2547
  VisitorKeys,
2548
+ meta_exports as meta,
2533
2549
  name,
2534
2550
  parseForESLint2 as parseForESLint,
2535
2551
  parseTemplate2 as parseTemplate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-eslint-parser",
3
- "version": "0.13.3",
3
+ "version": "0.15.0",
4
4
  "description": "Astro component parser for ESLint",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
@@ -12,7 +12,8 @@
12
12
  },
13
13
  "scripts": {
14
14
  "prebuild": "npm run -s clean",
15
- "build": "tsup",
15
+ "build": "npm run build:tsup",
16
+ "build:tsup": "tsup",
16
17
  "clean": "rimraf .nyc_output lib coverage",
17
18
  "lint": "eslint . --ext .js,.ts,.json,.astro,.svelte",
18
19
  "eslint-fix": "npm run lint -- --fix",
@@ -47,9 +48,9 @@
47
48
  },
48
49
  "homepage": "https://github.com/ota-meshi/astro-eslint-parser#readme",
49
50
  "dependencies": {
50
- "@astrojs/compiler": "^1.0.0",
51
- "@typescript-eslint/scope-manager": "^5.48.2",
52
- "@typescript-eslint/types": "^5.25.0",
51
+ "@astrojs/compiler": "^2.0.0",
52
+ "@typescript-eslint/scope-manager": "^5.0.0",
53
+ "@typescript-eslint/types": "^5.0.0",
53
54
  "astrojs-compiler-sync": "^0.3.0",
54
55
  "debug": "^4.3.4",
55
56
  "eslint-visitor-keys": "^3.0.0",
@@ -59,7 +60,7 @@
59
60
  "devDependencies": {
60
61
  "@changesets/changelog-github": "^0.4.6",
61
62
  "@changesets/cli": "^2.24.2",
62
- "@ota-meshi/eslint-plugin": "^0.13.0",
63
+ "@ota-meshi/eslint-plugin": "^0.15.0",
63
64
  "@types/benchmark": "^2.1.1",
64
65
  "@types/chai": "^4.3.0",
65
66
  "@types/debug": "^4.1.7",
@@ -69,44 +70,44 @@
69
70
  "@types/mocha": "^10.0.0",
70
71
  "@types/node": "^18.0.0",
71
72
  "@types/semver": "^7.3.9",
72
- "@typescript-eslint/eslint-plugin": "~5.57.0",
73
- "@typescript-eslint/parser": "~5.57.0",
73
+ "@typescript-eslint/eslint-plugin": "~6.4.0",
74
+ "@typescript-eslint/parser": "~6.4.0",
74
75
  "astro": "^2.0.0",
75
76
  "astro-eslint-parser": ">=0.1.0",
76
77
  "benchmark": "^2.1.4",
77
78
  "chai": "^4.3.4",
78
79
  "env-cmd": "^10.1.0",
79
- "esbuild": "^0.17.0",
80
+ "esbuild": "^0.19.0",
80
81
  "esbuild-register": "^3.3.3",
81
82
  "eslint": "^8.15.0",
82
- "eslint-config-prettier": "^8.3.0",
83
+ "eslint-config-prettier": "^9.0.0",
83
84
  "eslint-formatter-codeframe": "^7.32.1",
84
- "eslint-plugin-astro": "^0.26.0",
85
+ "eslint-plugin-astro": "^0.28.0",
85
86
  "eslint-plugin-eslint-comments": "^3.2.0",
86
87
  "eslint-plugin-json-schema-validator": "^4.0.0",
87
88
  "eslint-plugin-jsonc": "^2.0.0",
88
89
  "eslint-plugin-jsx-a11y": "^6.5.1",
89
- "eslint-plugin-node": "^11.1.0",
90
- "eslint-plugin-node-dependencies": "^0.10.0",
91
- "eslint-plugin-prettier": "^4.0.0",
90
+ "eslint-plugin-n": "^16.0.0",
91
+ "eslint-plugin-node-dependencies": "^0.11.0",
92
+ "eslint-plugin-prettier": "^5.0.0",
92
93
  "eslint-plugin-react": "^7.29.4",
93
94
  "eslint-plugin-regexp": "^1.5.0",
94
95
  "eslint-plugin-simple-import-sort": "^10.0.0",
95
96
  "eslint-plugin-svelte": "^2.0.0",
96
97
  "estree-walker": "^3.0.0",
97
- "locate-character": "^2.0.5",
98
+ "locate-character": "^3.0.0",
98
99
  "magic-string": "^0.30.0",
99
100
  "mocha": "^10.0.0",
100
101
  "mocha-chai-jest-snapshot": "^1.1.3",
101
102
  "nyc": "^15.1.0",
102
- "prettier": "^2.0.5",
103
- "prettier-plugin-astro": "^0.8.0",
104
- "prettier-plugin-svelte": "^2.7.0",
103
+ "prettier": "^3.0.0",
104
+ "prettier-plugin-astro": "^0.11.0",
105
+ "prettier-plugin-svelte": "^3.0.0",
105
106
  "string-replace-loader": "^3.0.3",
106
- "svelte": "^3.48.0",
107
- "tsup": "^6.2.3",
108
- "typescript": "~5.0.0",
109
- "typescript-eslint-parser-for-extra-files": "^0.3.0"
107
+ "svelte": "^4.0.0",
108
+ "tsup": "^7.0.0",
109
+ "typescript": "~5.1.0",
110
+ "typescript-eslint-parser-for-extra-files": "^0.5.0"
110
111
  },
111
112
  "publishConfig": {
112
113
  "access": "public"