Skip to content

Commit e123cc2

Browse files
committed
Add pre-commit config
1 parent bc5651c commit e123cc2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-prettier
3+
rev: "v2.7.1"
4+
hooks:
5+
- id: prettier

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ You can try out the parser here: [Tree Sitter SQL Playground](https://m-novikov.
1010

1111
## Development
1212

13+
Install [pre-commit](https://pre-commit.com/#install) and run `pre-commit install` in the root of this repo. This will ensure
14+
that code follows code style of this repo.
15+
1316
File describing grammar is [grammar.js](./grammar.js)
1417

1518
Every time the grammar file changes code generation needs to be run by invoking `npm run gen`
@@ -43,3 +46,4 @@ This parser is supposed to be used in text editors. As a result:
4346

4447
* https://github.com/DerekStride/tree-sitter-sql
4548
* https://github.com/dhcmrlchtdj/tree-sitter-sqlite
49+
*

0 commit comments

Comments
 (0)