Comparing version 0.1.1 to 0.2.0
@@ -1,2 +0,2 @@ | ||
#! node | ||
#!/usr/bin/env node | ||
@@ -10,3 +10,3 @@ const fs = require('fs'); | ||
const PATH = path.resolve(); | ||
const eslintContent = null; | ||
let eslintContent = null; | ||
@@ -24,4 +24,4 @@ if (argv.n) { | ||
fs.writeFile(PATH + '.eslintrc.js', eslintContent, (e) => { | ||
fs.writeFile(PATH + '/.eslintrc.js', eslintContent, (e) => { | ||
console.log('Generator success!'.green); | ||
}); |
{ | ||
"name": "eslint-g", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Generator eslint config for pspgbhu", | ||
"main": "index.js", | ||
"bin": { | ||
"eslint-g": "./index.js" | ||
"eslint-g": "./bin/eslint-g" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "./bin/eslint-g", | ||
"clean": "rm .eslintrc.js" | ||
}, | ||
@@ -12,0 +14,0 @@ "keywords": [ |
@@ -5,3 +5,3 @@ const noderc = require('./noderc'); | ||
module.exports = { | ||
JSON.stringify(noderc), | ||
noderc, | ||
}; |
@@ -1,4 +0,3 @@ | ||
const commonrc = require('./commonrc'); | ||
const rc = { | ||
module.exports = | ||
`{ | ||
env: { | ||
@@ -15,7 +14,17 @@ "node": true, | ||
rules: { | ||
} | ||
"no-restricted-syntax": ["off", "BinaryExpression[operator='in']"], | ||
"import/imports-first": 0, | ||
'import/no-dynamic-require': 0, | ||
"no-unused-vars": 0, | ||
"no-console": 0, | ||
"no-underscore-dangle": 0, | ||
"arrow-parens": 0, | ||
"no-param-reassign": 0, | ||
"no-unused-expressions": 0, | ||
"padded-blocks": 0, | ||
"prefer-const": 1, | ||
"linebreak-style":0, | ||
"max-len":0, | ||
}, | ||
}; | ||
Object.assign(rc.rules, commonrc.rules); | ||
module.exports = rc; | ||
`; |
3874
51