Skip to content

Commit

Permalink
Adds lintconf
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzaldysanchez committed Nov 15, 2023
1 parent 603f5f9 commit 3693f4a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions lintconf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# Copied from:
# https://redhat-cop.github.io/ci/linting-testing-helm-charts.html
# with `min-spaces-from-content` changed to be compatible with prettier.
rules:
braces:
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
brackets:
min-spaces-inside: 0
max-spaces-inside: 0
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
colons:
max-spaces-before: 0
max-spaces-after: 1
commas:
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
comments:
require-starting-space: true
min-spaces-from-content: 1
document-end: disable
document-start: disable # No --- to start a file
empty-lines:
max: 2
max-start: 0
max-end: 0
hyphens:
max-spaces-after: 1
indentation:
spaces: consistent
indent-sequences: whatever # - list indentation will handle both indentation and without
check-multi-line-strings: false
key-duplicates: enable
line-length: disable # Lines can be any length
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: enable
truthy:
level: warning

0 comments on commit 3693f4a

Please sign in to comment.