eslint-config-mic
v1.0.0
Published
an eslint config used by the development team at mic
Downloads
65
Readme
eslint-config-mic
This is a config that contains the linting rules used by developers for Mic!
Installation
- Install the config itself.
# install the config itself
npm install --save-dev eslint-config-mic
- If you haven't already, install
install-peerdeps
globally.
npm install -g install-peerdeps
- Install the peer dependencies of
eslint-config-mic
.
install-peerdeps --dev eslint-config-mic
- 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'
]
}
- You can run the linter in your npm scripts like this:
"scripts": {
"lint": "eslint ."
}