npm(prettier-config): double-declare prettier xml plugin
Summary: Fixes T180. Quick hack, I guess. Following ../eslint-config by using deps not devDeps. patch version bump for not adding/removing pkgs per se. Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: land, update prettier pkg and do prettier commands. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Tags: #npm Maniphest Tasks: T180 Differential Revision: https://issuetracker.revi.xyz/D480
This commit is contained in:
parent
8615ae565f
commit
b495028e8f
3 changed files with 28 additions and 7 deletions
|
@ -1,11 +1,21 @@
|
||||||
# `@revi/prettier-config` changelog
|
# `@revi/prettier-config` changelog
|
||||||
|
|
||||||
|
Pre-`v0.1.0` changelog is not available.
|
||||||
|
|
||||||
|
New entry is listed at the top, and old logs may get truncated.
|
||||||
|
|
||||||
Version bump criteria follows:
|
Version bump criteria follows:
|
||||||
|
|
||||||
- major: When the plugin is removed.
|
- major: When the plugin is removed.
|
||||||
- minor: When the plugin is added.
|
- minor: When the plugin is added.
|
||||||
- patch: When the rule is modified (without plugin addition/removal).
|
- patch: When the rule is modified (without plugin addition/removal).
|
||||||
|
|
||||||
|
## v0.1.1
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- Added `@prettier/plugin-xml` to peerDependency to unbreak prettier error. ([T180](https://revi.xyz/t/180))
|
||||||
|
|
||||||
## v0.1.0
|
## v0.1.0
|
||||||
|
|
||||||
### New plugin
|
### New plugin
|
||||||
|
|
|
@ -21,6 +21,8 @@ ## Config
|
||||||
'prettier-plugin-sh',
|
'prettier-plugin-sh',
|
||||||
// https://github.com/bd82/toml-tools/tree/master/packages/prettier-plugin-toml
|
// https://github.com/bd82/toml-tools/tree/master/packages/prettier-plugin-toml
|
||||||
'prettier-plugin-toml',
|
'prettier-plugin-toml',
|
||||||
|
// https://github.com/prettier/plugin-xml
|
||||||
|
'@prettier/plugin-xml',
|
||||||
],
|
],
|
||||||
overrides: [
|
overrides: [
|
||||||
// Sort by parser alphabet.
|
// Sort by parser alphabet.
|
||||||
|
@ -65,6 +67,17 @@ ## Config
|
||||||
],
|
],
|
||||||
options: {parser: 'sh', keepPadding: true, minify: false},
|
options: {parser: 'sh', keepPadding: true, minify: false},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
files: ['*.svg', '*.xml'],
|
||||||
|
options: {
|
||||||
|
parser: 'xml',
|
||||||
|
singleAttributePerLine: false,
|
||||||
|
xmlQuoteAttributes: 'preserve',
|
||||||
|
xmlSelfClosingSpace: true,
|
||||||
|
xmlSortAttributesByKey: false,
|
||||||
|
xmlWhitespaceSensitivity: 'strict',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
files: '.yamllint',
|
files: '.yamllint',
|
||||||
options: {parser: 'yaml'},
|
options: {parser: 'yaml'},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"name": "@revi/prettier-config",
|
"name": "@revi/prettier-config",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "revi",
|
"name": "revi",
|
||||||
"email": "package-admin@revi.dev",
|
"email": "package-admin@revi.dev",
|
||||||
|
@ -11,17 +11,15 @@
|
||||||
"main": "prettier.config.js",
|
"main": "prettier.config.js",
|
||||||
"types": "./types/prettier.config.d.ts",
|
"types": "./types/prettier.config.d.ts",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
"prettier": "3.3.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
"@prettier/plugin-php": "0.22.2",
|
"@prettier/plugin-php": "0.22.2",
|
||||||
|
"@prettier/plugin-xml": "3.4.1",
|
||||||
"prettier": "3.3.2",
|
"prettier": "3.3.2",
|
||||||
"prettier-plugin-sh": "0.14.0",
|
"prettier-plugin-sh": "0.14.0",
|
||||||
"prettier-plugin-toml": "2.0.1"
|
"prettier-plugin-toml": "2.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
|
||||||
"@prettier/plugin-php": "0.22.2",
|
|
||||||
"prettier-plugin-sh": "0.14.0",
|
|
||||||
"prettier-plugin-toml": "2.0.1",
|
|
||||||
"@prettier/plugin-xml": "3.4.1"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"tsc": "tsc prettier.config.js --declaration --allowJs --emitDeclarationOnly --esModuleInterop --outdir types"
|
"tsc": "tsc prettier.config.js --declaration --allowJs --emitDeclarationOnly --esModuleInterop --outdir types"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue