fix(curriculum): require space between variable name and const/let/var (#57739)

This commit is contained in:
Krzysztof G.
2025-01-27 13:12:03 +01:00
committed by GitHub
parent bb2634d545
commit 6ef6ec84e6
9 changed files with 16 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ You should not use the assignment operator.
```js
assert(
/let\s*myVar\s*=\s*87;\s*\/*.*\s*([+]{2}\s*myVar|myVar\s*[+]{2})/.test(__helpers.removeJSComments(code))
/let\s+myVar\s*=\s*87;\s*\/*.*\s*([+]{2}\s*myVar|myVar\s*[+]{2})/.test(__helpers.removeJSComments(code))
);
```