https://github.com/okm165/pre-commit-solid
https://github.com/okm165/pre-commit-solid
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/okm165/pre-commit-solid
- Owner: Okm165
- Created: 2022-07-24T12:49:02.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-19T07:40:35.000Z (almost 3 years ago)
- Last Synced: 2025-01-08T17:54:35.210Z (5 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust hooks for pre-commit
[solid-js](https://www.solidjs.com/) tools package for [pre-commit](https://pre-commit.com).
## Using solid tools with pre-commit
```yaml
- repo: https://github.com/Okm165/pre-commit-solid.git
rev: master
hooks:
- id: tsc
- id: eslint
- id: prettier
```## This is my local hook change path if needed
```yaml
- id: tsc
name: Typescript compiler
description: Typescript compiler check.
entry: npx --prefix tsc -b
language: system
pass_filenames: false
- id: eslint
name: Typescript linter
description: js ts jsx tsx linter.
entry: npx --prefix eslint --ext .js,.ts,.tsx,.jsx
language: system
pass_filenames: false
- id: prettier
name: Typescript formatter
description: Formatter.
entry: npx --prefix prettier --config .prettierrc.json --loglevel log -cu .
language: system
pass_filenames: false
```