/
.pre-commit-config.yaml
57 lines (55 loc) · 1.56 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
exclude: |
(?x)^(
spec/fixtures/files/.*
)$
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [javascript, jsx, css, scss, html]
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v16.5.0
hooks:
- id: stylelint
additional_dependencies: [
"stylelint@16.3.1",
"postcss-scss@4.0.9",
"stylelint-config-sass-guidelines@11.1.0",
"postcss@8.4.38",
]
args: ["--fix"]
types_or: ["css", "scss"]
exclude: |
(?x)^(
app/assets/stylesheets/application.css|
app/assets/stylesheets/common/_reset.scss
)$
- repo: https://github.com/rubocop/rubocop
rev: v1.63.4
hooks:
- id: rubocop
args: ["--autocorrect"]
types: ["ruby"]
exclude: |
(?x)^(
db/migrate/.*|
db/schema.rb|
lib/repo/test/.*|
Vagrantfile
)$
additional_dependencies:
- rubocop-rails:2.24.1
- rubocop-performance:1.21.0
- rubocop-factory_bot:2.25.1
- rubocop-rspec:2.28.0
- rubocop-rspec_rails:2.28.2
exclude: vendor
ci:
autoupdate_schedule: monthly