eslint-config-sc
v1.0.1
Published
This package provides .eslintrc as an extensible shared config. It extends Airbnb's config.
Readme
eslint-config-sc
This package provides ESLint rules as an extensible shared config.
Extends Airbnb's config.
Table of Contents
Usage
eslint-config-sc
- Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-sc@latest" peerDependenciesLinux/OSX users can simply run the following to install:
(
export PKG=eslint-config-sc;
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 like:
npm install --save-dev eslint-config-sc eslint@^#.#.# eslint-plugin-import@^#.#.#- Extend the config in your eslintrc
// .eslintrc.js
module.exports = {
extends: "sc",
};Contributing
You can make sure this module lints with itself using npm run lint.
