forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (51 loc) · 1.44 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.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.0.0-alpha.4
hooks:
- id: prettier
types_or: [javascript, jsx, css, scss, html]
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v14.16.1
hooks:
- id: stylelint
additional_dependencies: [
"stylelint@14.11.0",
"postcss-scss@4.0.4",
"stylelint-config-sass-guidelines@9.0.1",
"stylelint-config-prettier@9.0.3",
"postcss@8.4.16",
]
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.44.1
hooks:
- id: rubocop
args: ["--autocorrect"]
types: ["ruby"]
exclude: |
(?x)^(
db/migrate/.*|
db/schema.rb|
lib/repo/test/.*
)$
additional_dependencies:
- rubocop-rails:2.13.2
exclude: vendor
ci:
autoupdate_schedule: monthly