eslint-config-aargh

1.2.2 • Public • Published

eslint-config-aargh

npm version

This package provides an extensible ESLint base configuration for general purposes.

How to install

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires the eslint package along with the following eslint plugins,

  • eslint-plugin-import,
  • eslint-plugin-node,
  • eslint-plugin-promise

Install the correct versions of each package, which are listed by the following command.

npm info "eslint-config-aargh@latest" peerDependencies

If you are using npm 5+, use can use the following shortcut instead.

npx install-peerdeps --dev eslint-config-aargh

In case you are using npm < 5 you can run the following command.

(
  export PKG=eslint-config-aargh;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

Which produces and runs a command as the following.

  npm install --save-dev eslint-config-aargh eslint@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-node@^#.#.# eslint-plugin-promise@^#.#.#

How to use

Create an .eslintrc file under the root folder of your project and add the following lines.

{
  "extends": "aargh",
  "rules": {}
}

Add rules into the rules property to override any default rules set by this configuration.

Package Sidebar

Install

npm i eslint-config-aargh

Weekly Downloads

2

Version

1.2.2

License

MIT

Unpacked Size

22.9 kB

Total Files

17

Last publish

Collaborators

  • tzeikob