Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-lmao

lmaohq7MIT1.1.0

lmao's sharable ESLint configuration

lmao, eslint, eslint-config, eslint-config-lmao

readme

eslint-config-lmao

Our ESLint configuration, based upon Airbnb's one.

Install: npm install --save-dev eslint-config-lmao

Rules that differ from airbnb/javascript:

  • There has to be one space after { and before } when declaring an object.
  • There has to be one space after a function name and before the ().
  • Console usage is allowed.
  • Semicolons are optional (when isn't present, shows a warning, not an error), but we recommend adding those.
  • Import/require extensions are open (not only .js files)
  • Trailing commas are not allowed.
  • All React PropTypes are allowed (set react/forbid-prop-types to 0)