I'm currently setting up Gatsby to replace a previous Frontend setup in a Project Template my company users. Most things are set up but I'm stuck on integrating the linting into our deployment scripts.
Our bitbucket-pipelines.yml file calls npm run client:lint to run the linting for the old setup. Gatsby has its own eslint setup which works great during development, but I can't find a way to run its linting manually.
The scripts setup by Gatsby in package.json only include these:
"scripts": {
"develop": "gatsby develop",
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean"
},
Is there a command I can run to kick off the linting on its own?
Please Note: I've tried creating a custom eslint setup as per the below links, but it seemed to involve building a whole new eslint file - which I was having trouble with - So I'm hoping theres a script to run the existing linting for now that I simply haven't come across.