1.2.2 • Published 8 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 peerDependenciesThen install install this package:
yarn add eslint-config-priver --dev
# or
npm install eslint-config-priver --save-devUsage
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"
}