Skip to content

Commit

Permalink
build: update bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Oct 15, 2024
1 parent 7e57852 commit df2ce2e
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 58 deletions.
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import treesitter from 'eslint-config-treesitter';

export default [
...treesitter,
];
9 changes: 3 additions & 6 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,7 @@ module.exports = grammar({
*
* @param {RuleOrLiteral} separator
*
* @return {SeqRule}
*
* @returns {SeqRule}
*/
function sep1(rule, separator) {
return seq(rule, repeat(seq(separator, rule)));
Expand All @@ -943,8 +942,7 @@ function sep1(rule, separator) {
*
* @param {Rule} rule
*
* @return {SeqRule}
*
* @returns {SeqRule}
*/
function commaSep1(rule) {
return seq(rule, repeat(seq(',', rule)));
Expand All @@ -955,8 +953,7 @@ function commaSep1(rule) {
*
* @param {Rule} rule
*
* @return {ChoiceRule}
*
* @returns {ChoiceRule}
*/
function commaSep(rule) {
return optional(commaSep1(rule));
Expand Down
161 changes: 154 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 4 additions & 45 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"prebuilds/**",
"bindings/node/*",
"queries/*",
"src/**"
"src/**",
"*.wasm"
],
"dependencies": {
"node-addon-api": "^8.2.1",
Expand All @@ -38,7 +39,7 @@
},
"devDependencies": {
"eslint": "^9.12.0",
"eslint-config-google": "^0.14.0",
"eslint-config-treesitter": "^1.0.2",
"tree-sitter-cli": "^0.24.3",
"prebuildify": "^6.0.1"
},
Expand All @@ -58,47 +59,5 @@
"highlights": "queries/highlights.scm",
"tags": "queries/tags.scm"
}
],
"eslintConfig": {
"env": {
"commonjs": true,
"es2021": true
},
"extends": "google",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"arrow-parens": "off",
"camel-case": "off",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"max-len": [
"error",
{
"code": 160,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true
}
],
"spaced-comment": [
"warn",
"always",
{
"line": {
"markers": [
"/"
]
}
}
]
}
}
]
}

0 comments on commit df2ce2e

Please sign in to comment.