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.

Feature request: Lint command

See original GitHub issue

Summary

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:open
  • Created 4 years ago
  • Reactions:18
  • Comments:7

github_iconTop GitHub Comments

4reactions
rylanharpercommented, Apr 6, 2020

+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

0reactions
spaceneenjacommented, May 11, 2020

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.

Read more comments on GitHub >

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

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