-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpre-commit-hooks.yaml
More file actions
16 lines (16 loc) · 822 Bytes
/
pre-commit-hooks.yaml
File metadata and controls
16 lines (16 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Define the hooks available in this repository
- id: browserslist-lint
name: Validate Browserslist Configuration
# Command to execute the linter using npx for local installation
entry: npx browserslist-lint
# Specify the language for the hook; 'node' is used for npm-based tools
language: node
# Regular expression to match files that should trigger the hook
# The hook will run if `.browserslistrc` or `package.json` is modified
files: (\.browserslistrc|package\.json)$
# Disable passing filenames as arguments since the linter inspects its own targets
pass_filenames: false
# Run the hook only when relevant files are modified, not always
always_run: false
# Description of the hook to inform users about its purpose
description: Validate Browserslist configuration using browserslist-lint.