Skip to content

Commit b04f604

Browse files
chore: release eslint-plugin-svelte (#314)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ad1dfdd commit b04f604

File tree

9 files changed

+41
-21
lines changed

9 files changed

+41
-21
lines changed

.changeset/kind-boats-clean.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/little-points-poke.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pink-zoos-wonder.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# eslint-plugin-svelte
22

3+
## 2.14.0
4+
5+
### Minor Changes
6+
7+
- [#310](https://github.com/ota-meshi/eslint-plugin-svelte/pull/310) [`6d392c4`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/6d392c4ac1d94e6f296858da99454198774c6bec) Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: improve `svelte/indent` rule to support more ts syntax
8+
9+
- [#308](https://github.com/ota-meshi/eslint-plugin-svelte/pull/308) [`a9c4912`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/a9c4912b9d23fe7557786445fa8180a7b35bda21) Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: add `svelte/no-dupe-use-directives` rule
10+
11+
- [#308](https://github.com/ota-meshi/eslint-plugin-svelte/pull/308) [`a9c4912`](https://github.com/ota-meshi/eslint-plugin-svelte/commit/a9c4912b9d23fe7557786445fa8180a7b35bda21) Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: add `svelte/no-dupe-on-directives` rule
12+
313
## 2.13.1
414

515
### Patch Changes

docs/rules/no-dupe-on-directives.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/no-dupe-on-directives"
55
description: "disallow duplicate `on:` directives"
6+
since: "v2.14.0"
67
---
78

89
# svelte/no-dupe-on-directives
910

1011
> disallow duplicate `on:` directives
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
13-
1413
## :book: Rule Details
1514

1615
We can define any number of `on:` directive with the same event name, but duplicate directives with the exact same event name and expression are probably a mistake.
@@ -47,6 +46,10 @@ This rule reports reports `on:` directives with exactly the same event name and
4746

4847
Nothing.
4948

49+
## :rocket: Version
50+
51+
This rule was introduced in eslint-plugin-svelte v2.14.0
52+
5053
## :mag: Implementation
5154

5255
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/no-dupe-on-directives.ts)

docs/rules/no-dupe-use-directives.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/no-dupe-use-directives"
55
description: "disallow duplicate `use:` directives"
6+
since: "v2.14.0"
67
---
78

89
# svelte/no-dupe-use-directives
910

1011
> disallow duplicate `use:` directives
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
13-
1413
## :book: Rule Details
1514

1615
We can define any number of `use:` directive with the same action, but duplicate directives with the exact same action and expression are probably a mistake.
@@ -40,6 +39,10 @@ This rule reports reports `use:` directives with exactly the same action and exp
4039

4140
Nothing.
4241

42+
## :rocket: Version
43+
44+
This rule was introduced in eslint-plugin-svelte v2.14.0
45+
4346
## :mag: Implementation
4447

4548
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/no-dupe-use-directives.ts)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-svelte",
3-
"version": "2.13.1",
3+
"version": "2.14.0",
44
"description": "ESLint plugin for Svelte using AST",
55
"repository": "git+https://github.com/ota-meshi/eslint-plugin-svelte.git",
66
"homepage": "https://ota-meshi.github.io/eslint-plugin-svelte",
@@ -174,7 +174,7 @@
174174
"access": "public"
175175
},
176176
"typeCoverage": {
177-
"atLeast": 99.04,
177+
"atLeast": 99.05,
178178
"cache": true,
179179
"detail": true,
180180
"ignoreAsAssertion": true,

src/types-for-node.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export type ASTNodeWithParent =
1414
| AST.SvelteProgram
1515

1616
export type ASTNodeListener = {
17+
AccessorProperty?: (
18+
node: TSESTree.AccessorProperty & ASTNodeWithParent,
19+
) => void
1720
ArrayExpression?: (node: TSESTree.ArrayExpression & ASTNodeWithParent) => void
1821
ArrayPattern?: (node: TSESTree.ArrayPattern & ASTNodeWithParent) => void
1922
ArrowFunctionExpression?: (
@@ -181,6 +184,9 @@ export type ASTNodeListener = {
181184
WhileStatement?: (node: TSESTree.WhileStatement & ASTNodeWithParent) => void
182185
WithStatement?: (node: TSESTree.WithStatement & ASTNodeWithParent) => void
183186
YieldExpression?: (node: TSESTree.YieldExpression & ASTNodeWithParent) => void
187+
TSAbstractAccessorProperty?: (
188+
node: TSESTree.TSAbstractAccessorProperty & ASTNodeWithParent,
189+
) => void
184190
TSAbstractKeyword?: (
185191
node: TSESTree.TSAbstractKeyword & ASTNodeWithParent,
186192
) => void
@@ -304,6 +310,9 @@ export type ASTNodeListener = {
304310
node: TSESTree.TSReadonlyKeyword & ASTNodeWithParent,
305311
) => void
306312
TSRestType?: (node: TSESTree.TSRestType & ASTNodeWithParent) => void
313+
TSSatisfiesExpression?: (
314+
node: TSESTree.TSSatisfiesExpression & ASTNodeWithParent,
315+
) => void
307316
TSStaticKeyword?: (node: TSESTree.TSStaticKeyword & ASTNodeWithParent) => void
308317
TSStringKeyword?: (node: TSESTree.TSStringKeyword & ASTNodeWithParent) => void
309318
TSSymbolKeyword?: (node: TSESTree.TSSymbolKeyword & ASTNodeWithParent) => void
@@ -399,6 +408,9 @@ export type ASTNodeListener = {
399408
}
400409

401410
export type ESNodeListener = {
411+
AccessorProperty?: (
412+
node: TSESTree.AccessorProperty & ASTNodeWithParent,
413+
) => void
402414
ArrayExpression?: (node: TSESTree.ArrayExpression & ASTNodeWithParent) => void
403415
ArrayPattern?: (node: TSESTree.ArrayPattern & ASTNodeWithParent) => void
404416
ArrowFunctionExpression?: (
@@ -540,6 +552,9 @@ export type TSNodeListener = {
540552
Decorator?: (node: TSESTree.Decorator & ASTNodeWithParent) => void
541553
ImportAttribute?: (node: TSESTree.ImportAttribute & ASTNodeWithParent) => void
542554
StaticBlock?: (node: TSESTree.StaticBlock & ASTNodeWithParent) => void
555+
TSAbstractAccessorProperty?: (
556+
node: TSESTree.TSAbstractAccessorProperty & ASTNodeWithParent,
557+
) => void
543558
TSAbstractKeyword?: (
544559
node: TSESTree.TSAbstractKeyword & ASTNodeWithParent,
545560
) => void
@@ -663,6 +678,9 @@ export type TSNodeListener = {
663678
node: TSESTree.TSReadonlyKeyword & ASTNodeWithParent,
664679
) => void
665680
TSRestType?: (node: TSESTree.TSRestType & ASTNodeWithParent) => void
681+
TSSatisfiesExpression?: (
682+
node: TSESTree.TSSatisfiesExpression & ASTNodeWithParent,
683+
) => void
666684
TSStaticKeyword?: (node: TSESTree.TSStaticKeyword & ASTNodeWithParent) => void
667685
TSStringKeyword?: (node: TSESTree.TSStringKeyword & ASTNodeWithParent) => void
668686
TSSymbolKeyword?: (node: TSESTree.TSSymbolKeyword & ASTNodeWithParent) => void

typings/estree/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type Node = TSESTree.Node
88
export type Expression = TSESTree.Expression
99
export type Statement = TSESTree.Statement
1010
export type Pattern = TSESTree.Pattern
11+
export type AccessorProperty = TSESTree.AccessorProperty
1112
export type ArrayExpression = TSESTree.ArrayExpression
1213
export type ArrayPattern = TSESTree.ArrayPattern
1314
export type ArrowFunctionExpression = TSESTree.ArrowFunctionExpression

0 commit comments

Comments
 (0)