mirror of https://github.com/Wilfred/difftastic/
109 lines
2.2 KiB
JSON
109 lines
2.2 KiB
JSON
{
|
|
"name": "tree-sitter-c",
|
|
"version": "0.21.1",
|
|
"description": "C grammar for tree-sitter",
|
|
"repository": "github:tree-sitter/tree-sitter-c",
|
|
"license": "MIT",
|
|
"author": "Max Brunsfeld <maxbrunsfeld@gmail.com>",
|
|
"contributors": [
|
|
"Amaan Qureshi <amaanq12@gmail.com>"
|
|
],
|
|
"main": "bindings/node",
|
|
"types": "bindings/node",
|
|
"keywords": [
|
|
"incremental",
|
|
"parsing",
|
|
"tree-sitter",
|
|
"c"
|
|
],
|
|
"files": [
|
|
"grammar.js",
|
|
"binding.gyp",
|
|
"prebuilds/**",
|
|
"bindings/node/*",
|
|
"queries/*",
|
|
"src/**"
|
|
],
|
|
"dependencies": {
|
|
"node-addon-api": "^8.0.0",
|
|
"node-gyp-build": "^4.8.0"
|
|
},
|
|
"peerDependencies": {
|
|
"tree-sitter": "^0.21.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"tree_sitter": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-google": "^0.14.0",
|
|
"tree-sitter-cli": "^0.22.2",
|
|
"prebuildify": "^6.0.0"
|
|
},
|
|
"scripts": {
|
|
"install": "node-gyp-build",
|
|
"prebuildify": "prebuildify --napi --strip",
|
|
"build": "tree-sitter generate --no-bindings",
|
|
"build-wasm": "tree-sitter build --wasm",
|
|
"lint": "eslint grammar.js",
|
|
"parse": "tree-sitter parse",
|
|
"test": "tree-sitter test"
|
|
},
|
|
"tree-sitter": [
|
|
{
|
|
"scope": "source.c",
|
|
"file-types": [
|
|
"c",
|
|
"h"
|
|
],
|
|
"injection-regex": "^(c|h)$",
|
|
"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": [
|
|
"/"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|