Add a pre-commit hook for linting files
See original GitHub issueDesired Behavior Lint files using a pre-commit hook
[Optional] Alternatives
[Optional] Additional context
Contributor Resources
The layer5
repo contains two websites. The current generation and the next-generation of the layer5.io site.
If the layer5-ng
label is absent on this issue, then this issue pertains to the current generation of the layer5.io website, which uses Jekyll and GitHub Pages. Site content is found under the master
branch.
If the layer5-ng
label is present on this issue, then this issue pertains to the next-generation of the layer5.io website, which uses Gatsby, Strapi, and GitHub Pages. Site content is found under the layer5-ng
branch.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Pre-commit Hook
This will install husky and lint-staged, then add a configuration to the project's package.json that will automatically format supported files in a pre-commit...
Read more >How to run ESLint using a pre-commit hook - Level Up Coding
If you haven't initialized git for your repo then do so by running the command: git init · You should see a .git...
Read more >pre-commit
Add a file called .pre-commit-config.yaml to the root of your project. The pre-commit config file describes what repositories and hooks are installed.
Read more >Automatically format and lint code with pre-commit - Interrupt
How to use pre-commit for automated linting, formatting, and styling firmware code by using Python, clang-format, clang-tidy, and prettier.
Read more >Setting up Prettier and ESLint with pre-commit hook
Initialize Git repository. git init · Create .gitignore file and add the following: · Create a package. · Install dev dependencies · Initialize...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oops. I thought this was a PR, and so was going to ask @kushthedude for review.
I believe the keyword has to be mentioned in the description or the title, not comments.