0.0.4 • Published 8 years ago
@copropr/eslint-config v0.0.4
@copropr/eslint-config
An ESLint configuration (@copropr/eslint-config), based on the StandardJS rules, but with a few modifications.
Usage
Shareable configs are designed to work with the extends feature of .eslintrc files.
You can learn more about Shareable Configs on the official ESLint website.
To use the JavaScript Standard Style shareable config, first run this:
# Using Yarn
yarn add -D @copropr/eslint-config eslint eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
# Using NPM
npm install --save-dev @copropr/eslint-config eslint eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-nodeThen, add this to your .eslintrc file:
{
"extends": "@copropr"
}Note: We omitted the eslint-config suffix since it is automatically assumed by ESLint.
Rules
eslint-config-copropr is based on StandardJS with the following changes:
- No semi-colons enforcement (
semiremoved) - No space before function parenthese enforcement (
space-before-function-parenremoved) - No enforcement of error variable handling in catch statements (
handle-callback-errremoved)