Skip to content

Commit 1f463d4

Browse files
NatoBoramHerringtonDarkholme
authored andcommitted
🎨 pnpm format
1 parent a0c0021 commit 1f463d4

27 files changed

+147
-180
lines changed

Diff for: ‎.devcontainer/devcontainer.json

+29-32
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
33
{
4-
"name": "Node.js",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
4+
"name": "Node.js",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
77

8-
// Features to add to the dev container. More info: https://containers.dev/features.
9-
// "features": {
10-
// "ghcr.io/devcontainers/features/go:1": {}
11-
// },
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {
10+
// "ghcr.io/devcontainers/features/go:1": {}
11+
// },
1212

13-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14-
// "forwardPorts": [],
13+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14+
// "forwardPorts": [],
1515

16-
// Use 'postCreateCommand' to run commands after the container is created.
17-
"postCreateCommand": {
18-
"Configure Build Tools": "npm install -g pnpm"
19-
},
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
"postCreateCommand": {
18+
"Configure Build Tools": "npm install -g pnpm"
19+
},
2020

21-
// Configure tool-specific properties.
22-
"customizations": {
23-
"vscode": {
24-
"settings": {
25-
"terminal.integrated.defaultProfile.linux": "bash",
26-
"terminal.integrated.profiles.linux": {
27-
"bash": {
28-
"path": "/bin/bash",
29-
"icon": "terminal-bash"
30-
}
31-
}
32-
},
33-
"extensions": [
34-
"dbaeumer.vscode-eslint",
35-
"dprint.dprint"
36-
]
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
"vscode": {
24+
"settings": {
25+
"terminal.integrated.defaultProfile.linux": "bash",
26+
"terminal.integrated.profiles.linux": {
27+
"bash": {
28+
"path": "/bin/bash",
29+
"icon": "terminal-bash"
30+
}
3731
}
38-
},
32+
},
33+
"extensions": ["dbaeumer.vscode-eslint", "dprint.dprint"]
34+
}
35+
},
3936

40-
// More info: https://aka.ms/dev-containers-non-root.
41-
"remoteUser": "node"
37+
// More info: https://aka.ms/dev-containers-non-root.
38+
"remoteUser": "node"
4239
}

Diff for: ‎packages/angular/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {
55
libraryPath: libPath,
6-
extensions: ["html"],
6+
extensions: ['html'],
77
languageSymbol: 'tree_sitter_angular',
88
expandoChar: 'z',
99
}

Diff for: ‎packages/angular/nursery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ setup({
66
name: 'angular',
77
treeSitterPackage: 'tree-sitter-angular',
88
languageRegistration,
9-
testRunner: (parse) => {
9+
testRunner: parse => {
1010
const a = parse('<div></div>')
1111
const b = a.root().find('<$TAG></$TAG>')
1212
console.log(b.kind(), b.getMatch('TAG').text())
13-
}
13+
},
1414
})

Diff for: ‎packages/angular/package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"src",
1919
"prebuilds"
2020
],
21-
"keywords": [
22-
"ast-grep",
23-
"ast-grep-lang"
24-
],
21+
"keywords": ["ast-grep", "ast-grep-lang"],
2522
"author": "",
2623
"license": "ISC",
2724
"dependencies": {
@@ -45,8 +42,6 @@
4542
"registry": "https://registry.npmjs.org/"
4643
},
4744
"pnpm": {
48-
"onlyBuiltDependencies": [
49-
"tree-sitter-cli"
50-
]
45+
"onlyBuiltDependencies": ["tree-sitter-cli"]
5146
}
5247
}

Diff for: ‎packages/c/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {
55
libraryPath: libPath,
6-
extensions: ["c","h"],
6+
extensions: ['c', 'h'],
77
languageSymbol: 'tree_sitter_c',
88
expandoChar: '_',
99
}

Diff for: ‎packages/c/nursery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ setup({
77
name: 'c',
88
treeSitterPackage: 'tree-sitter-c',
99
languageRegistration,
10-
testRunner: (parse) => {
10+
testRunner: parse => {
1111
const sg = parse('int a = 123;')
1212
const root = sg.root()
1313
const node = root.find('$T $A = 123')
1414
assert.equal(node.kind(), 'declaration')
15-
}
15+
},
1616
})

Diff for: ‎packages/c/package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"src",
1919
"prebuilds"
2020
],
21-
"keywords": [
22-
"ast-grep",
23-
"ast-grep-lang"
24-
],
21+
"keywords": ["ast-grep", "ast-grep-lang"],
2522
"author": "",
2623
"license": "ISC",
2724
"dependencies": {
@@ -45,9 +42,6 @@
4542
"registry": "https://registry.npmjs.org/"
4643
},
4744
"pnpm": {
48-
"onlyBuiltDependencies": [
49-
"@ast-grep/lang-c",
50-
"tree-sitter-cli"
51-
]
45+
"onlyBuiltDependencies": ["@ast-grep/lang-c", "tree-sitter-cli"]
5246
}
5347
}

Diff for: ‎packages/cpp/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {
55
libraryPath: libPath,
6-
extensions: ["cc","hpp","cpp","hh","cxx","cu","ino"],
6+
extensions: ['cc', 'hpp', 'cpp', 'hh', 'cxx', 'cu', 'ino'],
77
languageSymbol: 'tree_sitter_cpp',
88
expandoChar: '_',
99
}

Diff for: ‎packages/cpp/nursery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ setup({
77
name: 'cpp',
88
treeSitterPackage: 'tree-sitter-cpp',
99
languageRegistration,
10-
testRunner: (parse) => {
10+
testRunner: parse => {
1111
const sg = parse(`
1212
template <typename T>
1313
T add(T a, T b) {
@@ -22,5 +22,5 @@ setup({
2222
const root = sg.root()
2323
const node = root.find('$T $A = 123')
2424
assert.equal(node.kind(), 'declaration')
25-
}
25+
},
2626
})

Diff for: ‎packages/cpp/package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"src",
1919
"prebuilds"
2020
],
21-
"keywords": [
22-
"ast-grep",
23-
"ast-grep-lang"
24-
],
21+
"keywords": ["ast-grep", "ast-grep-lang"],
2522
"author": "",
2623
"license": "ISC",
2724
"dependencies": {
@@ -45,9 +42,6 @@
4542
"registry": "https://registry.npmjs.org/"
4643
},
4744
"pnpm": {
48-
"onlyBuiltDependencies": [
49-
"@ast-grep/lang-cpp",
50-
"tree-sitter-cli"
51-
]
45+
"onlyBuiltDependencies": ["@ast-grep/lang-cpp", "tree-sitter-cli"]
5246
}
5347
}

Diff for: ‎packages/csharp/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {
55
libraryPath: libPath,
6-
extensions: ["cs"],
6+
extensions: ['cs'],
77
languageSymbol: 'tree_sitter_c_sharp',
88
expandoChar: 'µ',
99
}

Diff for: ‎packages/csharp/nursery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ setup({
77
name: 'csharp',
88
treeSitterPackage: 'tree-sitter-c-sharp',
99
languageRegistration,
10-
testRunner: (parse) => {
10+
testRunner: parse => {
1111
const sg = parse('var a = 123;')
1212
const root = sg.root()
1313
const node = root.find('var $A = 123')
1414
assert.equal(node.kind(), 'variable_declaration')
15-
}
15+
},
1616
})

Diff for: ‎packages/csharp/package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"src",
1919
"prebuilds"
2020
],
21-
"keywords": [
22-
"ast-grep",
23-
"ast-grep-lang"
24-
],
21+
"keywords": ["ast-grep", "ast-grep-lang"],
2522
"author": "",
2623
"license": "ISC",
2724
"dependencies": {
@@ -45,9 +42,6 @@
4542
"registry": "https://registry.npmjs.org/"
4643
},
4744
"pnpm": {
48-
"onlyBuiltDependencies": [
49-
"@ast-grep/lang-csharp",
50-
"tree-sitter-cli"
51-
]
45+
"onlyBuiltDependencies": ["@ast-grep/lang-csharp", "tree-sitter-cli"]
5246
}
5347
}

Diff for: ‎packages/python/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {
55
libraryPath: libPath,
6-
extensions: ["py"],
6+
extensions: ['py'],
77
languageSymbol: 'tree_sitter_python',
88
expandoChar: 'µ',
99
}

Diff for: ‎packages/python/nursery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ setup({
77
name: 'python',
88
treeSitterPackage: 'tree-sitter-python',
99
languageRegistration,
10-
testRunner: (parse) => {
10+
testRunner: parse => {
1111
const sg = parse('a = 123')
1212
const root = sg.root()
1313
const node = root.find('$FIELD = 123')
1414
assert.equal(node.kind(), 'assignment')
15-
}
15+
},
1616
})

Diff for: ‎packages/python/package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"src",
1919
"prebuilds"
2020
],
21-
"keywords": [
22-
"ast-grep",
23-
"ast-grep-lang"
24-
],
21+
"keywords": ["ast-grep", "ast-grep-lang"],
2522
"author": "",
2623
"license": "ISC",
2724
"dependencies": {
@@ -45,9 +42,6 @@
4542
"registry": "https://registry.npmjs.org/"
4643
},
4744
"pnpm": {
48-
"onlyBuiltDependencies": [
49-
"@ast-grep/lang-python",
50-
"tree-sitter-cli"
51-
]
45+
"onlyBuiltDependencies": ["@ast-grep/lang-python", "tree-sitter-cli"]
5246
}
5347
}

Diff for: ‎packages/sql/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {
55
libraryPath: libPath,
6-
extensions: ["sql"],
6+
extensions: ['sql'],
77
languageSymbol: 'tree_sitter_sql',
88
expandoChar: '_',
99
}

Diff for: ‎packages/sql/nursery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ setup({
66
name: 'sql',
77
treeSitterPackage: '@derekstride/tree-sitter-sql',
88
languageRegistration,
9-
testRunner: (parse) => {
9+
testRunner: parse => {
1010
// add test here
11-
}
11+
},
1212
})

Diff for: ‎packages/sql/package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"src",
1919
"prebuilds"
2020
],
21-
"keywords": [
22-
"ast-grep",
23-
"ast-grep-lang"
24-
],
21+
"keywords": ["ast-grep", "ast-grep-lang"],
2522
"author": "",
2623
"license": "ISC",
2724
"dependencies": {
@@ -45,8 +42,6 @@
4542
"registry": "https://registry.npmjs.org/"
4643
},
4744
"pnpm": {
48-
"onlyBuiltDependencies": [
49-
"tree-sitter-cli"
50-
]
45+
"onlyBuiltDependencies": ["tree-sitter-cli"]
5146
}
5247
}

Diff for: ‎packages/toml/nursery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ setup({
77
name: 'toml',
88
treeSitterPackage: '@tree-sitter-grammars/tree-sitter-toml',
99
languageRegistration: toml,
10-
testRunner: (parse) => {
10+
testRunner: parse => {
1111
const sg = parse('name = "Tom"')
1212
const root = sg.root()
1313
const pair = root.find('$NAME = "Tom"')
1414
assert.equal(pair.kind(), 'pair')
15-
}
15+
},
1616
})

Diff for: ‎packages/toml/package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"src",
1919
"prebuilds"
2020
],
21-
"keywords": [
22-
"ast-grep",
23-
"ast-grep-lang"
24-
],
21+
"keywords": ["ast-grep", "ast-grep-lang"],
2522
"author": "",
2623
"license": "ISC",
2724
"dependencies": {
@@ -45,8 +42,6 @@
4542
"registry": "https://registry.npmjs.org/"
4643
},
4744
"pnpm": {
48-
"onlyBuiltDependencies": [
49-
"tree-sitter-cli"
50-
]
45+
"onlyBuiltDependencies": ["tree-sitter-cli"]
5146
}
5247
}

Diff for: ‎renovate.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
]
3+
"extends": ["config:recommended"]
64
}

0 commit comments

Comments
 (0)