Skip to content

Commit

Permalink
fix: linter always lint all files instead of committed
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox committed Sep 10, 2019
1 parent 2dd8028 commit c337642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const reportOnly = argv.reportOnly
'.prettierignore',
'--ext',
'tsx,ts,jsx,js',
'./src/',
...(argv._.length ? argv._ : ['./src/']),
...(reportOnly ? [] : ['--cache', '--fix']),
])
: null
!argv.noPrettier
? await spawn('prettier', [
'./**/*.{ts,tsx,jsx,js}',
...(argv._.length ? argv._ : ['./**/*.{ts,tsx,jsx,js}']),
...(reportOnly ? ['--check', '--loglevel', 'log'] : ['--write', '--loglevel', 'warn']),
])
: null
Expand Down

0 comments on commit c337642

Please sign in to comment.