File tree 3 files changed +38
-36
lines changed
3 files changed +38
-36
lines changed Original file line number Diff line number Diff line change 24
24
- name : Install dependencies
25
25
run : pnpm install --ignore-scripts
26
26
- name : Run linting/formatting checks
27
- run : pnpm lint:ci
27
+ run : |
28
+ pnpm lint:ci
29
+ pnpm format:ci
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " https://biomejs.dev/schemas/1.9.4/schema.json" ,
3
- "vcs" : {
4
- "enabled" : true ,
5
- "clientKind" : " git" ,
6
- "useIgnoreFile" : true
7
- },
8
- "files" : {
9
- "ignoreUnknown" : false ,
10
- "ignore" : []
11
- },
12
- "formatter" : {
13
- "enabled" : true ,
14
- "indentStyle" : " tab "
15
- },
16
- "organizeImports" : {
17
- "enabled" : true
18
- },
19
- "linter" : {
20
- "enabled" : true ,
21
- "rules" : {
22
- "recommended" : true ,
2
+ "$schema" : " https://biomejs.dev/schemas/1.9.4/schema.json" ,
3
+ "vcs" : {
4
+ "enabled" : true ,
5
+ "clientKind" : " git" ,
6
+ "useIgnoreFile" : true
7
+ },
8
+ "files" : {
9
+ "ignoreUnknown" : false ,
10
+ "ignore" : []
11
+ },
12
+ "formatter" : {
13
+ "enabled" : true ,
14
+ "indentStyle" : " space "
15
+ },
16
+ "organizeImports" : {
17
+ "enabled" : true
18
+ },
19
+ "linter" : {
20
+ "enabled" : true ,
21
+ "rules" : {
22
+ "recommended" : true ,
23
23
"style" : {
24
24
"useTemplate" : " off"
25
25
}
26
- }
27
- },
28
- "javascript" : {
29
- "formatter" : {
30
- "quoteStyle" : " single"
31
- }
32
- }
26
+ }
27
+ },
28
+ "javascript" : {
29
+ "formatter" : {
30
+ "arrowParentheses" : " asNeeded" ,
31
+ "quoteStyle" : " single" ,
32
+ "semicolons" : " asNeeded" ,
33
+ "trailingCommas" : " all"
34
+ }
35
+ }
33
36
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @ast-grep/langs" ,
3
3
"private" : true ,
4
- "workspaces" : [
5
- " packages/*" ,
6
- " scripts/*"
7
- ],
4
+ "workspaces" : [" packages/*" , " scripts/*" ],
8
5
"version" : " 0.0.1" ,
9
6
"description" : " Monorepo for `@ast-grep/lang-*` packages" ,
10
7
"scripts" : {
11
8
"postinstall" : " pnpm -r compile-ts" ,
9
+ "format" : " biome format --write" ,
10
+ "format:ci" : " biome format" ,
12
11
"lint" : " biome lint --fix" ,
13
12
"lint:ci" : " biome lint" ,
14
13
"prepare" : " husky"
21
20
"husky" : " 9.1.7"
22
21
},
23
22
"pnpm" : {
24
- "onlyBuiltDependencies" : [
25
- " tree-sitter-cli"
26
- ]
23
+ "onlyBuiltDependencies" : [" tree-sitter-cli" ]
27
24
}
28
25
}
You can’t perform that action at this time.
0 commit comments