diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 7daff3f1ab..220af11834 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,7 +1,7 @@ ------- +--- Before filing an issue we'd appreciate it if you could take a moment to ensure there isn't already an open issue or pull-request. ------ +--- If there's an existing issue, please add a :+1: reaction to the description of the issue. One way we prioritize issues is by the number of :+1: reactions on @@ -23,7 +23,6 @@ as you can including the following. - Svelte version (Please check you can reproduce the issue with the latest release!) - Whether your project uses Webpack or Rollup -- *Repeatable steps to reproduce the issue* +- _Repeatable steps to reproduce the issue_ -Thanks for being part of Svelte! -------- +## Thanks for being part of Svelte! diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 38a971864b..2e484e5ca2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,6 +1,6 @@ name: "\U0001F41E Bug report" description: Report an issue with Svelte -labels: ["triage: bug"] +labels: ['triage: bug'] body: - type: markdown attributes: @@ -26,7 +26,7 @@ body: id: logs attributes: label: Logs - description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text." + description: 'Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text.' render: shell - type: textarea id: system-info diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 2174f851a0..08aa9adcb9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,4 +1,4 @@ -name: "Feature Request" +name: 'Feature Request' description: Request a new Svelte feature labels: [enhancement] body: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 05b48f2ae0..7937ecb7d5 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,8 +1,10 @@ ### Before submitting the PR, please make sure you do the following + - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [ ] Prefix your PR title with `feat:`, `fix:`, `chore:`, or `docs:`. - [ ] This message body should clearly illustrate what problems it solves. - [ ] Ideally, include a test that fails without this PR but passes with it. ### Tests -- [ ] Run the tests with `npm test` and lint the project with `npm run lint` + +- [ ] Run the tests with `npm test` and lint the project with `npm run lint` diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e0ce53864..2de835c347 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI on: push: - branches: [ master ] + branches: [master] pull_request: permissions: contents: read # to fetch code (actions/checkout) diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..17880ca360 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,11 @@ +/*.js +/*.mjs +/package.json +package-lock.json +elements/* +scripts/* +/src +/test +.svelte-kit +types +.vercel \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..de6794b8e5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "printWidth": 100, + "useTabs": true, + "tabWidth": 2, + "trailingComma": "none", + "plugins": ["prettier-plugin-svelte"] +} diff --git a/CHANGELOG.md b/CHANGELOG.md index d5568dce50..71c736d2a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,2545 +2,2533 @@ ## 3.58.0 -* Add `bind:innerText` for `contenteditable` elements ([#3311](https://github.com/sveltejs/svelte/issues/3311)) -* Add support for CSS `@container` queries ([#6969](https://github.com/sveltejs/svelte/issues/6969)) -* Respect `preserveComments` in DOM output ([#7182](https://github.com/sveltejs/svelte/pull/7182)) -* Allow use of `document` for `target` in typings ([#7554](https://github.com/sveltejs/svelte/pull/7554)) -* Add `a11y-interactive-supports-focus` warning ([#8392](https://github.com/sveltejs/svelte/pull/8392)) -* Fix equality check when updating dynamic text ([#5931](https://github.com/sveltejs/svelte/issues/5931)) -* Relax `a11y-no-noninteractive-element-to-interactive-role` warning ([#8402](https://github.com/sveltejs/svelte/pull/8402)) -* Properly handle microdata attributes ([#8413](https://github.com/sveltejs/svelte/issues/8413)) -* Prevent name collision when using computed destructuring variables ([#8417](https://github.com/sveltejs/svelte/issues/8417)) -* Fix escaping ` +```svelte + +```svelte +