Skip to content

Commit 8f6e05a

Browse files
committed
0.4.0
1 parent 2061531 commit 8f6e05a

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

docs/rules/prefer-class-list-directive.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: "astro/prefer-class-list-directive"
33
description: "require `class:list` directives instead of `class` with expressions"
44
setup: "import ESLintCodeBlock from '../docs-build/src/components/ESLintCodeBlockWrap.astro'"
5+
since: "v0.4.0"
56
---
67

78
# astro/prefer-class-list-directive
89

910
> require `class:list` directives instead of `class` with expressions
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -53,6 +53,10 @@ Nothing.
5353

5454
- [Astro Documentation | Template Directives Reference > class:list](https://docs.astro.build/en/reference/directives-reference/#classlist)
5555

56+
## :rocket: Version
57+
58+
This rule was introduced in eslint-plugin-astro v0.4.0
59+
5660
## :mag: Implementation
5761

5862
- [Rule source](https://github.com/ota-meshi/eslint-plugin-astro/blob/main/src/rules/prefer-class-list-directive.ts)

docs/rules/prefer-object-class-list.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: "astro/prefer-object-class-list"
33
description: "require use object instead of ternary expression in `class:list`"
44
setup: "import ESLintCodeBlock from '../docs-build/src/components/ESLintCodeBlockWrap.astro'"
5+
since: "v0.4.0"
56
---
67

78
# astro/prefer-object-class-list
89

910
> require use object instead of ternary expression in `class:list`
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -53,6 +53,10 @@ Nothing.
5353

5454
- [Astro Documentation | Template Directives Reference > class:list](https://docs.astro.build/en/reference/directives-reference/#classlist)
5555

56+
## :rocket: Version
57+
58+
This rule was introduced in eslint-plugin-astro v0.4.0
59+
5660
## :mag: Implementation
5761

5862
- [Rule source](https://github.com/ota-meshi/eslint-plugin-astro/blob/main/src/rules/prefer-object-class-list.ts)

docs/rules/prefer-split-class-list.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: "astro/prefer-split-class-list"
33
description: "require use split array elements in `class:list`"
44
setup: "import ESLintCodeBlock from '../docs-build/src/components/ESLintCodeBlockWrap.astro'"
5+
since: "v0.4.0"
56
---
67

78
# astro/prefer-split-class-list
89

910
> require use split array elements in `class:list`
1011
11-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1212
- :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.
1313

1414
## :book: Rule Details
@@ -66,6 +66,10 @@ import clsx from "clsx"
6666

6767
- [Astro Documentation | Template Directives Reference > class:list](https://docs.astro.build/en/reference/directives-reference/#classlist)
6868

69+
## :rocket: Version
70+
71+
This rule was introduced in eslint-plugin-astro v0.4.0
72+
6973
## :mag: Implementation
7074

7175
- [Rule source](https://github.com/ota-meshi/eslint-plugin-astro/blob/main/src/rules/prefer-split-class-list.ts)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-astro",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "ESLint plugin for Astro component",
55
"main": "lib/index.js",
66
"files": [

0 commit comments

Comments
 (0)