0.1.3 • Published 5 years ago

eslint-config-aha v0.1.3

Weekly downloads
430
License
MIT
Repository
github
Last release
5 years ago

npm version

eslint-config-aha

Common ESLint configuration for Aha! projects, based on JavaScript Standard Style with some modifications.

Installation

Install from npm:

# with yarn
yarn add eslint-config-aha --dev

# without yarn
npm install eslint-config-aha --save-dev

The package has a number of peer dependencies; to install everything at once:

# with yarn
yarn add eslint eslint-config-aha eslint-config-standard eslint-config-standard-jsx eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-standard eslint-plugin-you-dont-need-lodash-underscore --dev

# without yarn
npm install eslint eslint-config-aha eslint-config-standard eslint-config-standard-jsx eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-standard eslint-plugin-you-dont-need-lodash-underscore --save-dev

Usage

Add to your .eslintrc file:

{
  "extends": "aha"
}

(The eslint-config- prefix is automatically assumed by ESLint).

Development

After checking out the repo, run yarn install to install dependencies.

There are a few simple tests to ensure the rules are a valid ESLint configuration; run yarn test to execute them.

Contributing

We are unlikely to accept external contributions to change configuration rules. You are welcome to fork or extend for your own purposes if you like the baseline but disagree with some of our settings. :)

Credits

This package uses JavaScript Standard Style as a baseline (and also mimics a lot of the eslint-config-standard package structure).