Comparing version 1.0.2 to 1.0.3
@@ -8,4 +8,4 @@ #! /usr/bin/env node | ||
const colors = require('colors/safe'); | ||
const { execSync } = require('child_process'); | ||
const help = require('./help'); | ||
const execSync = require('child_process').execSync; | ||
@@ -138,4 +138,3 @@ const configsDirectory = path.join(__dirname, '../configs/'); | ||
try { | ||
hasDirectoryProject = fs.statSync(path.join(configsDirectory, projectName)) | ||
.isDirectory(); | ||
hasDirectoryProject = fs.statSync(path.join(configsDirectory, projectName)).isDirectory(); | ||
} catch (e) { | ||
@@ -142,0 +141,0 @@ hasDirectoryProject = false; |
{ | ||
"name": "esbnb", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Adrien Valcke", | ||
@@ -17,3 +17,3 @@ "description": "the ESLint with Airbnb configuration installer", | ||
"type": "git", | ||
"url": "git@github.com:adrienvalcke/esbnb.git" | ||
"url": "git@github.com:adrienv1520/esbnb.git" | ||
}, | ||
@@ -36,10 +36,10 @@ "os": [ | ||
"dependencies": { | ||
"colors": "^1.1.2" | ||
"colors": "1.3.3" | ||
}, | ||
"devDependencies": { | ||
"chai": "3.5.0", | ||
"eslint": "3.15.0", | ||
"eslint-config-airbnb-base": "11.1.0", | ||
"eslint-plugin-import": "2.2.0", | ||
"mocha": "3.2.0" | ||
"chai": "4.1.2", | ||
"eslint": "5.9.0", | ||
"eslint-config-airbnb-base": "13.1.0", | ||
"eslint-plugin-import": "2.14.0", | ||
"mocha": "5.1.1" | ||
}, | ||
@@ -46,0 +46,0 @@ "preferGlobal": true, |
# esbnb, the ESLint with Airbnb configuration installer | ||
##Requirements | ||
## Requirements | ||
@@ -8,3 +8,3 @@ - **OS**: macOS or Linux | ||
##Installation | ||
## Installation | ||
@@ -15,3 +15,3 @@ It is recommended to install *esbnb* globally. | ||
##Usage | ||
## Usage | ||
@@ -24,3 +24,3 @@ ESLint can be installed with 3 configurations from Airbnb: *airbnb*, *airbnb-base* and *airbnb-base/legacy*. | ||
####Install ESLint with the Airbnb ESLint rules, including ECMAScript 6+ and React (default) | ||
#### Install ESLint with the Airbnb ESLint rules, including ECMAScript 6+ and React (default) | ||
@@ -31,3 +31,3 @@ At the root of your project, run: | ||
####Install ESLint with the Airbnb ESLint rules, including ECMAScript 6+ (base) | ||
#### Install ESLint with the Airbnb ESLint rules, including ECMAScript 6+ (base) | ||
@@ -38,3 +38,3 @@ At the root of your project, run: | ||
####Install ESLint with the Airbnb ESLint rules, including ECMAScript 5 and below (legacy) | ||
#### Install ESLint with the Airbnb ESLint rules, including ECMAScript 5 and below (legacy) | ||
@@ -45,3 +45,3 @@ At the root of your project, run: | ||
####Need basic help ? | ||
#### Need basic help ? | ||
@@ -53,3 +53,3 @@ At the root of your project, run: | ||
##Configuration | ||
## Configuration | ||
@@ -104,3 +104,3 @@ No configuration are required from your own. | ||
##Contribution | ||
## Contribution | ||
@@ -112,3 +112,3 @@ Please feel free to contribute to this little tool. Here is/are some work in progress: | ||
##Test | ||
## Test | ||
@@ -115,0 +115,0 @@ Run `npm test` to |
@@ -13,23 +13,2 @@ /** | ||
*/ | ||
const outputHelp = ` | ||
------------------------------------------ HELP ------------------------------------------ | ||
ESBNB, the eslint airbnb config installer | ||
Install ESLint with the Airbnb ESLint rules, including ECMAScript 6+ and React (default) | ||
$ esbnb | ||
Install ESLint with the Airbnb ESLint rules, including ECMAScript 6+ (base) | ||
$ esbnb base | ||
Install ESLint with the Airbnb ESLint rules, including ECMAScript 5 and below (legacy) | ||
$ esbnb legacy | ||
.eslintrc file will be created if not already and properly configured. | ||
---------------------------------------- END HELP ---------------------------------------- | ||
`; | ||
const is = Object.prototype.isPrototypeOf; | ||
@@ -243,3 +222,3 @@ | ||
const stdout = esbnb('-h'); | ||
expect(stdout.toString('utf8')).to.equal(outputHelp); | ||
expect(stdout.toString('utf8')).to.include('HELP'); | ||
}); | ||
@@ -249,3 +228,3 @@ | ||
const stdout = esbnb('-help'); | ||
expect(stdout.toString('utf8')).to.equal(outputHelp); | ||
expect(stdout.toString('utf8')).to.include('HELP'); | ||
}); | ||
@@ -255,3 +234,3 @@ | ||
const stdout = esbnb('xsjhdhdsjlq'); | ||
expect(stdout.toString('utf8')).to.equal(outputHelp); | ||
expect(stdout.toString('utf8')).to.include('HELP'); | ||
}); | ||
@@ -258,0 +237,0 @@ }); |
@@ -5,4 +5,8 @@ { | ||
"repository": {}, | ||
"devDependencies": {}, | ||
"devDependencies": { | ||
"eslint": "6.1.0", | ||
"eslint-config-airbnb-base": "14.0.0", | ||
"eslint-plugin-import": "2.18.2" | ||
}, | ||
"license": "UNLICENSED" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40273
866
+ Addedcolors@1.3.3(transitive)
- Removedcolors@1.4.0(transitive)
Updatedcolors@1.3.3