1.2.2 • Published 7 years ago
eslint-config-priver v1.2.2
eslint-config-priver
Shareable config for eslint. Uses rules from eslint-plugin-import
, eslint-plugin-compat
, eslint-plugin-react
and eslint-plugin-node
.
Installation
Install the correct versions of each package, which are listed by the command:
yarn info eslint-config-priver peerDependencies
# or
npm info eslint-config-priver peerDependencies
Then install install this package:
yarn add eslint-config-priver --dev
# or
npm install eslint-config-priver --save-dev
Usage
Basic
Add the following in your .eslintrc.json
:
{
"root": true,
"extends": "eslint-config-priver"
}
React
Add the following in your .eslintrc.json
:
{
"root": true,
"extends": "eslint-config-priver/react",
"settings": {
"react": {
"version": "15.0"
}
}
}
By default the latest React stable release is used.
Node
Add the following in your .eslintrc.json
:
{
"root": true,
"extends": "eslint-config-priver/node"
}