Skip to content

Commit

Permalink
Merge branch 'master' into release-dependabot-upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoruiz committed Dec 4, 2023
2 parents f48c388 + 8cf4aea commit b35d7be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions packages/sui-lint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

# 4.35.0 (2023-12-04)


### Features

* **packages/sui-lint:** add ignore-pattern option ([9f7d10d](https://github.com/SUI-Components/sui/commit/9f7d10d905d8f7f49390b09a2b43fc54a7a2e668))



# 4.34.0 (2023-11-15)


Expand Down
5 changes: 3 additions & 2 deletions packages/sui-lint/bin/sui-lint-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ program
.option('--add-fixes')
.option('--staged')
.option('--fix', 'fix automatically problems with js files')
.option('--ignore-patterns <ignorePatterns...>', 'Path patterns to ignore for linting')
.parse(process.argv)

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

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

;(async function main() {
Expand Down
2 changes: 1 addition & 1 deletion packages/sui-lint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@s-ui/lint",
"version": "4.34.0",
"version": "4.35.0",
"description": "Linting CLI for sui packages",
"main": "./bin/sui-lint.js",
"bin": {
Expand Down

0 comments on commit b35d7be

Please sign in to comment.