1.0.2 • Published 6 years ago

eslint-config-mooveit-standard v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Eslint Config Moove-it Standard

An Eslint shareable config for the style we use for some projects.

Install

npm install --save-dev eslint-config-mooveit-standard

Usage

Shareable configs are designed to work using the extends feature of eslintrc.json files.

Add this to the eslintrc.json or .eslintrc file:

{
  "extends": "mooveit-standard"
}

Packages

Custom Rules

  • Prevent usage of setState in componentDidUpdate
  • Prevent usage of unknown DOM property
  • Prevent missing React when using JSX
  • No comma dangle
  • Single quotes
  • Optional prop types
  • No semi colons
  • Prefer let