Skip to content

Commit

Permalink
Add **/templates to .eslintignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mischah committed Apr 7, 2017
1 parent 774bd53 commit 6894ebe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('generator:app', () => {

it('creates files', () => {
const expected = [
'.eslintignore',
'README.md',
'package.json',
'generators/app/index.js',
Expand Down Expand Up @@ -63,5 +64,9 @@ describe('generator:app', () => {
assert.fileContent('README.md', 'yo temp');
assert.fileContent('README.md', 'yeoman/generator-temp');
});

it('fills the .eslintignore with correct content', () => {
assert.fileContent('.eslintignore', '**/templates\n');
});
});
});
4 changes: 4 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ module.exports = class extends Generator {
this.fs.writeJSON(this.destinationPath('package.json'), pkg);
}

conflicts() {
this.fs.append(this.destinationPath('.eslintignore'), '**/templates\n');
}

install() {
this.installDependencies({bower: false});
}
Expand Down

0 comments on commit 6894ebe

Please sign in to comment.