1.0.2 • Published 9 years ago
eslint-config-cerebuild v1.0.2
eslint-config-cerebuild
ESLint Configuration for cerebuild projects
The sharable ESLint config used in all cerebuild projects.
Usage
Default
The default ESLint configuration lints for ES6.
Install the default configuration package and eslint
dependency:
npm install --save-dev eslint-config-cerebuild eslint
Add the config to a .eslintrc.json
file or the eslintConfig
object in package.json
using the ESLint extends
attribute:
{
"extends": "cerebuild"
}
React.js
The React.js eslint configuration lints for both ES6 and React.js.
Install the React.js configuration package and eslint
dependency:
npm install --save-dev eslint-config-cerebuild eslint-plugin-react eslint
Add the config to a .eslintrc.json
file or the eslintConfig
object in package.json
using the ESLint extends
attribute:
{
"extends": "cerebuild/react"
}
Testing
A module for test-specific rules is available.
Add the config to a .eslintrc.json
file or the eslintConfig
object in package.json
using the ESLint extends
attribute:
{
"extends": "cerebuild/test"
}