Skip to content

Commit

Permalink
Ignore *.min.* files from being linted πŸ‘¨β€πŸŽ€
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Jul 17, 2024
1 parent 167c566 commit e3e5345
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ const runLinter = async ({ filePattern, linter }: RunLinter) => {

const files = await sourceFiles({
filePattern,
ignore: '**/+(coverage|node_modules)/**',
ignore: [
'**/*.min.*',
'**/+(coverage|node_modules)/**',
],
linter,
})

Expand Down Expand Up @@ -93,7 +96,10 @@ program
'**/*.{md,mdx}',
'**/*.{css,scss,less,sass,styl,stylus}',
],
ignorePatterns: ['**/+(coverage|node_modules)/**'],
ignorePatterns: [
'**/*.min.*',
'**/+(coverage|node_modules)/**',
],
})

fileChangeEvent.on(Events.FILE_CHANGED, ({ message }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/sourceFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { pluralise } from '@Utils/transform'

interface SourceFiles {
filePattern: string
ignore: string
ignore: Array<string> | string
linter: Linter
}

Expand Down

0 comments on commit e3e5345

Please sign in to comment.