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.

disable linting on yarn start

See original GitHub issue

Is your proposal related to a problem?

We should have the option to disable linting on yarn start, we already have an IDE that integrates with eslint and prettier, we use git-hooks to lint and format files on commit, it’s pretty annoying to have it on start as well and it also makes dev really slow.

Describe the solution you’d like

add a flag --no-lint to disable all linting and purely build and serve on yarn start

Describe alternatives you’ve considered

Used patch-package

Additional context


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

gatezhcommented, Mar 30, 2021

There seems to be a better option than completely disabling linter. Setting up ESLINT_NO_DEV_ERRORS=true flag in .env file solves the problem. Found here

aprilmintacpinedacommented, Mar 23, 2021

I just found out that on .env we can add DISABLE_ESLINT_PLUGIN=true

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable ESLint that create-react-app provides - Stack Overflow
One way is to eject react-scripts - by running yarn eject / npm run eject - and turn off eslint in webpack config...
Read more >
eslint-plugin-disable | Yarn - Package Manager
To disable all plugins except specified ones use "disableAllExcept" flag in config settings (.eslintrc). The following config will disable all registered ...
Read more >
How to disable an ESLint rule - Flavio Copes
Another way is to disable it globally for the project. In package.json you can find the eslintConfig rule, which might have some content...
Read more >
How to disable ESLint for some lines, files or folders
To turn off ESLint in the whole file, you can add /* eslint-disable */ in the first line of that file. Alternatively, you...
Read more >
Command Line Interface - ESLint - Pluggable JavaScript Linter
You can view all the CLI options by running npx eslint -h . eslint [options] file.js [file.js] [dir] Basic configuration: --no-eslintrc Disable use...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found