Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
feat: working generator
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jan 9, 2018
1 parent 2964891 commit 4a36a3b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ const g = Generator.extend({
)
},

copyEslintrc () {
debug('Copying .eslintrc file')
this.fs.copy(
this.templatePath('eslintrc'),
this.destinationPath('.eslintrc')
)
},

copyIssueTemplate () {
debug('Copying issue template')
this.fs.copy(
Expand Down
14 changes: 14 additions & 0 deletions app/templates/eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": [
"plugin:cypress-dev/general",
"plugin:cypress-dev/tests"
],
"rules": {
"comma-dangle": "off",
"no-console": "off"
},
"env": {
"node": true,
"es6": true
}
}

0 comments on commit 4a36a3b

Please sign in to comment.