feat(root): add pre-commit configuration with eslint and prettier
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||
rev: 'v8.11.0' # Use the sha / tag you want to point at
|
||||
hooks:
|
||||
- id: eslint
|
||||
# files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
|
||||
# types: [file]
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: 'v2.5.1' # Use the sha / tag you want to point at
|
||||
hooks:
|
||||
- id: prettier
|
||||
Reference in New Issue
Block a user