Skip to content

Commit

Permalink
Add linting pre-commit config
Browse files Browse the repository at this point in the history
This uses the pre-commit project, instructions for whose installation
are coming for the README soon.
  • Loading branch information
Shadowfiend committed Aug 2, 2021
1 parent aa4fe0d commit 3e86f96
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
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"

0 comments on commit 3e86f96

Please sign in to comment.