examples/all/.overcommit.yml
gemfile: false
verify_signatures: false
PreCommit:
BundleCheck:
enabled: true
ErbLint:
enabled: true
required_executable: bundle
command: ["bundle", "exec", "erblint"]
include: "**/*.html.erb"
EsLint:
enabled: true
required_executable: npx
command: ["npx", "--no-install", "eslint", "-f", "compact"]
include:
- app/assets/**/*.cjs
- app/components/**/*.cjs
- app/frontend/**/*.cjs
- app/javascript/**/*.cjs
- app/assets/**/*.js
- app/assets/**/*.jsx
- app/components/**/*.js
- app/components/**/*.jsx
- app/frontend/**/*.js
- app/frontend/**/*.jsx
- app/javascript/**/*.js
- app/javascript/**/*.jsx
- app/assets/**/*.ts
- app/assets/**/*.tsx
- app/components/**/*.ts
- app/components/**/*.tsx
- app/frontend/**/*.ts
- app/frontend/**/*.tsx
- app/javascript/**/*.ts
- app/javascript/**/*.tsx
FixMe:
enabled: true
keywords: ["FIXME"]
exclude:
- .overcommit.yml
LocalPathsInGemfile:
enabled: true
RailsSchemaUpToDate:
enabled: true
RuboCop:
enabled: true
required_executable: bundle
command: ["bundle", "exec", "rubocop"]
on_warn: fail
Stylelint:
enabled: true
required_executable: npx
command: ["npx", "--no-install", "stylelint"]
env:
NODE_OPTIONS: --no-deprecation
include:
- app/assets/**/*.css
- app/components/**/*.css
- app/frontend/**/*.css
- app/javascript/**/*.css
TrailingWhitespace:
enabled: true
exclude:
- "**/db/structure.sql"
YarnCheck:
enabled: true
PostCheckout:
ALL:
quiet: true