Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

ESLint : Fast way to solve "Irregular whitespace not allowed"

I'm trying to use ESLint to enforce a coding style on a project and I have many errors Irregular whitespace …

javascript eslint js-beautify
Warning Unexpected unnamed function func-names under, ESLint rule

My eslint version is 4.18.2, it would give a warning like this: Unexpected unnamed function Expected an assignment or function call …

javascript eslint rules
Disable ESLint that create-react-app provides

create-react-app v3.0.0 is out. It supports TypeScript linting internally. (That's nice!) I think I understand the situation where TSLint is …

reactjs typescript eslint create-react-app
eslint Parsing error: Unexpected token =

Why is eslint throwing this error? The Javascript runs without issue inside of React Native. The code was taken from …

javascript reactjs react-native eslint class-fields
next.js Setting up ESLint for NextJs

I have created basic next.js app using "npx create-next-app" and .eslintrc.json file created to add eslint rules.but …

reactjs eslint next.js
Allow debugger; statements in certain files, using ESLint

Say I want to use this rule: https://eslint.org/docs/rules/no-debugger however, I have about 15 files where I …

eslint eslintignore eslintrc
Parser "babylon" deprecated error - webpack build

After I have been upgrading my projects JS packages, an error has appeared when building my bundle with Webpack. It …

webpack babeljs eslint babel-loader eslintrc
Prettier and eslint indents not working together

I traying setup my vim based typescript developing environment, but have an issue with indent management. Probably 'eslint' says: indent: …

javascript typescript vim eslint prettier
Insert `··` prettier/prettier

I have a project that has both prettier and eslint installed. The problem is that when I save a file …

visual-studio-code eslint prettier react-tsx
A control must be associated with a text label

I am getting the error: A control must be associated with a text label. The piece of code is: <…

javascript reactjs eslint airbnb