Feature request: Lint command
See original GitHub issueSummary
It would be great if the CLI had a lint
command like @vue/cli
, except it might use eslint-plugin-gridsome
instead of the one for Vue projects.
Basic example
gridsome lint
gridsome lint --fix
Motivation
I always have a linter (namely ESLint) which allows me to ensure my code is readable and consistent which ESLint handles well, even on Vue projects where the lint
service is handy.
It’s also quite time-consuming to manually set up ESLint with the correct plugins and configurations in Gridsome projects and I think it would be even better to have it out-of-the-box (which I’m happy to help with).
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:7
Top Results From Across the Web
Improve your code with lint checks - Android Developers
The lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, ...
Read more >salt-lint documentation
A command-line utility that checks for best practices in SaltStack.
Read more >lint-staged - npm
Linter commands work on a subset of all staged files, defined by a glob pattern. lint-staged uses micromatch for matching files with the ......
Read more >Feature request: Command line tool to perform Gitlab CI linting ...
Release notes The Gitlab CI Lint tool is a handy GUI tool to troubleshoot issues with...
Read more >ng lint - Angular
The command takes an optional project name, as specified in the projects section of the angular.json workspace configuration file. When a project name...
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 Free
Top 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
+1 on this. 👍
In the meantime for those who want a simple eslint config I read David’s article here 👈 about setting up a simple lint with prettier within gridsome. It works great for my projects so far and can be easily configured to work with other linting styles if you don’t want to use prettier and all that
It’s pretty easy to add as Rylan indicated above. I didn’t think to install @vue/cli-service at first but it makes some sense.
I miss the default @vue/cli commands when working with Gridsome so I installed that too as a dev dependency. I used it to add the eslint plugin.