prettier-plugin-astro 0.0.8 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +5 -3
  3. package/dist/index.js +872 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +29 -11
  6. package/.changeset/README.md +0 -8
  7. package/.changeset/config.json +0 -10
  8. package/.eslintrc +0 -9
  9. package/.github/CODEOWNERS +0 -1
  10. package/.github/ISSUE_TEMPLATE/---01-bug-report.yml +0 -31
  11. package/.github/ISSUE_TEMPLATE/---02-feature-request.yml +0 -50
  12. package/.github/ISSUE_TEMPLATE/---03-documentation.md +0 -7
  13. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  14. package/.github/PULL_REQUEST_TEMPLATE.md +0 -15
  15. package/.github/dependabot.yml +0 -10
  16. package/.github/workflows/ci.yml +0 -24
  17. package/.github/workflows/format.yml +0 -29
  18. package/.github/workflows/release.yml +0 -52
  19. package/.gitpod.yml +0 -9
  20. package/.prettierignore +0 -1
  21. package/.prettierrc.json +0 -7
  22. package/jsconfig.json +0 -3
  23. package/src/index.d.ts +0 -9
  24. package/src/index.js +0 -38
  25. package/src/options.js +0 -24
  26. package/src/parse.js +0 -8
  27. package/src/printer.js +0 -452
  28. package/src/utils.js +0 -558
  29. package/test/astro-prettier.test.mjs +0 -123
  30. package/test/fixtures/in/attribute-with-embedded-expr.astro +0 -6
  31. package/test/fixtures/in/basic.astro +0 -13
  32. package/test/fixtures/in/converts-to-shorthand.astro +0 -5
  33. package/test/fixtures/in/doctype-with-embedded-expr.astro +0 -26
  34. package/test/fixtures/in/doctype-with-extra-attributes.astro +0 -26
  35. package/test/fixtures/in/embedded-expr.astro +0 -26
  36. package/test/fixtures/in/embedded-in-markdown.md +0 -332
  37. package/test/fixtures/in/expr-and-html-comment.astro +0 -20
  38. package/test/fixtures/in/frontmatter.astro +0 -18
  39. package/test/fixtures/in/html-comment.astro +0 -5
  40. package/test/fixtures/in/maximum-call-stack-size-exceeded.astro +0 -1
  41. package/test/fixtures/in/preserve-tag-case.astro +0 -8
  42. package/test/fixtures/in/single-style-element.astro +0 -9
  43. package/test/fixtures/in/unclosed-tag.astro +0 -42
  44. package/test/fixtures/in/with-codespans.astro +0 -19
  45. package/test/fixtures/in/with-indented-sass.astro +0 -20
  46. package/test/fixtures/in/with-script.astro +0 -8
  47. package/test/fixtures/in/with-scss.astro +0 -24
  48. package/test/fixtures/in/with-styles.astro +0 -21
  49. package/test/fixtures/out/attribute-with-embedded-expr.astro +0 -6
  50. package/test/fixtures/out/basic.astro +0 -12
  51. package/test/fixtures/out/converts-to-shorthand.astro +0 -6
  52. package/test/fixtures/out/doctype-with-embedded-expr.astro +0 -23
  53. package/test/fixtures/out/doctype-with-extra-attributes.astro +0 -23
  54. package/test/fixtures/out/embedded-expr.astro +0 -22
  55. package/test/fixtures/out/embedded-in-markdown.md +0 -336
  56. package/test/fixtures/out/expr-and-html-comment.astro +0 -5
  57. package/test/fixtures/out/frontmatter.astro +0 -16
  58. package/test/fixtures/out/html-comment.astro +0 -5
  59. package/test/fixtures/out/maximum-call-stack-size-exceeded.astro +0 -2
  60. package/test/fixtures/out/preserve-tag-case.astro +0 -8
  61. package/test/fixtures/out/single-style-element.astro +0 -9
  62. package/test/fixtures/out/unclosed-tag.astro +0 -34
  63. package/test/fixtures/out/with-codespans.astro +0 -17
  64. package/test/fixtures/out/with-indented-sass.astro +0 -17
  65. package/test/fixtures/out/with-script.astro +0 -8
  66. package/test/fixtures/out/with-scss.astro +0 -21
  67. package/test/fixtures/out/with-styles.astro +0 -18
  68. package/test/package.json +0 -3
  69. package/test/test-utils.mjs +0 -35
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # prettier-plugin-astro
2
2
 
3
+ ## 0.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - ab70152: Fix a bug in "allow shorthand" option (#87)
8
+ - 08c5fc6: Bump ava to v4.0.1
9
+ - 4eebc6c: Fix comment error when nested
10
+ - e28d1cf: Format html using only the plugin itself
11
+
12
+ ## 0.0.11
13
+
14
+ ### Patch Changes
15
+
16
+ - 4a7d602: Bump ava
17
+ - d07451c: Bump @astrojs/parser from 0.20.2 to 0.20.3
18
+ - 2c164f7: Format spread operator
19
+ - f7cf7c1: Format markdown component content
20
+
21
+ ## 0.0.10
22
+
23
+ ### Patch Changes
24
+
25
+ - a7ca7bc: Format nested style tag content
26
+ - 2995e7c: Add Astro option: 'allow shorthand'
27
+ - 7ec632f: Typescript refactor
28
+ - 85f7f93: Add support for prettier options
29
+
30
+ ## 0.0.9
31
+
32
+ ### Patch Changes
33
+
34
+ - 8820423: Fix test macro 'PrettierMarkdown'
35
+ - a30ddcd: Bump @astrojs/parser from 0.15.0 to 0.20.2
36
+ - 695fc07: Add formatting for <Markdown> components
37
+ - 1bf9f7c: Support arbitrary attributes in style tags
38
+ - 395b3bd: Add basic support for indented sass
39
+ - 672afef: Add new line at the end of the file
40
+ - 20a298e: Add support for .sass formatting
41
+ - 915a6e2: Add support for prettier-ignore comments
42
+
3
43
  ## 0.0.8
4
44
 
5
45
  ### Patch Changes
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Beta Prettier Plugin for [Astro](https://github.com/snowpackjs/astro) -- 🚧 Caution! May break your project 🚧
1
+ # Beta Prettier Plugin for [Astro](https://github.com/withastro/astro)
2
2
 
3
3
  ## Install [prettier-plugin-astro](https://www.npmjs.com/package/prettier-plugin-astro)
4
4
 
@@ -16,12 +16,14 @@ to your `package.json` and create a `.prettierignore` to ignore any files.
16
16
 
17
17
  To get setup:
18
18
 
19
- 1. `git clone git@github.com:snowpackjs/prettier-plugin-astro.git`
19
+ 1. `git clone git@github.com:withastro/prettier-plugin-astro.git`
20
20
  1. `yarn`
21
- 1. Run tests with `yarn test`
21
+ 1. `yarn build`
22
+ 1. Run tests with [`yarn test`](https://github.com/avajs/ava/tree/main/docs)
22
23
  1. Lint code with `yarn lint`
23
24
  1. Format code with `yarn format`
24
25
  1. Run `yarn changeset` to add your changes to the changelog on version bump.
26
+ Most changes to the plugin should be `patch` changes while we're before `1.0.0`.
25
27
 
26
28
  ## Resources for contributing
27
29