Based on eslint-airbnb-config. Provides a statically built eslint config file in the dist
dir.
# Recommended dependencies
npm install --save-dev eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint
# Optional dependencies
npm install --save-dev eslint-plugin-ava
npm install --save-dev eslint-plugin-mocha
# Install
npm install --save-dev eslint-config-mc
eslint-config-mc
- The default config, raises errors for violations.eslint-config-mc/warning
- The default config, but will raise warnings instead of errors.eslint-config-mc/es5
- Linting for es5 only, raises errors.eslint-config-mc/es5-warning
- Linting for es5 only, raises warnings.eslint-config-mc/ava
- Ava config, raises errors.eslint-config-mc/mocha
- Mocha config, raises warnings.
Edit your .eslintrc.*
and extend from the appropriate config.
Example:
// .eslintrc.json
{
"extends": "eslint-config-mc"
}
git clone git@github.com:mikechau/eslint-config-mc.git
cd eslint-config-mc && npm install
npm test
MIT