From 54bafb76c43bb8e808b5019f5d9e9e8a4e0ee387 Mon Sep 17 00:00:00 2001 From: firefoxic Date: Sun, 14 Apr 2024 16:50:30 +0300 Subject: [PATCH] docs: fix link to selectors (#345) --- packages/eslint-plugin-js/rules/indent/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin-js/rules/indent/README.md b/packages/eslint-plugin-js/rules/indent/README.md index 9035898d3..109a95706 100644 --- a/packages/eslint-plugin-js/rules/indent/README.md +++ b/packages/eslint-plugin-js/rules/indent/README.md @@ -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.