astro-eslint-parser 0.13.3 → 0.14.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.
- package/lib/index.d.ts +13 -2
- package/lib/index.js +13 -1
- package/lib/index.mjs +17 -1
- package/package.json +6 -5
package/lib/index.d.ts
CHANGED
|
@@ -349,11 +349,22 @@ declare class ParseError extends SyntaxError {
|
|
|
349
349
|
}, ctx: Context);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
|
|
352
|
+
var name = "astro-eslint-parser";
|
|
353
|
+
var version = "0.14.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/
|
|
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.14.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,3 +1,4 @@
|
|
|
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) {
|
|
@@ -5,6 +6,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
6
|
return require.apply(this, arguments);
|
|
6
7
|
throw new 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/
|
|
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.14.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.
|
|
3
|
+
"version": "0.14.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",
|
|
@@ -69,8 +70,8 @@
|
|
|
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.
|
|
73
|
-
"@typescript-eslint/parser": "~5.
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "~5.59.0",
|
|
74
|
+
"@typescript-eslint/parser": "~5.59.0",
|
|
74
75
|
"astro": "^2.0.0",
|
|
75
76
|
"astro-eslint-parser": ">=0.1.0",
|
|
76
77
|
"benchmark": "^2.1.4",
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
"svelte": "^3.48.0",
|
|
107
108
|
"tsup": "^6.2.3",
|
|
108
109
|
"typescript": "~5.0.0",
|
|
109
|
-
"typescript-eslint-parser-for-extra-files": "^0.
|
|
110
|
+
"typescript-eslint-parser-for-extra-files": "^0.4.0"
|
|
110
111
|
},
|
|
111
112
|
"publishConfig": {
|
|
112
113
|
"access": "public"
|