Top "Eslint-config-airbnb" questions

Use this tag for the NPM package that provides Airbnb's .eslintrc as an extensible shared config

JSX not allowed in files with extension ' .js' with eslint-config-airbnb

I've installed eslint-config-airbnb that is supposed to pre configure ESLINT for React: Our default export contains all of our ESLint …

javascript reactjs eslint eslint-config-airbnb
How to remove ESlint error no-unresolved from importing 'react'

no-unresolved https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md After installing eslint-import-resolver-webpack My .eslintrc config { "extends": "airbnb", "…

javascript reactjs eslint eslint-config-airbnb
Must use destructuring props assignment (react/destructuring-assignment)

I've applied eslint airbnb standard to my code, so now this code: handleSubmit = (event) => { event.preventDefault(); this.props.onSearch(…

reactjs eslint eslint-config-airbnb
Prettier + Airbnb's ESLint config

Recently, I've started using Visual Studio Code for my editor and found the Prettier - JavaScript formatter. I think it's …

javascript visual-studio eslint eslint-config-airbnb prettier
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
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
How to work around jsx-a11y/no-static-element-interactions restriction?

I used the following jsx to construct an entry in a FAQ table: <li key={faqKey} className={styles.entry} …

react-jsx eslint eslint-config-airbnb
eslint "parsing error: Unexpected token {" in JSX

const title = 'My Minimal React Webpack Babel Setups'; const App = () => (<div><b>{title}</b&…

javascript reactjs eslint eslint-config-airbnb eslintrc
How to configure eslint with nodejs express application

js application. I need to use eslint for this application. I am using https://www.npmjs.com/package/eslint-config-airbnb and …

javascript node.js eslint eslint-config-airbnb prettier