From 9f7d10d905d8f7f49390b09a2b43fc54a7a2e668 Mon Sep 17 00:00:00 2001 From: "jordi.munoz@adevinta.com" Date: Sun, 3 Dec 2023 20:40:56 +0100 Subject: [PATCH 1/3] feat(packages/sui-lint): add ignore-pattern option --- packages/sui-lint/bin/sui-lint-js.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/sui-lint/bin/sui-lint-js.js b/packages/sui-lint/bin/sui-lint-js.js index a42604e76..b6302bcd1 100755 --- a/packages/sui-lint/bin/sui-lint-js.js +++ b/packages/sui-lint/bin/sui-lint-js.js @@ -12,9 +12,10 @@ program .option('--add-fixes') .option('--staged') .option('--fix', 'fix automatically problems with js files') + .option('--ignore-pattern ', 'Path pattern to ignore for linting') .parse(process.argv) -const {addFixes, fix, staged} = program.opts() +const {addFixes, fix, ignorePattern = [], staged} = program.opts() const {CI} = process.env const EXTENSIONS = ['js', 'jsx', 'ts', 'tsx'] @@ -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(ignorePattern) } ;(async function main() { From faa02f31c3da4414a5757d17e1bead09dc2a9b8f Mon Sep 17 00:00:00 2001 From: "jordi.munoz@adevinta.com" Date: Sun, 3 Dec 2023 20:45:41 +0100 Subject: [PATCH 2/3] refactor(packages/sui-lint): rename option to ignore-patterns --- packages/sui-lint/bin/sui-lint-js.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/sui-lint/bin/sui-lint-js.js b/packages/sui-lint/bin/sui-lint-js.js index b6302bcd1..4e2f90642 100755 --- a/packages/sui-lint/bin/sui-lint-js.js +++ b/packages/sui-lint/bin/sui-lint-js.js @@ -12,10 +12,10 @@ program .option('--add-fixes') .option('--staged') .option('--fix', 'fix automatically problems with js files') - .option('--ignore-pattern ', 'Path pattern to ignore for linting') + .option('--ignore-patterns ', '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'] @@ -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() { From 8cf4aea70bde0a12b3ec0520e17d03b63ac002b4 Mon Sep 17 00:00:00 2001 From: sui-bot Date: Mon, 4 Dec 2023 08:30:21 +0000 Subject: [PATCH 3/3] release(packages/sui-lint): v4.35.0 [skip ci] --- packages/sui-lint/CHANGELOG.md | 9 +++++++++ packages/sui-lint/package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/sui-lint/CHANGELOG.md b/packages/sui-lint/CHANGELOG.md index 89ef2bac3..53dc664e3 100644 --- a/packages/sui-lint/CHANGELOG.md +++ b/packages/sui-lint/CHANGELOG.md @@ -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) diff --git a/packages/sui-lint/package.json b/packages/sui-lint/package.json index e620fd5f9..c310a375a 100644 --- a/packages/sui-lint/package.json +++ b/packages/sui-lint/package.json @@ -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": {