-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
88 lines (86 loc) · 2.35 KB
/
.pre-commit-config.yaml
File metadata and controls
88 lines (86 loc) · 2.35 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-illegal-windows-names
- id: check-json
exclude: |
(?x)^(
spec/fixtures/files/.*
)$
- id: check-merge-conflict
- id: check-yaml
exclude: |
(?x)^(
spec/fixtures/files/.*
)$
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.1
hooks:
- id: prettier
types_or: [javascript, jsx, css, scss, html]
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v17.6.0
hooks:
- id: stylelint
additional_dependencies: [
"stylelint@16.11.0",
"postcss-scss@4.0.9",
"stylelint-config-sass-guidelines@12.1.0",
"postcss@8.4.49",
]
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.86.0
hooks:
- id: rubocop
args: ["--autocorrect"]
types: ["ruby"]
exclude: |
(?x)^(
db/migrate/.*|
db/schema.rb|
lib/repo/test/.*|
Vagrantfile
)$
additional_dependencies:
- rubocop-rails:2.33.4
- rubocop-performance:1.26.1
- rubocop-factory_bot:2.28.0
- rubocop-rspec:3.2.0
- rubocop-rspec_rails:2.32.0
- rubocop-capybara:2.22.1
- repo: local
hooks:
- id: erb_lint
name: erb_lint
entry: erb_lint
language: ruby
types: ["erb"]
args: ["--autocorrect"]
exclude: |
(?x)^(
.*.xml.erb|
.*/assign_scans.html.erb
)$
additional_dependencies:
- erb_lint:0.9.0
- id: i18n-tasks-health
name: i18n-tasks health
entry: i18n-tasks health
language: ruby
files: config/locales/
pass_filenames: false
additional_dependencies:
- i18n-tasks
exclude: vendor
ci:
autoupdate_schedule: monthly