astro-eslint-parser 0.15.0 → 0.16.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.mts CHANGED
@@ -350,7 +350,7 @@ declare class ParseError extends SyntaxError {
350
350
  }
351
351
 
352
352
  var name = "astro-eslint-parser";
353
- var version = "0.15.0";
353
+ var version = "0.16.0";
354
354
 
355
355
  declare const meta_name: typeof name;
356
356
  declare const meta_version: typeof version;
package/lib/index.d.ts CHANGED
@@ -350,7 +350,7 @@ declare class ParseError extends SyntaxError {
350
350
  }
351
351
 
352
352
  var name = "astro-eslint-parser";
353
- var version = "0.15.0";
353
+ var version = "0.16.0";
354
354
 
355
355
  declare const meta_name: typeof name;
356
356
  declare const meta_version: typeof version;
package/lib/index.js CHANGED
@@ -1245,7 +1245,7 @@ function processTemplate(ctx, resultTemplate) {
1245
1245
  script.appendOriginal(closing.offset - 1);
1246
1246
  script.appendVirtualScript("/");
1247
1247
  }
1248
- if (node.name === "script" || node.name === "style") {
1248
+ if (node.name === "script" || node.name === "style" || node.attributes.some((attr) => attr.name === "is:raw")) {
1249
1249
  const text = node.children[0];
1250
1250
  if (text && text.type === "text") {
1251
1251
  const styleNodeStart = node.position.start.offset;
@@ -2561,7 +2561,7 @@ __export(meta_exports, {
2561
2561
 
2562
2562
  // package.json
2563
2563
  var name = "astro-eslint-parser";
2564
- var version = "0.15.0";
2564
+ var version = "0.16.0";
2565
2565
 
2566
2566
  // src/index.ts
2567
2567
  function parseForESLint2(code, options) {
package/lib/index.mjs CHANGED
@@ -1215,7 +1215,7 @@ function processTemplate(ctx, resultTemplate) {
1215
1215
  script.appendOriginal(closing.offset - 1);
1216
1216
  script.appendVirtualScript("/");
1217
1217
  }
1218
- if (node.name === "script" || node.name === "style") {
1218
+ if (node.name === "script" || node.name === "style" || node.attributes.some((attr) => attr.name === "is:raw")) {
1219
1219
  const text = node.children[0];
1220
1220
  if (text && text.type === "text") {
1221
1221
  const styleNodeStart = node.position.start.offset;
@@ -2534,7 +2534,7 @@ __export(meta_exports, {
2534
2534
 
2535
2535
  // package.json
2536
2536
  var name = "astro-eslint-parser";
2537
- var version = "0.15.0";
2537
+ var version = "0.16.0";
2538
2538
 
2539
2539
  // src/index.ts
2540
2540
  function parseForESLint2(code, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-eslint-parser",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Astro component parser for ESLint",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
@@ -70,9 +70,9 @@
70
70
  "@types/mocha": "^10.0.0",
71
71
  "@types/node": "^18.0.0",
72
72
  "@types/semver": "^7.3.9",
73
- "@typescript-eslint/eslint-plugin": "~6.4.0",
74
- "@typescript-eslint/parser": "~6.4.0",
75
- "astro": "^2.0.0",
73
+ "@typescript-eslint/eslint-plugin": "~6.7.0",
74
+ "@typescript-eslint/parser": "~6.7.0",
75
+ "astro": "^3.0.0",
76
76
  "astro-eslint-parser": ">=0.1.0",
77
77
  "benchmark": "^2.1.4",
78
78
  "chai": "^4.3.4",
@@ -82,7 +82,7 @@
82
82
  "eslint": "^8.15.0",
83
83
  "eslint-config-prettier": "^9.0.0",
84
84
  "eslint-formatter-codeframe": "^7.32.1",
85
- "eslint-plugin-astro": "^0.28.0",
85
+ "eslint-plugin-astro": "^0.29.0",
86
86
  "eslint-plugin-eslint-comments": "^3.2.0",
87
87
  "eslint-plugin-json-schema-validator": "^4.0.0",
88
88
  "eslint-plugin-jsonc": "^2.0.0",
@@ -95,18 +95,19 @@
95
95
  "eslint-plugin-simple-import-sort": "^10.0.0",
96
96
  "eslint-plugin-svelte": "^2.0.0",
97
97
  "estree-walker": "^3.0.0",
98
+ "globals": "^13.22.0",
98
99
  "locate-character": "^3.0.0",
99
100
  "magic-string": "^0.30.0",
100
101
  "mocha": "^10.0.0",
101
102
  "mocha-chai-jest-snapshot": "^1.1.3",
102
103
  "nyc": "^15.1.0",
103
104
  "prettier": "^3.0.0",
104
- "prettier-plugin-astro": "^0.11.0",
105
+ "prettier-plugin-astro": "^0.12.0",
105
106
  "prettier-plugin-svelte": "^3.0.0",
106
107
  "string-replace-loader": "^3.0.3",
107
108
  "svelte": "^4.0.0",
108
109
  "tsup": "^7.0.0",
109
- "typescript": "~5.1.0",
110
+ "typescript": "~5.2.0",
110
111
  "typescript-eslint-parser-for-extra-files": "^0.5.0"
111
112
  },
112
113
  "publishConfig": {