1.0.6 • Published 8 years ago
eslint-config-fuzzy v1.0.6
Description
eslint config for Fuzzy's Javascript projects.
Usage
Add the eslint
and eslint-config-fuzzy
modules to your devDependencies in your project's package.json file. For example:
"devDependencies":
"eslint": "^2.11.1",
"eslint-config-fuzzy": "^1.0.0"
}
Add a .eslintrc file to the root of your project:
{
"extends": [
"fuzzy"
]
}
Add lint scripts to the scripts
block in your project's package.json:
"scripts": {
"lint": "eslint [YOUR_SOURCE_DIR]",
"lint-fix": "eslint --fix [YOUR_SOURCE_DIR]"
}
Run lint!
$ npm run lint
or, to auto-fix automatically fixable errors:
$ npm run lint-fix
Publishing a new version
Prerequisites
- Create a npm user
- Ask Stephen to add you as a contributor to the npm module
Publishing to npm
- Update the version in package.json
$ npm publish
- If you've published a new major revision, inform the rest of the team so they can update their respective dependencies