Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jun 20, 2021
1 parent e124f0f commit 20bbe33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/rules/indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ pageClass: "rule-details"
sidebarDepth: 0
title: "@ota-meshi/svelte/indent"
description: "enforce consistent indentation"
since: "v0.3.0"
---

# @ota-meshi/svelte/indent

> enforce consistent indentation
- :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 All @@ -23,6 +23,7 @@ This rule enforces a consistent indentation style in `.svelte`. The default styl

<!--eslint-skip-->
<!-- prettier-ignore -->

```html
<script>
/* eslint @ota-meshi/svelte/indent: "error" */
Expand Down Expand Up @@ -69,6 +70,10 @@ CLICK ME!
- `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.
- `switchCase` ... Enforces indentation level for case clauses in switch statements. Default is `1`.

## :rocket: Version

This rule was introduced in @ota-meshi/eslint-plugin-svelte v0.3.0

## :mag: Implementation

- [Rule source](https://github.com/ota-meshi/eslint-plugin-svelte/blob/main/src/rules/indent.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": "@ota-meshi/eslint-plugin-svelte",
"version": "0.2.0",
"version": "0.3.0",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit 20bbe33

Please sign in to comment.