From 4a36a3b9b883f5ff5e9dc8010581dbfe498f941c Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Tue, 9 Jan 2018 14:48:09 -0500 Subject: [PATCH] feat: working generator --- app/index.js | 8 ++++++++ app/templates/eslintrc | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 app/templates/eslintrc diff --git a/app/index.js b/app/index.js index 04f6ca4..942dd55 100644 --- a/app/index.js +++ b/app/index.js @@ -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( diff --git a/app/templates/eslintrc b/app/templates/eslintrc new file mode 100644 index 0000000..71f1c22 --- /dev/null +++ b/app/templates/eslintrc @@ -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 + } +}