Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

Why does the Airbnb style guide say that relying on function name inference is discouraged?

// bad class Listing extends React.Component { render() { return <div>{this.props.hello}</div>; } } // bad (relying on …

javascript reactjs ecmascript-6 eslint airbnb
How to increase EsLint memory to avoid `JavaScript heap out of memory`?

I'm trying to run EsLint on a very large javascript file and the process is running out of memory. To …

javascript eslint heap-memory
How to extend airbnb eslint but with warnings instead of errors?

I'm using airbnb's eslint with webpack like this: .eslintrc: { "extends": "airbnb" } webpack.config.js: ... module: { rules: [ { test: /\.js$/, use: ['babel-loader', …

webpack eslint eslint-config-airbnb
ESlint + sublimelinter not working with Sublime Text 3

I followed the guide "Lint like it's 2015" and had no luck, also read on stack-overflow for a similar problem and …

sublimetext3 sublimelinter eslint
Prettier + eslint line breaks

I am using eslint with VSCode 1.18.1 and the prettier/prettier extension 0.26.0 for VSCode. In my VSCode config I have "prettier.…

visual-studio-code eslint prettier eslint-config-airbnb jsprettier
How to run several commands on precommit with husky npm module?

I use husky to check JS before commit. In my package.json i have "scripts": { "lintStyles": "stylelint app/**/*.scss", "fixStylesLinting": "…

javascript npm eslint stylelint husky
Eslint error causing create-react-app failed to compile

I am building a website using create-react-app and have just installed eslint to it. For some reason what was supposed …

reactjs eslint eslintrc typescript-eslint
How to properly re-configure JSPrettier after an update with a breaking change?

I am trying to make Jsprettier work in Sublime, but the formats I set up can't be applied, because I …

javascript sublimetext3 eslint prettier