forked from tahowallet/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses the pre-commit project, instructions for whose installation are coming for the README soon.
- Loading branch information
1 parent
aa4fe0d
commit 3e86f96
Showing
1 changed file
with
25 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,25 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: lint-js | ||
name: "lint typescript and javascript" | ||
entry: /usr/bin/env npx eslint | ||
files: '\.jsx?$|\.tsx?$' | ||
language: script | ||
description: "Checks JS/TS code according to the package's linter configuration" | ||
- repo: local | ||
hooks: | ||
- id: lint-config | ||
name: "lint config files" | ||
entry: /usr/bin/env npx prettier -c | ||
files: '\.json$|\.yaml$|\.toml$' | ||
language: script | ||
description: "Checks config files according to the package's linter configuration" | ||
- repo: local | ||
hooks: | ||
- id: lint-docs | ||
name: "lint documentation files" | ||
entry: /usr/bin/env npx prettier -c | ||
files: '\.md$' | ||
language: script | ||
description: "Checks documentation files according to the package's linter configuration" |