Skip to content

Commit

Permalink
fix: do not generate eslintrc.js, use poetic in .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Chun-Yang committed Jun 26, 2016
1 parent 7a924e7 commit d29f60a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
8 changes: 1 addition & 7 deletions lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@ module.exports = function create(projectName) {
packageJSONPath, `${JSON.stringify(packageJSONObject, null, 2)}\n`
);

// eslintrc file
const eslintrcJSPath = path.resolve('./.eslintrc.js');
const eslintrcJSObject = { extends: 'poetic' };
fs.writeFileSync(
eslintrcJSPath, `${JSON.stringify(eslintrcJSObject, null, 2)}\n`
);

// copy boilerplate
logTask('Copy boilerplate');
const templatesPath = path.resolve(__dirname, '../templates');
cp('-R', `${templatesPath}/.`, './');
Expand Down
13 changes: 1 addition & 12 deletions templates/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
{
"extends": "airbnb",
"rules": {
"import/no-unresolved": [
2, { "ignore": ["^meteor/"] }
]
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
}
"extends": "poetic"
}

0 comments on commit d29f60a

Please sign in to comment.