2.1.2 • Published 8 years ago
eslint-config-spec-base v2.1.2
eslint-config-spec-base
Provides a base set of ESLint rules and plugins to be shared by
@spec/cliprojects.
Usage
npm install eslint-config-spec-base --save
# or
yarn add eslint-config-spec-baseIn addition, eslint-config-spec-base requires eslint and eslint-plugin-import to be installed. You can install the correct versions of each package by running the following command:
npm info "eslint-config-spec-base@latest" peerDependenciesThis typically gives you an output like:
{ eslint: '^3.19.0', 'eslint-plugin-import': '^2.2.0' }Which you can then use like:
npm i eslint@^3.19.0 eslint-plugin-import@^2.2.0 --save-devFinally, just add "extends": "spec-base" to your .eslintrc.
In addition, we also have a sample project available in the examples folder of this project.