Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

Disable ESlint parser error messages - VSCode

I have ESlint configured with vscode using the plugin, now I'm wondering is there some way I can stop ESlint …

visual-studio-code eslint
How to make WebStorm format code according to eslint?

I've specified eslint configuration for my WebStorm project. But it does not seem to apply to code reformat feature. For …

webstorm eslint
ignore eslint error: 'import' and 'export' may only appear at the top level

Is it possible to deactivate this error in eslint? Parsing error: 'import' and 'export' may only appear at the top …

lint eslint
Disable check of camel case rule in eslint

I have a large JavaScript file with multiple eslint rule violations. I am trying to disable them and address them …

constants eslint camelcasing disable
How to set .eslintrc to recognize 'require'?

I am new to ESLint, and I have successfully integrated ESLint with IntelliJ. Out of the box, my integration of …

javascript intellij-idea eslint jshint lint
Disable Unnecessary escape character: \/ no-useless-escape

I have this regex of mine that will check the string if it contains link or url (i.e. https://…

regex reactjs eslint
How do I resolve eslint import/no-named-as-default

After looking at the documentation for the import/no-named-as-default eslint rule, I'm still confused about what exactly I'm doing wrong. …

javascript eslint es6-modules
eslint object-shorthand error with variable passed in

I have the following function that is setting up a select2 plugin, which needs selects to stay open if they …

javascript ecmascript-6 eslint
ESLint support Visual studio 2017

ESlint static intellisense doesn't seem to be supported in Visual Studio 2017 which makes coding in .js files a complete pain …

visual-studio visual-studio-2015 visual-studio-2017 eslint visual-studio-2019
How to declare style in propTypes?

With the forbid-prop-types rule enabled, eslint forbids me from using style: React.PropTypes.object, and using shape is suggested. But …

react-native eslint