forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
58 lines (56 loc) · 1.59 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
58
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.9.0
hooks:
- id: stylelint
additional_dependencies: [
]
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.66.0
hooks:
- id: rubocop
args: ["--autocorrect"]
types: ["ruby"]
exclude: |
(?x)^(
db/migrate/.*|
db/schema.rb|
lib/repo/test/.*|
Vagrantfile
)$
additional_dependencies:
- rubocop-rails:2.26.1
- rubocop-performance:1.22.1
- rubocop-factory_bot:2.26.1
- rubocop-rspec:3.0.5
- rubocop-rspec_rails:2.30.0
- rubocop-capybara:2.21.0
exclude: vendor
ci:
autoupdate_schedule: monthly