@codemirror/lang-javascript
Advanced tools
Comparing version
@@ -0,1 +1,9 @@ | ||
## 6.2.4 (2025-05-14) | ||
### Bug fixes | ||
Fix a crash in the `esLint` helper when a rule's `meta.docs` isn't defined. | ||
Properly dedent lines starting with an opening curly brace below composite statements like `for`/`while`. | ||
## 6.2.3 (2025-02-12) | ||
@@ -2,0 +10,0 @@ |
@@ -305,3 +305,3 @@ import { parser } from '@lezer/javascript'; | ||
"TemplateString BlockComment": () => null, | ||
"Statement Property": /*@__PURE__*/continuedIndent({ except: /^{/ }), | ||
"Statement Property": /*@__PURE__*/continuedIndent({ except: /^\s*{/ }), | ||
JSXElement(context) { | ||
@@ -460,3 +460,4 @@ let closed = /^\s*<\//.test(context.textAfter); | ||
eslint.getRules().forEach((desc, name) => { | ||
if (desc.meta.docs.recommended) | ||
var _a; | ||
if ((_a = desc.meta.docs) === null || _a === void 0 ? void 0 : _a.recommended) | ||
config.rules[name] = 2; | ||
@@ -463,0 +464,0 @@ }); |
{ | ||
"name": "@codemirror/lang-javascript", | ||
"version": "6.2.3", | ||
"version": "6.2.4", | ||
"description": "JavaScript language support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
62315
0.58%1083
0.19%