Skip to content

mikechau/eslint-config-mc

Repository files navigation

eslint-config-mc

npm version Build Status Dependency Status devDependency Status

Based on eslint-airbnb-config. Provides a statically built eslint config file in the dist dir.

Installing

# 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

Usage

Configs

  • 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"
}

Development

git clone git@github.com:mikechau/eslint-config-mc.git
cd eslint-config-mc && npm install

Testing

npm test

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published