Skip to content

Commit

Permalink
Add .eslintignore to fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviervia committed Jul 25, 2017
1 parent 0e546bc commit ea9d983
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/integration/index.integration-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ describe('[integration] sagui', function () {
return sagui({ projectPath, action: actions.TEST_LINT })
})

it('should not lint the dist folder', () => {
return sagui({ projectPath, action: actions.BUILD })
.then(() => sagui({ projectPath, action: actions.TEST_LINT }))
})

it('should be possible to test (with coverage)', () => {
return sagui({ projectPath, action: actions.TEST_UNIT, coverage: true })
})
Expand Down
1 change: 1 addition & 0 deletions src/run/update/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function copyBase (projectPath) {

function copyDotFiles (projectPath) {
safeCopy(projectPath, '.editorconfig')
safeCopy(projectPath, '.eslintignore')
safeCopy(projectPath, '.eslintrc', diffCheckESLintrc)
safeCopy(projectPath, '.flowconfig')
}
Expand Down
2 changes: 2 additions & 0 deletions template/dot-files/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules

0 comments on commit ea9d983

Please sign in to comment.