File tree Expand file tree Collapse file tree 8 files changed +764
-605
lines changed
Expand file tree Collapse file tree 8 files changed +764
-605
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ root = true
22
33[* ]
44charset = utf-8
5- end_of_line = lf
6- insert_final_newline = true
7- trim_trailing_whitespace = true
85
96[* .{json,toml,yml,gyp} ]
107indent_style = space
@@ -14,14 +11,18 @@ indent_size = 2
1411indent_style = space
1512indent_size = 2
1613
17- [* .rs ]
14+ [* .scm ]
1815indent_style = space
19- indent_size = 4
16+ indent_size = 2
2017
2118[* .{c,cc,h} ]
2219indent_style = space
2320indent_size = 4
2421
22+ [* .rs ]
23+ indent_style = space
24+ indent_size = 4
25+
2526[* .{py,pyi} ]
2627indent_style = space
2728indent_size = 4
@@ -37,3 +38,9 @@ indent_size = 8
3738[Makefile ]
3839indent_style = tab
3940indent_size = 8
41+
42+ [parser.c ]
43+ indent_size = 2
44+
45+ [{alloc,array,parser}.h ]
46+ indent_size = 2
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - grammar.js
8+ pull_request :
9+ paths :
10+ - grammar.js
11+
12+ jobs :
13+ lint :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+ - name : Set up Node.js
19+ uses : actions/setup-node@v4
20+ with :
21+ cache : npm
22+ node-version : ${{vars.NODE_VERSION}}
23+ - name : Install modules
24+ run : npm ci --legacy-peer-deps
25+ - name : Run ESLint
26+ run : npm run lint
27+ - name : Run Prettier
28+ run : npm run format
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Publish packages
22
33on :
44 push :
5- tags : ["*" ]
5+ tags : ['*' ]
66
77permissions :
88 contents : write
Original file line number Diff line number Diff line change 1+ {
2+ "semi": true,
3+ "singleQuote": true,
4+ "tabWidth": 2,
5+ "printWidth": 80,
6+ "trailingComma": "all"
7+ }
Original file line number Diff line number Diff line change 11import treesitter from 'eslint-config-treesitter' ;
2+ import prettier from 'eslint-config-prettier' ;
23
3- export default [
4- ...treesitter ,
5- ] ;
4+ export default [ ...treesitter , prettier ] ;
You can’t perform that action at this time.
0 commit comments