forked from soofstad/react-oauth2-pkce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (37 loc) · 1.31 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
language_version: python3.10
- id: check-merge-conflict
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: trailing-whitespace
exclude: ^.*\.(lock)$||^docs\/
- id: mixed-line-ending
exclude: ^.*\.(lock)$||^docs\/
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
files: ^src/.*\.(ts|tsx|js|css|html|json)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.21.0'
hooks:
- id: eslint
args: [--fix]
additional_dependencies:
- eslint
- eslint-config-react-app
- typescript
- "@typescript-eslint/parser"
- "@typescript-eslint/eslint-plugin"
- eslint-config-prettier # turns off all rules that might conflict with prettier
- eslint-plugin-jsx-a11y # checks accessibility rules on jsx elements
- eslint-plugin-prettier # runs prettier as an eslint rule
- eslint-plugin-react # react specific linting rules
- eslint-plugin-react-hooks # enforces the rules of hooks
files: ^src/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]