forked from fs/rails-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.slim-lint.yml
48 lines (40 loc) · 1022 Bytes
/
.slim-lint.yml
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
skip_frontmatter: false
linters:
CommentControlStatement:
enabled: true
ConsecutiveControlStatements:
enabled: true
max_consecutive: 2
EmptyControlStatment:
enabled: true
ExplicitDiv:
enabled: true
LineLength:
enabled: true
max: 120
RuboCop:
enabled: true
# These cops are incredibly noisy since the Ruby we extract from Slim
# templates isn't well-formatted, so we ignore them.
ignored_cops:
- Lint/BlockAlignment
- Lint/EndAlignment
- Lint/Void
- Metrics/LineLength
- Style/AlignHash
- Style/AlignParameters
- Style/BlockNesting
- Style/FileName
- Style/FirstParameterIndentation
- Style/IfUnlessModifier
- Style/IndentationConsistency
- Style/IndentationWidth
- Style/Next
- Style/TrailingBlankLines
- Style/TrailingWhitespace
- Style/WhileUntilModifier
- Style/NestedTernaryOperator
TagCase:
enabled: true
TrailingWhitespace:
enabled: true