Skip to content

chore: release eslint-plugin-svelte #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/chilly-lemons-love.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fluffy-chicken-happen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-fireants-shake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-months-sparkle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/purple-coats-vanish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-eagles-sing.md

This file was deleted.

18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# eslint-plugin-svelte

## 2.12.0

### Minor Changes

- [#291](https://github.com/ota-meshi/eslint-plugin-svelte/pull/291) [`049ac2d`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/049ac2db68a9a3c753cc4e5fdf178795b01d715c) Thanks [@renovate](https://github.com/apps/renovate)! - feat: update dependency svelte-eslint-parser to ^0.20.0

- [#284](https://github.com/ota-meshi/eslint-plugin-svelte/pull/284) [`1240968`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/1240968523fb7721c6ca3ea5bdf943247be4a099) Thanks [@baseballyama](https://github.com/baseballyama)! - feat: add `require-store-callbacks-use-set-param` rule

- [#281](https://github.com/ota-meshi/eslint-plugin-svelte/pull/281) [`8da870f`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/8da870fc6c7d2b00a067d8befe124576c623a907) Thanks [@baseballyama](https://github.com/baseballyama)! - feat: add `no-export-load-in-svelte-module-in-kit-pages` rule

- [#283](https://github.com/ota-meshi/eslint-plugin-svelte/pull/283) [`909979e`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/909979e004f5b069dbd4adb1a53a125ecda110a7) Thanks [@baseballyama](https://github.com/baseballyama)! - feat: add `svelte/valid-prop-names-in-kit-pages` rule

- [#289](https://github.com/ota-meshi/eslint-plugin-svelte/pull/289) [`2895f16`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/2895f16c0e62cd0e946e549f8fc147aef42c143b) Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: add `svelte/require-store-reactive-access` rule

### Patch Changes

- [#286](https://github.com/ota-meshi/eslint-plugin-svelte/pull/286) [`8802e14`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/8802e1456b3d0c2bf021a3086b5160c51f56b049) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency known-css-properties to ^0.26.0

## 2.11.0

### Minor Changes
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/no-export-load-in-svelte-module-in-kit-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "svelte/no-export-load-in-svelte-module-in-kit-pages"
description: "disallow exporting load functions in `*.svelte` module in Svelte Kit page components."
since: "v2.12.0"
---

# svelte/no-export-load-in-svelte-module-in-kit-pages

> disallow exporting load functions in `*.svelte` module in Svelte Kit page components.

- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>

## :book: Rule Details

This rule reports unexpected exported `load` function at `<script context="module">`.
Expand Down Expand Up @@ -57,6 +56,10 @@ Nothing. But if use are using not default routes folder, please set configuratio

- [SvelteKit Migration Guide (v1.0.0-next.405)](https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693)

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v2.12.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/no-export-load-in-svelte-module-in-kit-pages.ts)
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/require-store-callbacks-use-set-param.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "svelte/require-store-callbacks-use-set-param"
description: "store callbacks must use `set` param"
since: "v2.12.0"
---

# svelte/require-store-callbacks-use-set-param

> store callbacks must use `set` param

- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>

## :book: Rule Details

This rule disallows if `readable` / `writable` store's setter function doesn't use `set` parameter.<br>
Expand Down Expand Up @@ -72,6 +71,10 @@ Nothing.

- [Svelte - Docs > RUN TIME > svelte/store](https://svelte.dev/docs#run-time-svelte-store)

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v2.12.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/require-store-callbacks-use-set-param.ts)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/require-store-reactive-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "svelte/require-store-reactive-access"
description: "disallow to use of the store itself as an operand. Need to use $ prefix or get function."
since: "v2.12.0"
---

# svelte/require-store-reactive-access

> disallow to use of the store itself as an operand. Need to use $ prefix or get function.

- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.

## :book: Rule Details
Expand Down Expand Up @@ -91,6 +91,10 @@ export const storeValue = writable("hello")

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v2.12.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/require-store-reactive-access.ts)
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/valid-prop-names-in-kit-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "svelte/valid-prop-names-in-kit-pages"
description: "disallow props other than data or errors in Svelte Kit page components."
since: "v2.12.0"
---

# svelte/valid-prop-names-in-kit-pages

> disallow props other than data or errors in Svelte Kit page components.

- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>

## :book: Rule Details

This rule reports unexpected exported variables at `<script>`.<br>
Expand Down Expand Up @@ -59,6 +58,10 @@ Nothing. But if use are using not default routes folder, please set configuratio

- [SvelteKit Migration Guide (v1.0.0-next.405)](https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292707)

## :rocket: Version

This rule was introduced in eslint-plugin-svelte v2.12.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/valid-prop-names-in-kit-pages.ts)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-svelte",
"version": "2.11.0",
"version": "2.12.0",
"description": "ESLint plugin for Svelte using AST",
"repository": "git+https://github.com/ota-meshi/eslint-plugin-svelte.git",
"homepage": "https://ota-meshi.github.io/eslint-plugin-svelte",
Expand Down