Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

Cannot fix eslint rule on indenting case statements in switch statement

Here is a screenshot of my sublime text window showing the eslint error being thrown for the switch / case statement. …

javascript reactjs eslint linter
Setting up Airbnb ESLint with React and Webpack

I am trying to set up linting with Airbnb's Javascript standards on my React project, it uses webpack. Updated with …

reactjs webpack eslint eslint-config-airbnb
Missing return type on function - in react (typescript) code

In my App.tsx i got this: Missing return type on function.eslint(@typescript-eslint/explicit-function-return-type) And in my main class …

reactjs typescript eslint prettier
vim with syntastic and eslint: show warnings

I'm using Vim with the syntastic plugin and eslint. When I save a JavaScript file, I can see errors come …

javascript vim syntastic eslint
Line 0: Parsing error: Cannot read property 'map' of undefined

Currently starting up the server on my client side, the error above is what I have been getting. I am …

reactjs typescript react-hooks eslint
ESLint React PropTypes, 'prop' is missing in prop validation

I have a stateless react component import React from 'react' import styled from 'styled-components'; import PropTypes from 'prop-types'; export default …

reactjs eslint react-proptypes eslint-config-airbnb
how to exclude css files from eslint parser in React

I need to exclude css files from the eslint parser. Currently when I run eslint src/** this is checking all …

reactjs eslint babeljs eslint-config-airbnb
Where can I find the rule definitions for "eslint:recommended"?

In a .eslintrc file, we can use: "extends": "eslint:recommended" to extend the recommended rules provided by eslint, and in …

rules eslint
ESLint error trying to deploy functions Firebase

I'm try to deploy fireabase example , but when I try to deploy it , CLI launches an error: [CODE] const functions = …

javascript firebase google-cloud-functions eslint firebase-cli