Skip to content

Commit

Permalink
feat(eslint): exclude coverage report from npm and git and eslintrc f…
Browse files Browse the repository at this point in the history
…rom npm
  • Loading branch information
Elad Ben-Israel committed Jun 18, 2020
1 parent 2043582 commit ffa9718
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export class Eslint extends Construct {
project.addScripts({ eslint: 'eslint . --ext .ts' });
project.addTestCommands('yarn eslint');

// exclude some files
project.gitignore.exclude('/coverage');
project.npmignore.exclude('/coverage');
project.npmignore.exclude('/.eslintrc.json');

new JsonFile(project, '.eslintrc.json', {
obj: {
env: {
Expand Down

0 comments on commit ffa9718

Please sign in to comment.