ember-eslint-parser 0.14.2 → 0.14.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-eslint-parser",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {
@@ -279,8 +279,11 @@ export const replaceRange = function replaceRange(s, start, end, substitute) {
279
279
  };
280
280
 
281
281
  function maskTemplateContentForLint(content) {
282
- // Preserve line endings and UTF-16 length, but remove template syntax from the JS placeholder.
283
- return content.replace(/[^\r\n]/g, ' ');
282
+ // Must produce byte-identical output to ember-estree's toPlaceholderJS
283
+ // masking, or typescript-eslint sees two different contents for the same
284
+ // .gts file (disk read vs lint parse) and invalidates + rebuilds the
285
+ // program on every file.
286
+ return content.replace(/[`$]/g, ' ');
284
287
  }
285
288
 
286
289
  const processor = new Preprocessor();