1.0.0 • Published 7 years ago

eslint-config-mic v1.0.0

Weekly downloads
207
License
MIT
Repository
-
Last release
7 years ago

eslint-config-mic

This is a config that contains the linting rules used by developers for Mic!

Installation

  1. Install the config itself.
# install the config itself
npm install --save-dev eslint-config-mic
  1. If you haven't already, install install-peerdeps globally.
npm install -g install-peerdeps
  1. Install the peer dependencies of eslint-config-mic.
install-peerdeps --dev eslint-config-mic
  1. Create an .eslintrc file in the root directory of your project that looks like this:
// .eslintrc
{
  "extends": [
    'mic'
  ]
}

If you would like to use the flow version of the linter make your .eslintrc file look like this:

// .eslintrc
{
  "extends": [
    'mic/flow'
  ]
}
  1. You can run the linter in your npm scripts like this:
"scripts": {
  "lint": "eslint ."
}