From b1800a98b869768378e3556d871ad770127bedb1 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Sun, 10 Nov 2024 18:47:26 -0500 Subject: [PATCH] build: fix lint --- grammar.js | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/grammar.js b/grammar.js index 386770c..d8ce731 100644 --- a/grammar.js +++ b/grammar.js @@ -1608,8 +1608,7 @@ module.exports = grammar({ * @param {RuleOrLiteral} sep - The separator to use. * @param {RuleOrLiteral} rule * - * @return {SeqRule} - * + * @returns {SeqRule} */ function sepBy1(sep, rule) { return seq(rule, repeat(seq(sep, rule))); @@ -1622,8 +1621,7 @@ function sepBy1(sep, rule) { * @param {RuleOrLiteral} sep - The separator to use. * @param {RuleOrLiteral} rule * - * @return {ChoiceRule} - * + * @returns {ChoiceRule} */ function sepBy(sep, rule) { return optional(sepBy1(sep, rule)); diff --git a/package.json b/package.json index 184f96b..6a55487 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ }, "scripts": { "install": "node-gyp-build", - "lint": "grammar.js", + "lint": "eslint grammar.js", "prestart": "tree-sitter build --wasm", "start": "tree-sitter playground", "test": "node --test bindings/node/*_test.js"