Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

Typescript eslint - Missing file extension "ts" import/extensions

I have a simple Node/Express app made with Typescript. And eslint give me the error Missing file extension "ts" …

node.js typescript eslint
How do I configure ESLint to allow fat arrow class methods

ESLint is throwing a Parsing error: Unexpected token = error when I try to lint my Es6 classes. What configuration parameter …

javascript reactjs ecmascript-6 eslint
Using jest in my react app, describe is not defined

I am new to jest and trying to figure out some basic stuff in my following code import * as actions …

reactjs jestjs eslint eslintrc
Nice way to get rid of no-unused-expressions linter error with chai

In my Chai tests I often find myself wanting to use their assertions that are something like .to.be.empty, .…

chai eslint
Unable to resolve path to module 'react'. (import/no-unresolved)

Seems like i am missing something here, it should work without errors but eslint keeps throwing the following: Unable to …

reactjs babeljs eslint eslint-config-airbnb
Caught between two no-restricted-syntax violations

This is my original code: const buildTableContent = (settings) => { const entries = []; for (const key in settings) { for (const subkey in …

ecmascript-6 eslint eslint-config-airbnb
"parserOptions.project" has been set for @typescript-eslint/parser

I created a new React Native project with --template typescript I deleted the template directory which came as part of …

typescript eslint typescript-eslint
What is React component 'displayName' is used for?

I know that is it considered a good practice to name react component by adding a displayName property, but not …

reactjs eslint
Eslint AirBNB with 4 spaces for indent

I am configuring eslint and am using the AirBNB style guide. I want to over-ride the indent (supposed to be 2 …

eslint
How to fix this violation of this 'react/no-unescaped-entitie' of eslint rule?

This is my code: const func = () => { return ( <div > you're free </div> )} Somehow eslint flags the …

react-jsx eslint eslint-config-airbnb