prettier-plugin-astro 0.0.7 → 0.0.11

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 (68) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +4 -2
  3. package/dist/index.js +867 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +30 -12
  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/workflows/ci.yml +0 -26
  16. package/.github/workflows/format.yml +0 -29
  17. package/.github/workflows/release.yml +0 -52
  18. package/.gitpod.yml +0 -9
  19. package/.prettierignore +0 -1
  20. package/.prettierrc.json +0 -7
  21. package/jsconfig.json +0 -3
  22. package/src/index.d.ts +0 -9
  23. package/src/index.js +0 -38
  24. package/src/options.js +0 -24
  25. package/src/parse.js +0 -8
  26. package/src/printer.js +0 -442
  27. package/src/utils.js +0 -558
  28. package/test/astro-prettier.test.mjs +0 -123
  29. package/test/fixtures/in/attribute-with-embedded-expr.astro +0 -6
  30. package/test/fixtures/in/basic.astro +0 -13
  31. package/test/fixtures/in/converts-to-shorthand.astro +0 -5
  32. package/test/fixtures/in/doctype-with-embedded-expr.astro +0 -26
  33. package/test/fixtures/in/doctype-with-extra-attributes.astro +0 -26
  34. package/test/fixtures/in/embedded-expr.astro +0 -26
  35. package/test/fixtures/in/embedded-in-markdown.md +0 -332
  36. package/test/fixtures/in/expr-and-html-comment.astro +0 -20
  37. package/test/fixtures/in/frontmatter.astro +0 -18
  38. package/test/fixtures/in/html-comment.astro +0 -5
  39. package/test/fixtures/in/maximum-call-stack-size-exceeded.astro +0 -1
  40. package/test/fixtures/in/preserve-tag-case.astro +0 -5
  41. package/test/fixtures/in/single-style-element.astro +0 -9
  42. package/test/fixtures/in/unclosed-tag.astro +0 -42
  43. package/test/fixtures/in/with-codespans.astro +0 -19
  44. package/test/fixtures/in/with-indented-sass.astro +0 -20
  45. package/test/fixtures/in/with-script.astro +0 -5
  46. package/test/fixtures/in/with-scss.astro +0 -24
  47. package/test/fixtures/in/with-styles.astro +0 -21
  48. package/test/fixtures/out/attribute-with-embedded-expr.astro +0 -6
  49. package/test/fixtures/out/basic.astro +0 -12
  50. package/test/fixtures/out/converts-to-shorthand.astro +0 -6
  51. package/test/fixtures/out/doctype-with-embedded-expr.astro +0 -23
  52. package/test/fixtures/out/doctype-with-extra-attributes.astro +0 -23
  53. package/test/fixtures/out/embedded-expr.astro +0 -22
  54. package/test/fixtures/out/embedded-in-markdown.md +0 -336
  55. package/test/fixtures/out/expr-and-html-comment.astro +0 -5
  56. package/test/fixtures/out/frontmatter.astro +0 -16
  57. package/test/fixtures/out/html-comment.astro +0 -5
  58. package/test/fixtures/out/maximum-call-stack-size-exceeded.astro +0 -2
  59. package/test/fixtures/out/preserve-tag-case.astro +0 -5
  60. package/test/fixtures/out/single-style-element.astro +0 -9
  61. package/test/fixtures/out/unclosed-tag.astro +0 -34
  62. package/test/fixtures/out/with-codespans.astro +0 -17
  63. package/test/fixtures/out/with-indented-sass.astro +0 -17
  64. package/test/fixtures/out/with-script.astro +0 -5
  65. package/test/fixtures/out/with-scss.astro +0 -21
  66. package/test/fixtures/out/with-styles.astro +0 -18
  67. package/test/package.json +0 -3
  68. 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.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 4a7d602: Bump ava
8
+ - d07451c: Bump @astrojs/parser from 0.20.2 to 0.20.3
9
+ - 2c164f7: Format spread operator
10
+ - f7cf7c1: Format markdown component content
11
+
12
+ ## 0.0.10
13
+
14
+ ### Patch Changes
15
+
16
+ - a7ca7bc: Format nested style tag content
17
+ - 2995e7c: Add Astro option: 'allow shorthand'
18
+ - 7ec632f: Typescript refactor
19
+ - 85f7f93: Add support for prettier options
20
+
21
+ ## 0.0.9
22
+
23
+ ### Patch Changes
24
+
25
+ - 8820423: Fix test macro 'PrettierMarkdown'
26
+ - a30ddcd: Bump @astrojs/parser from 0.15.0 to 0.20.2
27
+ - 695fc07: Add formatting for <Markdown> components
28
+ - 1bf9f7c: Support arbitrary attributes in style tags
29
+ - 395b3bd: Add basic support for indented sass
30
+ - 672afef: Add new line at the end of the file
31
+ - 20a298e: Add support for .sass formatting
32
+ - 915a6e2: Add support for prettier-ignore comments
33
+
34
+ ## 0.0.8
35
+
36
+ ### Patch Changes
37
+
38
+ - 87c3564: Bump mixme from 0.5.1 to 0.5.4 (#12)
39
+ - 87c3564: Bump @changesets/cli from 2.16.0 to 2.17.0 (#15)
40
+ - 87c3564: Bump eslint-plugin-ava from 12.0.0 to 13.0.0 (#13)
41
+ - 87c3564: Preserve tag case (#19)
42
+
3
43
  ## 0.0.7
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/snowpackjs/astro)
2
2
 
3
3
  ## Install [prettier-plugin-astro](https://www.npmjs.com/package/prettier-plugin-astro)
4
4
 
@@ -18,10 +18,12 @@ To get setup:
18
18
 
19
19
  1. `git clone git@github.com:snowpackjs/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