mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
patch eslint rules
This commit is contained in:
15 files changed
+24
-19
No files matched your search
@@ -66,12 +66,12 @@ const invisibles = {
|
||||
function addInvisibles(grammar) {
|
||||
if (!grammar || grammar.tab) return;
|
||||
for (const name in invisibles) {
|
||||
if (Object.prototype.hasOwnProperty.call(invisibles, name)) {
|
||||
if (Object.hasOwn(invisibles, name)) {
|
||||
grammar[name] = invisibles[name];
|
||||
}
|
||||
}
|
||||
for (const name in grammar) {
|
||||
if (Object.prototype.hasOwnProperty.call(grammar, name) && !invisibles[name]) {
|
||||
if (Object.hasOwn(grammar, name) && !invisibles[name]) {
|
||||
if (name === 'rest') addInvisibles(grammar.rest);
|
||||
else handlerInvisiblesToken(grammar, name); // eslint-disable-line ts/no-use-before-define
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user