question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a pre-commit hook for linting files

See original GitHub issue

Desired 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leecalcotecommented, Oct 27, 2020

Oops. I thought this was a PR, and so was going to ask @kushthedude for review.

0reactions
leecalcotecommented, Oct 29, 2020

I believe the keyword has to be mentioned in the description or the title, not comments.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found