Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

Using forwardRef with proptypes and eslint

I am trying to use forwardRef for a Button in a project using eslint and prop-types. This is what I …

javascript reactjs eslint react-proptypes react-forwardref
How to configure Vue CLI 4 with ESLint + Prettier + Airbnb rules + TypeScript + Vetur?

When creating a new project with Vue CLI v4.0.5 with checking the options for TypeScript and Linter / Formatter, you are …

typescript vue.js eslint vue-cli prettier
Add space in self closing tags before in self closing tags

How do you include a space before the closing tags in self closing tags with WebStorm/IntelliJ-based products? Default settings …

reactjs intellij-idea pycharm webstorm eslint
Error: Cannot find module 'eslint/lib/rules/no-unused-expressions'

After installing ESLint through NPM, I'm getting the following error in my browser: Error: Cannot find module 'eslint/lib/rules/…

reactjs npm node-modules eslint
ESLint couldn't find the plugin "eslint-plugin-@typescript-eslint"

I'm not sure if there's a bug with something I'm using or whether I've just set something up wrong here, …

javascript typescript eslint gatsby
ESLint with Prettier issues on Yarn global install

I'm in the process of setting up my ReactJS environment, and I'm following the FrontendMasters course on the topic. After …

eslint yarnpkg prettier
eslint is running but not showing any lint errors/warnings

I am using vscode with eslint. The eslint console shows the following: [Info - 3:31:14 PM] ESLint server stopped. [Info - 3:31:14 …

visual-studio-code eslint eslintrc
Javascript re-assign let variable with destructuring

In my React app I am using airbnb's eslint style guide which will throw an error if I do not …

javascript ecmascript-6 eslint
How to configure Vue CLI 4 with ESLint + Airbnb rules + TypeScript + Stylelint for SCSS, in VS Code editor with autofix on save?

Note: This is a similar question to my previous question on the topic, which was left partly unsolved and after …

javascript typescript vue.js eslint vue-cli
If a propType isn't required why does ESLint want to provide default prop for it?

const propTypes = { label: PropTypes.string, }; const defaultProps = {}; Why does ESLint want us to provide default value for label when it …

reactjs eslint airbnb