From a67b75e02fb7200bd7ed71c0d67d2b8fc3703225 Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Thu, 4 Jul 2024 05:50:13 +0900 Subject: [PATCH] npm(prettier-config): consolidate globs Summary: `**/*` rules. Signed-off-by: Yongmin Hong Test Plan: verify the globs are as expected. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Tags: #npm Differential Revision: https://issuetracker.revi.xyz/D516 --- npm/prettier-config/CHANGELOG.md | 9 +++++++++ npm/prettier-config/README.md | 11 +++-------- npm/prettier-config/package.json | 2 +- npm/prettier-config/prettier.config.js | 11 +++-------- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/npm/prettier-config/CHANGELOG.md b/npm/prettier-config/CHANGELOG.md index 98f30db..1bdfa0a 100644 --- a/npm/prettier-config/CHANGELOG.md +++ b/npm/prettier-config/CHANGELOG.md @@ -10,6 +10,15 @@ # `@revi/prettier-config` changelog - minor: When the plugin is added. - patch: When the rule is modified (without plugin addition/removal). +## v0.1.2 + +Date: 2024-07-04 (KST) + +### Update + +- Update `**` globs and consolidate. +- Use `revi.kr/prettier-config` for homepage link. + ## v0.1.1 ### Fix diff --git a/npm/prettier-config/README.md b/npm/prettier-config/README.md index f08e7aa..b257601 100644 --- a/npm/prettier-config/README.md +++ b/npm/prettier-config/README.md @@ -32,19 +32,14 @@ ## Config }, { files: [ - '**.hujson', + '**/*.hujson', '.devcontainer.json', - '.devcontainer/*/devcontainer.json', - '.devcontainer/devcontainer.json', - '.vscode/*.json', + '.devcontainer/**/devcontainer.json', + '.vscode/**/*.json', '**/jsconfig.json', '**/jsconfig.*.json', '**/tsconfig.json', '**/tsconfig.*.json', - 'jsconfig.json', - 'jsconfig.*.json', - 'tsconfig.json', - 'tsconfig.*.json', ], options: {parser: 'jsonc', trailingComma: 'none'}, }, diff --git a/npm/prettier-config/package.json b/npm/prettier-config/package.json index ca2b383..d1cae2e 100644 --- a/npm/prettier-config/package.json +++ b/npm/prettier-config/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@revi/prettier-config", - "version": "0.1.1", + "version": "0.1.2", "author": { "name": "revi", "email": "package-admin@revi.dev", diff --git a/npm/prettier-config/prettier.config.js b/npm/prettier-config/prettier.config.js index 2f03dd3..a0b99fb 100644 --- a/npm/prettier-config/prettier.config.js +++ b/npm/prettier-config/prettier.config.js @@ -32,19 +32,14 @@ const config = { }, { files: [ - '**.hujson', + '**/*.hujson', '.devcontainer.json', - '.devcontainer/*/devcontainer.json', - '.devcontainer/devcontainer.json', - '.vscode/*.json', + '.devcontainer/**/devcontainer.json', + '.vscode/**/*.json', '**/jsconfig.json', '**/jsconfig.*.json', '**/tsconfig.json', '**/tsconfig.*.json', - 'jsconfig.json', - 'jsconfig.*.json', - 'tsconfig.json', - 'tsconfig.*.json', ], options: {parser: 'jsonc', trailingComma: 'none'}, },