Skip to content

Commit

Permalink
refactor(packages/sui-lint): rename option to ignore-patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
jordevo committed Dec 3, 2023
1 parent 9f7d10d commit faa02f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sui-lint/bin/sui-lint-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ program
.option('--add-fixes')
.option('--staged')
.option('--fix', 'fix automatically problems with js files')
.option('--ignore-pattern <ignorePattern...>', 'Path pattern to ignore for linting')
.option('--ignore-patterns <ignorePatterns...>', 'Path patterns to ignore for linting')
.parse(process.argv)

const {addFixes, fix, ignorePattern = [], staged} = program.opts()
const {addFixes, fix, ignorePatterns = [], staged} = program.opts()

const {CI} = process.env
const EXTENSIONS = ['js', 'jsx', 'ts', 'tsx']
Expand All @@ -24,7 +24,7 @@ const DEFAULT_PATTERN = './'
const LINT_FORMATTER = 'stylish'
const baseConfig = {
...config,
ignorePatterns: IGNORE_PATTERNS.concat(getGitIgnoredFiles()).concat(ignorePattern)
ignorePatterns: IGNORE_PATTERNS.concat(getGitIgnoredFiles()).concat(ignorePatterns)
}

;(async function main() {
Expand Down

0 comments on commit faa02f3

Please sign in to comment.