Skip to content

Commit

Permalink
docs: fix link to selectors (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
firefoxic authored Apr 14, 2024
1 parent 3237e16 commit 54bafb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-js/rules/indent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if (a) {

This rule has an object option:

- `"ignoredNodes"` can be used to disable indentation checking for any AST node. This accepts an array of [selectors](../extend/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.
- `"ignoredNodes"` can be used to disable indentation checking for any AST node. This accepts an array of [selectors](https://eslint.org/docs/latest/extend/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"` (default: 0) enforces indentation level for `case` clauses in `switch` statements
- `"VariableDeclarator"` (default: 1) enforces indentation level for `var` declarators; can also take an object to define separate rules for `var`, `let` and `const` declarations. It can also be `"first"`, indicating all the declarators should be aligned with the first declarator.
- `"outerIIFEBody"` (default: 1) enforces indentation level for file-level IIFEs. This can also be set to `"off"` to disable checking for file-level IIFEs.
Expand Down

0 comments on commit 54bafb7

Please sign in to comment.