| module.exports = { | ||
| packages: [ | ||
| 'eslint', | ||
| 'eslint-config-standard', | ||
| 'eslint-plugin-standard', | ||
| 'eslint-plugin-promise', | ||
| 'eslint-plugin-import', | ||
| 'eslint-plugin-node', | ||
| ], | ||
| eslintrc: `{ | ||
| "extends": "standard" | ||
| } | ||
| `, | ||
| }; |
+1
-1
@@ -37,3 +37,3 @@ { | ||
| }, | ||
| "version": "3.0.0" | ||
| "version": "3.1.0" | ||
| } |
+5
-8
@@ -6,13 +6,8 @@ # Eastwood | ||
| Eastwood aims to provide simple setup of ESLint and editor configurations. | ||
| 3.0.0 correctly installs packages as devDependencies. | ||
| 3.0.0+ correctly installs packages as devDependencies. | ||
| ## Installation | ||
| ## Installation & Use | ||
| ```bash | ||
| npm install -g eastwood | ||
| ``` | ||
| ## Use | ||
| ```bash | ||
| eastwood airbnb | ||
@@ -26,2 +21,4 @@ ``` | ||
| * `google` - The [Google Style Guide](https://google.github.io/styleguide/jsguide.html) as provided by [eslint-config-google](https://www.npmjs.com/package/eslint-config-google). | ||
| * `standard` - The [Standard Style Guide](https://github.com/standard/standard) using the [standard](https://www.npmjs.com/package/standard) package. | ||
| * `standard-eslint` - The [Standard Style Guide](https://github.com/standard/standard) as provided by [eslint-config-standard](https://www.npmjs.com/package/eslint-config-standard). | ||
@@ -33,3 +30,3 @@ If no ruleset is provided, `airbnb` is used as default. | ||
| * Updating `.eslintrc` rather than just an initial write. | ||
| * Updating ``.editorconfig` rather than just an initial write. | ||
| * Updating `.editorconfig` rather than just an initial write. | ||
@@ -36,0 +33,0 @@ And maybe: |
+6
-0
@@ -7,2 +7,3 @@ const cmd = require('node-cmd'); | ||
| const formatGoogle = require('../formats/google'); | ||
| const formatStandardEslint = require('../formats/standard-eslint'); | ||
@@ -36,4 +37,9 @@ const installPackages = (packageList = []) => new Promise((resolve, reject) => { | ||
| }, | ||
| standard() { | ||
| return installPackages(['standard']); | ||
| }, | ||
| 'standard-eslint': () => installPackages(formatStandardEslint.packages) | ||
| .then(rcFile.chainEdit('.eslintrc', formatStandardEslint.eslintrc)), | ||
| }; | ||
| module.exports = configs; |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
8471
10.95%13
8.33%173
13.07%0
-100%35
-7.89%