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.
- package/CHANGELOG.md +40 -0
- package/README.md +5 -3
- package/dist/index.js +872 -0
- package/dist/index.js.map +1 -0
- package/package.json +29 -11
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -10
- package/.eslintrc +0 -9
- package/.github/CODEOWNERS +0 -1
- package/.github/ISSUE_TEMPLATE/---01-bug-report.yml +0 -31
- package/.github/ISSUE_TEMPLATE/---02-feature-request.yml +0 -50
- package/.github/ISSUE_TEMPLATE/---03-documentation.md +0 -7
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -15
- package/.github/dependabot.yml +0 -10
- package/.github/workflows/ci.yml +0 -24
- package/.github/workflows/format.yml +0 -29
- package/.github/workflows/release.yml +0 -52
- package/.gitpod.yml +0 -9
- package/.prettierignore +0 -1
- package/.prettierrc.json +0 -7
- package/jsconfig.json +0 -3
- package/src/index.d.ts +0 -9
- package/src/index.js +0 -38
- package/src/options.js +0 -24
- package/src/parse.js +0 -8
- package/src/printer.js +0 -452
- package/src/utils.js +0 -558
- package/test/astro-prettier.test.mjs +0 -123
- package/test/fixtures/in/attribute-with-embedded-expr.astro +0 -6
- package/test/fixtures/in/basic.astro +0 -13
- package/test/fixtures/in/converts-to-shorthand.astro +0 -5
- package/test/fixtures/in/doctype-with-embedded-expr.astro +0 -26
- package/test/fixtures/in/doctype-with-extra-attributes.astro +0 -26
- package/test/fixtures/in/embedded-expr.astro +0 -26
- package/test/fixtures/in/embedded-in-markdown.md +0 -332
- package/test/fixtures/in/expr-and-html-comment.astro +0 -20
- package/test/fixtures/in/frontmatter.astro +0 -18
- package/test/fixtures/in/html-comment.astro +0 -5
- package/test/fixtures/in/maximum-call-stack-size-exceeded.astro +0 -1
- package/test/fixtures/in/preserve-tag-case.astro +0 -8
- package/test/fixtures/in/single-style-element.astro +0 -9
- package/test/fixtures/in/unclosed-tag.astro +0 -42
- package/test/fixtures/in/with-codespans.astro +0 -19
- package/test/fixtures/in/with-indented-sass.astro +0 -20
- package/test/fixtures/in/with-script.astro +0 -8
- package/test/fixtures/in/with-scss.astro +0 -24
- package/test/fixtures/in/with-styles.astro +0 -21
- package/test/fixtures/out/attribute-with-embedded-expr.astro +0 -6
- package/test/fixtures/out/basic.astro +0 -12
- package/test/fixtures/out/converts-to-shorthand.astro +0 -6
- package/test/fixtures/out/doctype-with-embedded-expr.astro +0 -23
- package/test/fixtures/out/doctype-with-extra-attributes.astro +0 -23
- package/test/fixtures/out/embedded-expr.astro +0 -22
- package/test/fixtures/out/embedded-in-markdown.md +0 -336
- package/test/fixtures/out/expr-and-html-comment.astro +0 -5
- package/test/fixtures/out/frontmatter.astro +0 -16
- package/test/fixtures/out/html-comment.astro +0 -5
- package/test/fixtures/out/maximum-call-stack-size-exceeded.astro +0 -2
- package/test/fixtures/out/preserve-tag-case.astro +0 -8
- package/test/fixtures/out/single-style-element.astro +0 -9
- package/test/fixtures/out/unclosed-tag.astro +0 -34
- package/test/fixtures/out/with-codespans.astro +0 -17
- package/test/fixtures/out/with-indented-sass.astro +0 -17
- package/test/fixtures/out/with-script.astro +0 -8
- package/test/fixtures/out/with-scss.astro +0 -21
- package/test/fixtures/out/with-styles.astro +0 -18
- package/test/package.json +0 -3
- 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/
|
|
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:
|
|
19
|
+
1. `git clone git@github.com:withastro/prettier-plugin-astro.git`
|
|
20
20
|
1. `yarn`
|
|
21
|
-
1.
|
|
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
|
|