Skip to content

Commit 20bbe33

Browse files
committed
0.3.0
1 parent e124f0f commit 20bbe33

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/rules/indent.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "@ota-meshi/svelte/indent"
55
description: "enforce consistent indentation"
6+
since: "v0.3.0"
67
---
78

89
# @ota-meshi/svelte/indent
910

1011
> enforce consistent indentation
1112
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1313
- :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.
1414

1515
## :book: Rule Details
@@ -23,6 +23,7 @@ This rule enforces a consistent indentation style in `.svelte`. The default styl
2323

2424
<!--eslint-skip-->
2525
<!-- prettier-ignore -->
26+
2627
```html
2728
<script>
2829
/* eslint @ota-meshi/svelte/indent: "error" */
@@ -69,6 +70,10 @@ CLICK ME!
6970
- `ignoredNodes` ... Can be used to disable indentation checking for any AST node. This accepts an array of [selectors](https://eslint.org/docs/developer-guide/selectors). If an AST node is matched by any of the selectors, the indentation of tokens which are direct children of that node will be ignored. This can be used as an escape hatch to relax the rule if you disagree with the indentation that it enforces for a particular syntactic pattern.
7071
- `switchCase` ... Enforces indentation level for case clauses in switch statements. Default is `1`.
7172

73+
## :rocket: Version
74+
75+
This rule was introduced in @ota-meshi/eslint-plugin-svelte v0.3.0
76+
7277
## :mag: Implementation
7378

7479
- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/indent.ts)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ota-meshi/eslint-plugin-svelte",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"publishConfig": {
55
"access": "public"
66
},

0 commit comments

Comments
 (0)