Skip to content

Commit 57bf098

Browse files
fix: apply fix
1 parent b02224b commit 57bf098

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

biome.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@
1919
"linter": {
2020
"enabled": true,
2121
"rules": {
22-
"recommended": true
22+
"recommended": true,
23+
"style": {
24+
"useTemplate": "off"
25+
}
2326
}
2427
},
2528
"javascript": {
2629
"formatter": {
27-
"quoteStyle": "double"
30+
"quoteStyle": "single"
2831
}
2932
}
3033
}

packages/toml/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const path = require('path')
1+
const path = require('node:path')
22
const libPath = path.join(__dirname, 'parser.so')
33

44
module.exports = {

scripts/nursery/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import fs from 'node:fs'
22
import path from 'node:path'
3-
import { parse, registerDynamicLanguage, SgRoot, DynamicLangRegistrations } from '@ast-grep/napi'
3+
import { parse, registerDynamicLanguage, type SgRoot, type DynamicLangRegistrations } from '@ast-grep/napi'
44

55
/**
66
* Log to console
77
*/
88
function log(...args: unknown[]) {
9-
console.debug(`@ast-grep/lang:`, ...args)
9+
console.debug('@ast-grep/lang:', ...args)
1010
}
1111

1212
/** Setup ast-grep/lang package's pre-release */
@@ -117,7 +117,7 @@ function generateLangNodeTypes(setupConfig: SetupConfig) {
117117
`type ${lang}Types = ${JSON.stringify(nodeTypeMap, null, 2)};` +
118118
'\n' +
119119
`export default ${lang}Types;`
120-
fs.writeFileSync(path.join(dirname, `type.d.ts`), fileContent)
120+
fs.writeFileSync(path.join(dirname, 'type.d.ts'), fileContent)
121121
} catch (e) {
122122
console.error(`Error while generating node types for ${lang}`)
123123
throw e

scripts/setup/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import path from 'node:path'
66
* Log to console
77
*/
88
function log(...args: unknown[]) {
9-
console.debug(`@ast-grep/lang:`, ...args)
9+
console.debug('@ast-grep/lang:', ...args)
1010
}
1111

1212
interface SetupConfig {

0 commit comments

Comments
 (0)