eslint-config-naturalatlas
A ESLint config for Natural Atlas projects.
Usage
With React
npm install --save-dev eslint eslint-plugin-react eslint-config-naturalatlas
- add
"extends": "naturalatlas/react"
to your .eslintrc - add
eslint --fix ./lib/**
to package.json test
script\
Without React
npm install --save-dev eslint eslint-config-naturalatlas
- add
"extends": "naturalatlas/base"
to your .eslintrc - add
eslint --fix ./lib/**
to package.json test
script\
Overrides
Some of the rules may be too strict for your project,
but you can easily override any rules or options like this:
{
"extends": "naturalatlas/base",
"rules": {
"space-before-function-paren": 0,
"indent": [2, 2]
},
"env": {
"mocha": true
}
}