Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

How is ESLint integrated into Create React App?

When I run npx create-react-app ..., a bare-bone React project is being created for me. When I then peek into package.…

javascript reactjs visual-studio-code create-react-app eslint
How can I turn off ESLint's no-restricted-syntax rule just for ForOfStatement?

I am using ESLint for my ES6 program, with the AirBNB rule-set. For good and adequate reasons, I am using …

ecmascript-6 eslint for-of-loop
ESLint with Arbnb config and Facebook Flow together

I am using ESLint in a project and want to use Facebook flow as well, But I am getting warnings …

javascript facebook reactjs eslint flowtype
Prettier/VSCode Eslint weird format/syntax breaking bug

Sometimes when I startup VSCode and I save an JS file, everything gets messed up. example From: To: On save …

visual-studio-code eslint prettier
"The keyword yield is reserved" eslint error

I'm attempting to use Webpack 1.13.12 and eslint 3.11.0 and eslint-plugin-promise 3.4.0. I'm trying to use the answer in this question to get …

javascript ecmascript-6 es6-promise eslint superagent
ESLint error when trying to lint Angular templates

I have an Angular 10 app set up with eslint and prettier, which worked fine so far for linting Typescript files. …

angular typescript eslint typescript-eslint
ESLint: 'cy' is not defined (Cypress)

I've just started using Cypress with my React Typescript project. I've gotten some simple tests to run: describe('settings page', () =&…

reactjs eslint cypress
Eslint doesn't work in VScode, but work from terminal

I have monorepository managed by rush (https://rushjs.io/) The structure of code is: As you see, there are two …

javascript visual-studio-code eslint monorepo
Delete CR only for TS/TSX files - Prettier ESLint on VSCode 1.46

I Created a React project using Create React Apps' Typescript template, added necessary plugins for ESLint 6.8.0 and configured ESLint and …

visual-studio-code eslint prettier-eslint
How can I define tab size to 4 in ESLint?

I'm experimenting with ESLint in my workspace and I got little confused by the indent rule. Here is my rule …

eslint eslintrc