-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
66 lines (66 loc) · 1.73 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
59
60
61
62
63
64
65
66
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v0.7.1
hooks:
- id: trailing-whitespace
exclude: ^spec/fixtures/
- id: check-yaml
- id: end-of-file-fixer
exclude: ^(spec/fixtures/|config/drive_session.json$)
- id: check-added-large-files
args:
- --maxkb=3000
- repo: git://github.com/pricematch/pricematch-pre-commit-hooks
sha: 9a41f686d70c32638d43a269a31c8023fd3ee8fe
hooks:
- id: do_not_commit
- id: check_rails_env_with_methods
- id: no_commas_in_string_arrays
- repo: local
hooks:
- id: rubocop
language: ruby
name: rubocop
additional_dependencies:
- rubocop:0.43.0
- rubocop-thread_safety:0.3.1
entry: rubocop
files: \.(rb|rake)$
exclude: schema.rb
args:
- --require
- rubocop-thread_safety
- --config=config/rubocop/rubocop.yml
- id: rails-erb-lint
language: ruby
name: rails-erb-lint
additional_dependencies:
- rails-erb-lint
entry: rails-erb-lint
files: \.html\.erb$
args:
- check
- -e
- id: ruby
language: ruby
name: Ruby syntax
entry: ruby
files: \.(rb|rake)$
exclude: schema.rb
args:
- -c
- id: eslint
language: node
name: eslint
entry: eslint
files: \.js$
additional_dependencies:
- eslint
exclude: ^vendor/assets/javascripts/
- id: scss-lint
language: ruby
name: scss-lint
additional_dependencies:
- scss_lint
entry: scss-lint
files: \.scss$
exclude: ^app/assets/stylesheets/themes/