eslint-config-naturalatlas
Advanced tools
Comparing version
{ | ||
"name": "eslint-config-naturalatlas", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Natural Atlas ESLint configuration", | ||
"main": "base.js", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -24,9 +24,12 @@ "test": "mocha ./test/index.js" | ||
"homepage": "https://github.com/naturalatlas/eslint-config-naturalatlas#readme", | ||
"dependencies": { | ||
"extend": "^3.0.0" | ||
"peerDepedencies": { | ||
"eslint": "^4.8.0", | ||
"eslint-config-airbnb": "^16.0.0", | ||
"eslint-config-airbnb-base": "^12.0.2", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.2", | ||
"eslint-plugin-react": "^7.4.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.4.0", | ||
"mocha": "^2.3.3" | ||
} | ||
"devDependencies": {}, | ||
"dependencies": {} | ||
} |
@@ -1,18 +0,22 @@ | ||
## eslint-config-naturalatlas | ||
# eslint-config-naturalatlas | ||
A [ESLint](http://eslint.org/) config for [Natural Atlas](https://github.com/naturalatlas) projects. | ||
A [ESLint](http://eslint.org/) config for [Natural Atlas](https://github.com/naturalatlas) projects that's based off [eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb). | ||
## Usage | ||
### Installation | ||
### With React | ||
``` | ||
$ npm install -g install-peerdeps | ||
$ install-peerdeps --dev eslint-config-naturalatlas | ||
``` | ||
1. `npm install --save-dev eslint eslint-plugin-react eslint-config-naturalatlas` | ||
2. add `"extends": "naturalatlas/react"` to your .eslintrc | ||
3. add `eslint --fix ./lib/**` to package.json `test` script\ | ||
### Usage | ||
### Without React | ||
```js | ||
// modern / transpiled environments | ||
{"extends": "naturalatlas"} | ||
1. `npm install --save-dev eslint eslint-config-naturalatlas` | ||
2. add `"extends": "naturalatlas/base"` to your .eslintrc | ||
3. add `eslint --fix ./lib/**` to package.json `test` script\ | ||
// when running directly | ||
{"extends": "naturalatlas/node"} | ||
{"extends": "naturalatlas/node4"} | ||
``` | ||
@@ -22,15 +26,9 @@ ### Overrides | ||
Some of the rules may be too strict for your project, | ||
but you can easily override any rules or options like this: | ||
but you can easily override any rules or options in your `.eslintrc`: | ||
```json | ||
{ | ||
"extends": "naturalatlas/base", | ||
"rules": { | ||
"space-before-function-paren": 0, | ||
"indent": [2, 2] | ||
}, | ||
"env": { | ||
"mocha": true | ||
} | ||
"extends": "naturalatlas", | ||
"rules": {} | ||
} | ||
``` |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
-100%0
-100%11
10%0
-100%4495
-42.2%87
-65.88%34
-5.56%- Removed
- Removed