@prettier/plugin-xml
Advanced tools
Comparing version 0.13.1 to 1.0.0
@@ -9,2 +9,12 @@ # Changelog | ||
## [1.0.0] - 2021-07-14 | ||
### Added | ||
- Support for the `bracketSameLine` option to mirror the core option. | ||
### Removed | ||
- The `xmlSelfClosingSpace` option is now removed to make it easier to maintain. | ||
## [0.13.1] - 2021-03-03 | ||
@@ -15,2 +25,3 @@ | ||
- Fixed a bug with newlines when there is empty content. | ||
## [0.13.0] - 2021-01-22 | ||
@@ -137,3 +148,4 @@ | ||
[unreleased]: https://github.com/prettier/plugin-xml/compare/v0.13.1...HEAD | ||
[unreleased]: https://github.com/prettier/plugin-xml/compare/v1.0.0...HEAD | ||
[1.0.0]: https://github.com/prettier/plugin-xml/compare/v0.13.1...v1.0.0 | ||
[0.13.1]: https://github.com/prettier/plugin-xml/compare/v0.13.0...v0.13.1 | ||
@@ -140,0 +152,0 @@ [0.13.0]: https://github.com/prettier/plugin-xml/compare/v0.12.0...v0.13.0 |
{ | ||
"name": "@prettier/plugin-xml", | ||
"version": "0.13.1", | ||
"version": "1.0.0", | ||
"description": "prettier plugin for XML", | ||
"main": "src/plugin.js", | ||
"main": "dist/plugin.js", | ||
"scripts": { | ||
"lint": "eslint --cache .", | ||
"prepublishOnly": "tsc -p tsconfig.build.json", | ||
"print": "prettier --plugin=.", | ||
@@ -15,3 +16,3 @@ "test": "jest" | ||
}, | ||
"author": "Kevin Deisz", | ||
"author": "Kevin Newton", | ||
"license": "MIT", | ||
@@ -23,9 +24,17 @@ "bugs": { | ||
"dependencies": { | ||
"@xml-tools/parser": "^1.0.2", | ||
"prettier": ">=1.10" | ||
"@xml-tools/parser": "^1.0.11", | ||
"prettier": ">=2.3" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^16.0.0", | ||
"@types/prettier": "^2.3.0", | ||
"@typescript-eslint/eslint-plugin": "^4.26.0", | ||
"@typescript-eslint/parser": "^4.26.0", | ||
"eslint": "^7.0.0", | ||
"eslint-config-prettier": "^8.0.0", | ||
"jest": "^26.0.0" | ||
"jest": "^27.0.1", | ||
"ts-jest": "^27.0.2", | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.3.2" | ||
}, | ||
@@ -35,2 +44,3 @@ "eslintConfig": { | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
@@ -43,21 +53,21 @@ ], | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"rules": { | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_" | ||
} | ||
] | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
} | ||
}, | ||
"eslintIgnore": [ | ||
"dist" | ||
], | ||
"jest": { | ||
"testRegex": ".test.js$" | ||
"preset": "ts-jest", | ||
"testRegex": ".test.ts$" | ||
}, | ||
"prettier": { | ||
"plugins": [ | ||
"." | ||
], | ||
"trailingComma": "none" | ||
} | ||
} |
@@ -25,3 +25,3 @@ <h1 align="center">Prettier for XML</h1> | ||
To run `prettier` with the XML plugin, you're going to need [`node`](https://nodejs.org/en/download/) (version `8.3` or newer). | ||
To run `prettier` with the XML plugin, you're going to need [`node`](https://nodejs.org/en/download/). | ||
@@ -50,8 +50,8 @@ If you're using the `npm` CLI, then add the plugin by: | ||
| API Option | CLI Option | Default | Description | | ||
| -------------------------- | ------------------------------ | :--------: | ------------------------------------------------------------------------------------------------ | | ||
| `printWidth` | `--print-width` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)). | | ||
| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)). | | ||
| `xmlSelfClosingSpace` | `--xml-self-closing-space` | `true` | Adds a space before self-closing tags. | | ||
| `xmlWhitespaceSensitivity` | `--xml-whitespace-sensitivity` | `"strict"` | How to handle whitespaces. Options are `"strict"` and `"ignore"`. | | ||
| API Option | CLI Option | Default | Description | | ||
| -------------------------- | ------------------------------ | :--------: | ----------------------------------------------------------------------------------------------------- | | ||
| `bracketSameLine` | `--bracket-same-line` | `true` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#bracket-same-line)) | | ||
| `printWidth` | `--print-width` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)). | | ||
| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)). | | ||
| `xmlWhitespaceSensitivity` | `--xml-whitespace-sensitivity` | `"strict"` | How to handle whitespaces. Options are `"strict"` and `"ignore"`. | | ||
@@ -58,0 +58,0 @@ Any of these can be added to your existing [prettier configuration |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
36378
11
11
648
1
Updated@xml-tools/parser@^1.0.11
Updatedprettier@>=2.3