Comparing version 0.3.2 to 0.4.0
13
index.js
@@ -16,4 +16,15 @@ #!/usr/bin/env node | ||
} else if (argv.b) { | ||
// eslintContent = browserrc; | ||
eslintContent = browserrc; | ||
} else if (argv.r) { | ||
eslintContent = reactrc; | ||
} else if (argv.h) { | ||
console.log('-n node rules'); | ||
console.log('-b browser rules'); | ||
console.log('-r react rules, cannot use yet!!'); | ||
console.log('-v vue rules, cannot use yet!!'); | ||
return; | ||
} else { | ||
@@ -20,0 +31,0 @@ eslintContent = noderc; |
{ | ||
"name": "eslint-g", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "Generator eslint config for pspgbhu", | ||
@@ -11,3 +11,4 @@ "main": "index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"patch": "npm version patch && npm publish" | ||
"patch": "npm version patch && npm publish", | ||
"postversion": "npm publish && git push --follow-tags" | ||
}, | ||
@@ -14,0 +15,0 @@ "keywords": [ |
const noderc = require('./noderc'); | ||
const reactrc = require('./reactrc'); | ||
const browserrc = require('./browserrc'); | ||
module.exports = { | ||
noderc, | ||
reactrc, | ||
browserrc, | ||
}; |
7141
11
180
3