forked from alphagov/govuk-design-system
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af4aba5
commit 926f8e5
Showing
4 changed files
with
698 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no-install lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const commands = { | ||
eslint: 'npm run lint:js:cli -- --fix', | ||
prettier: 'npm run lint:prettier:cli -- --write', | ||
stylelint: 'npm run lint:scss:cli -- --fix --allow-empty-input' | ||
} | ||
|
||
module.exports = { | ||
'*.{cjs,js,mjs}': [commands.eslint, commands.prettier], | ||
'*.{json,yaml,yml}': commands.prettier, | ||
'*.md': [commands.eslint, commands.stylelint, commands.prettier], | ||
'*.scss': [commands.stylelint, commands.prettier] | ||
} |
Oops, something went wrong.