Skip to content

Commit

Permalink
Merge pull request #158 from bartocc/prettier-31
Browse files Browse the repository at this point in the history
  • Loading branch information
gitKrystan authored Dec 3, 2023
2 parents ee481f6 + 42d4826 commit e7a3694
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,16 @@ Prettier 3.0.0 and above

_If you already have a `"prettier"` section in `package.json`, remember that takes precedence over the `.prettierrc.js` file!_

1. Run `npm prettier --write . --plugin prettier-plugin-ember-template-tag`
1. Run prettier on your codebase

See <https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/113> and <https://github.com/prettier/prettier/issues/15351> for details on why using the `--plugin` flag is required here.
```shell
# With prettier >= 3.1
npm prettier --write .

# With prettier < 3.1
# See <https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/113> and <https://github.com/prettier/prettier/issues/15351> for details on why using the `--plugin` flag is required here.
npm prettier --write . --plugin prettier-plugin-ember-template-tag
```

## Opinions

Expand Down
6 changes: 3 additions & 3 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"private": true,
"version": "0.0.0",
"scripts": {
"example": "pnpm exec prettier . --write --plugin prettier-plugin-ember-template-tag",
"example-debug": "pnpm exec prettier . --write --plugin prettier-plugin-ember-template-tag --log-level debug",
"example": "pnpm exec prettier . --write",
"example-debug": "pnpm exec prettier . --write --log-level debug",
"test": "node ./bin/test.mjs"
},
"dependencies": {
"prettier": "^3.0.3",
"prettier": "^3.1.0",
"prettier-plugin-ember-template-tag": "workspace:^"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dependencies": {
"@babel/core": "^7.23.5",
"ember-cli-htmlbars": "^6.3.0",
"prettier": "^3.0.3"
"prettier": "^3.1.0"
},
"devDependencies": {
"@babel/types": "^7.23.5",
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e7a3694

Please sign in to comment.