Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
lock

Co-authored-by: Jürg Lehni <juerg@scratchdisk.com>
Co-authored-by: fisker <lionkay@gmail.com>
  • Loading branch information
3 people committed Jul 24, 2023
1 parent 3dcbe01 commit d1a22f1
Show file tree
Hide file tree
Showing 162 changed files with 825 additions and 546 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ module.exports = defineConfig({
curly: ['error'],
'linebreak-style': ['error', 'unix'],
'no-case-declarations': 'warn',
'no-restricted-globals': [
'error',
{
name: '__dirname',
message: "Use `fileURLToPath(new URL('.', import.meta.url))` instead.",
},
],
quotes: ['error', 'single', { avoidEscape: true }],
semi: ['error', 'always'],

Expand Down Expand Up @@ -122,6 +129,7 @@ module.exports = defineConfig({
'parens',
'pipeless',
'plist',
'postcss',
'pragma',
'prepend',
'readdir',
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report-issue-forms-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ body:
id: plugin-version
attributes:
label: Plugin Version
placeholder: v2.x.x
placeholder: v3.x.x
validations:
required: true
- type: input
id: prettier-version
attributes:
label: Prettier Version
placeholder: v2.x.x
placeholder: v3.x.x
validations:
required: true
- type: checkboxes
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ assignees: ''

| Tool | Version |
| --------- | ----------------------- |
| Plugin | v2.x.x |
| Prettier | v2.x.x |
| Plugin | v3.x.x |
| Prettier | v3.x.x |
| Framework | none,vue,angular,svelte |
| Node | vx.x.x |
| OS | win,linux,mac |
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @type {import('prettier').Options}
*/
module.exports = {
plugins: [require.resolve('prettier-plugin-organize-imports')],
plugins: ['prettier-plugin-organize-imports'],
singleQuote: true,
trailingComma: 'all',
overrides: [
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Next

[diff](https://github.com/prettier/plugin-pug/compare/2.5.2...main)
[diff](https://github.com/prettier/plugin-pug/compare/3.0.0...main)

# 3.0.0

[diff](https://github.com/prettier/plugin-pug/compare/2.5.2...3.0.0)

## BREAKING CHANGES

Drop support for Prettier v2 and CJS.

If you are using Prettier v2 / CJS, you need to stay on `2.5.2` or upgrade to Prettier v3.

# 2.5.2

Expand Down
3 changes: 1 addition & 2 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ You can write your `.prettierrc.cjs` like this to get fully type check support w
* @type {import('prettier').Options}
*/
module.exports = {
// `require.resolve` is needed for e.g. `pnpm`
plugins: [require.resolve('@prettier/plugin-pug')],
plugins: ['@prettier/plugin-pug'],

printWidth: 120,
singleQuote: true,
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "@prettier/plugin-pug",
"version": "2.5.2",
"version": "3.0.0",
"description": "Prettier Pug Plugin",
"main": "dist/index.js",
"scripts": {
"clean": "rimraf coverage .eslintcache dist junit.xml docs/.vitepress/dist pnpm-lock.yaml node_modules",
"build:clean": "rimraf dist",
Expand All @@ -19,6 +18,8 @@
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
"preflight": "pnpm install && run-s format lint build test ts-check"
},
"type": "module",
"module": "dist/index.js",
"keywords": [
"pug",
"prettier-plugin",
Expand Down Expand Up @@ -57,7 +58,6 @@
},
"devDependencies": {
"@types/node": "~20.4.4",
"@types/prettier": "~2.7.3",
"@typescript-eslint/eslint-plugin": "~6.1.0",
"@typescript-eslint/parser": "~6.1.0",
"@vitest/coverage-v8": "~0.33.0",
Expand All @@ -68,21 +68,21 @@
"eslint-gitignore": "~0.1.0",
"eslint-plugin-inclusive-language": "~2.2.0",
"eslint-plugin-jsdoc": "~46.4.4",
"eslint-plugin-prettier": "~4.2.1",
"eslint-plugin-prettier": "~5.0.0",
"eslint-plugin-spellcheck": "~0.0.20",
"npm-run-all": "~4.1.5",
"prettier": "2.8.8",
"prettier": "3.0.0",
"prettier-plugin-organize-imports": "~3.2.3",
"rimraf": "~5.0.1",
"typescript": "~5.1.6",
"vite": "~4.4.6",
"vite": "~4.4.7",
"vitepress": "1.0.0-beta.6",
"vitest": "~0.33.0"
},
"peerDependencies": {
"prettier": "^2.3.0"
"prettier": "^3.0.0"
},
"packageManager": "pnpm@8.6.9",
"packageManager": "pnpm@8.6.10",
"engines": {
"node": "^16.13.0 || >=18.0.0",
"npm": ">=7.10.0"
Expand Down

0 comments on commit d1a22f1

Please sign in to comment.