From 0d72bd5d5b30b6847c3b201e9d8a1ae00d9d784b Mon Sep 17 00:00:00 2001
From: DMarinhoCodacy <102817200+DMarinhoCodacy@users.noreply.github.com>
Date: Tue, 18 Feb 2025 17:37:36 +0000
Subject: [PATCH] Revert some deprecated rules (#4723)
* blacklist some of the deprecated rules
---
Dockerfile | 2 +-
.../@typescript-eslint_brace-style.md | 10 -
docs/description/@typescript-eslint_indent.md | 18 -
...ript-eslint_lines-between-class-members.md | 53 -
docs/description/arrow-parens.md | 254 ----
docs/description/brace-style.md | 431 -------
docs/description/computed-property-spacing.md | 210 ----
docs/description/description.json | 136 ---
docs/description/indent.md | 1082 -----------------
.../lines-between-class-members.md | 349 ------
docs/description/wrap-iife.md | 145 ---
.../all-patterns-typescript/patterns.xml | 161 +++
docs/multiple-tests/all-patterns/patterns.xml | 161 +++
docs/patterns.json | 136 ---
package-lock.json | 10 +-
package.json | 2 +-
src/blacklist.ts | 10 +-
17 files changed, 338 insertions(+), 2832 deletions(-)
delete mode 100644 docs/description/@typescript-eslint_brace-style.md
delete mode 100644 docs/description/@typescript-eslint_indent.md
delete mode 100644 docs/description/@typescript-eslint_lines-between-class-members.md
delete mode 100644 docs/description/arrow-parens.md
delete mode 100644 docs/description/brace-style.md
delete mode 100644 docs/description/computed-property-spacing.md
delete mode 100644 docs/description/indent.md
delete mode 100644 docs/description/lines-between-class-members.md
delete mode 100644 docs/description/wrap-iife.md
diff --git a/Dockerfile b/Dockerfile
index d85087190..2bd89b579 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,7 @@ COPY src src
COPY docs docs
COPY tsconfig.json ./
-RUN npm run build &&\
+RUN npm run build:docs &&\
npm run test
FROM node:lts-alpine3.21
diff --git a/docs/description/@typescript-eslint_brace-style.md b/docs/description/@typescript-eslint_brace-style.md
deleted file mode 100644
index 66f39643d..000000000
--- a/docs/description/@typescript-eslint_brace-style.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-description: 'Enforce consistent brace style for blocks.'
----
-
-> 🛑 This file is source code, not the primary documentation location! 🛑
->
-> See **https://typescript-eslint.io/rules/brace-style** for documentation.
-
-This rule extends the base [`eslint/brace-style`](https://eslint.org/docs/rules/brace-style) rule.
-It adds support for `enum`, `interface`, `namespace` and `module` declarations.
diff --git a/docs/description/@typescript-eslint_indent.md b/docs/description/@typescript-eslint_indent.md
deleted file mode 100644
index 450b80783..000000000
--- a/docs/description/@typescript-eslint_indent.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-description: 'Enforce consistent indentation.'
----
-
-> 🛑 This file is source code, not the primary documentation location! 🛑
->
-> See **https://typescript-eslint.io/rules/indent** for documentation.
-
-## Warning
-
-:::warning
-
-Please read [Issue #1824: Problems with the indent rule](https://github.com/typescript-eslint/typescript-eslint/issues/1824) before using this rule!
-
-:::
-
-This rule extends the base [`eslint/indent`](https://eslint.org/docs/rules/indent) rule.
-It adds support for TypeScript nodes.
diff --git a/docs/description/@typescript-eslint_lines-between-class-members.md b/docs/description/@typescript-eslint_lines-between-class-members.md
deleted file mode 100644
index a64339134..000000000
--- a/docs/description/@typescript-eslint_lines-between-class-members.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-description: 'Require or disallow an empty line between class members.'
----
-
-> 🛑 This file is source code, not the primary documentation location! 🛑
->
-> See **https://typescript-eslint.io/rules/lines-between-class-members** for documentation.
-
-This rule extends the base [`eslint/lines-between-class-members`](https://eslint.org/docs/rules/lines-between-class-members) rule.
-It adds support for ignoring overload methods in a class.
-
-## Options
-
-In addition to the options supported by the `lines-between-class-members` rule in ESLint core, the rule adds the following options:
-
-- Object option:
-
- - `"exceptAfterOverload": true` (default) - Skip checking empty lines after overload class members
- - `"exceptAfterOverload": false` - **do not** skip checking empty lines after overload class members
-
-### `exceptAfterOverload: true`
-
-Examples of **correct** code for the `{ "exceptAfterOverload": true }` option:
-
-```ts option='"always", { "exceptAfterOverload": true }' showPlaygroundButton
-class foo {
- bar(a: string): void;
- bar(a: string, b: string): void;
- bar(a: string, b: string) {}
-
- baz() {}
-
- qux() {}
-}
-```
-
-### `exceptAfterOverload: false`
-
-Examples of **correct** code for the `{ "exceptAfterOverload": false }` option:
-
-```ts option='"always", { "exceptAfterOverload": false }' showPlaygroundButton
-class foo {
- bar(a: string): void;
-
- bar(a: string, b: string): void;
-
- bar(a: string, b: string) {}
-
- baz() {}
-
- qux() {}
-}
-```
diff --git a/docs/description/arrow-parens.md b/docs/description/arrow-parens.md
deleted file mode 100644
index d84e1999d..000000000
--- a/docs/description/arrow-parens.md
+++ /dev/null
@@ -1,254 +0,0 @@
----
-title: arrow-parens
-rule_type: layout
-further_reading:
-- https://github.com/airbnb/javascript#arrows--one-arg-parens
----
-
-This rule was **deprecated** in ESLint v8.53.0. Please use the [corresponding rule](https://eslint.style/rules/js/arrow-parens) in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).
-
-Arrow functions can omit parentheses when they have exactly one parameter. In all other cases the parameter(s) must
-be wrapped in parentheses. This rule enforces the consistent use of parentheses in arrow functions.
-
-## Rule Details
-
-This rule enforces parentheses around arrow function parameters regardless of arity. For example:
-
-```js
-/*eslint-env es6*/
-
-// Bad
-a => {}
-
-// Good
-(a) => {}
-```
-
-Following this style will help you find arrow functions (`=>`) which may be mistakenly included in a condition
-when a comparison such as `>=` was the intent.
-
-```js
-/*eslint-env es6*/
-
-// Bad
-if (a => 2) {
-}
-
-// Good
-if (a >= 2) {
-}
-```
-
-The rule can also be configured to discourage the use of parens when they are not required:
-
-```js
-/*eslint-env es6*/
-
-// Bad
-(a) => {}
-
-// Good
-a => {}
-```
-
-## Options
-
-This rule has a string option and an object one.
-
-String options are:
-
-* `"always"` (default) requires parens around arguments in all cases.
-* `"as-needed"` enforces no parens where they can be omitted.
-
-Object properties for variants of the `"as-needed"` option:
-
-* `"requireForBlockBody": true` modifies the as-needed rule in order to require parens if the function body is in an instructions block (surrounded by braces).
-
-### always
-
-Examples of **incorrect** code for this rule with the default `"always"` option:
-
-:::incorrect
-
-```js
-/*eslint arrow-parens: ["error", "always"]*/
-/*eslint-env es6*/
-
-a => {};
-a => a;
-a => {'\n'};
-a.then(foo => {});
-a.then(foo => a);
-a(foo => { if (true) {} });
-```
-
-:::
-
-Examples of **correct** code for this rule with the default `"always"` option:
-
-:::correct
-
-```js
-/*eslint arrow-parens: ["error", "always"]*/
-/*eslint-env es6*/
-
-() => {};
-(a) => {};
-(a) => a;
-(a) => {'\n'}
-a.then((foo) => {});
-a.then((foo) => { if (true) {} });
-```
-
-:::
-
-#### If Statements
-
-One of the benefits of this option is that it prevents the incorrect use of arrow functions in conditionals:
-
-```js
-/*eslint-env es6*/
-
-var a = 1;
-var b = 2;
-// ...
-if (a => b) {
- console.log('bigger');
-} else {
- console.log('smaller');
-}
-// outputs 'bigger', not smaller as expected
-```
-
-The contents of the `if` statement is an arrow function, not a comparison.
-
-If the arrow function is intentional, it should be wrapped in parens to remove ambiguity.
-
-```js
-/*eslint-env es6*/
-
-var a = 1;
-var b = 0;
-// ...
-if ((a) => b) {
- console.log('truthy value returned');
-} else {
- console.log('falsy value returned');
-}
-// outputs 'truthy value returned'
-```
-
-The following is another example of this behavior:
-
-```js
-/*eslint-env es6*/
-
-var a = 1, b = 2, c = 3, d = 4;
-var f = a => b ? c: d;
-// f = ?
-```
-
-`f` is an arrow function which takes `a` as an argument and returns the result of `b ? c: d`.
-
-This should be rewritten like so:
-
-```js
-/*eslint-env es6*/
-
-var a = 1, b = 2, c = 3, d = 4;
-var f = (a) => b ? c: d;
-```
-
-### as-needed
-
-Examples of **incorrect** code for this rule with the `"as-needed"` option:
-
-:::incorrect
-
-```js
-/*eslint arrow-parens: ["error", "as-needed"]*/
-/*eslint-env es6*/
-
-(a) => {};
-(a) => a;
-(a) => {'\n'};
-a.then((foo) => {});
-a.then((foo) => a);
-a((foo) => { if (true) {} });
-const f = /** @type {number} */(a) => a + a;
-const g = /* comment */ (a) => a + a;
-const h = (a) /* comment */ => a + a;
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"as-needed"` option:
-
-:::correct
-
-```js
-/*eslint arrow-parens: ["error", "as-needed"]*/
-/*eslint-env es6*/
-
-() => {};
-a => {};
-a => a;
-a => {'\n'};
-a.then(foo => {});
-a.then(foo => { if (true) {} });
-(a, b, c) => a;
-(a = 10) => a;
-([a, b]) => a;
-({a, b}) => a;
-const f = (/** @type {number} */a) => a + a;
-const g = (/* comment */ a) => a + a;
-const h = (a /* comment */) => a + a;
-```
-
-:::
-
-### requireForBlockBody
-
-Examples of **incorrect** code for the `{ "requireForBlockBody": true }` option:
-
-:::incorrect
-
-```js
-/*eslint arrow-parens: [2, "as-needed", { "requireForBlockBody": true }]*/
-/*eslint-env es6*/
-
-(a) => a;
-a => {};
-a => {'\n'};
-a.map((x) => x * x);
-a.map(x => {
- return x * x;
-});
-a.then(foo => {});
-```
-
-:::
-
-Examples of **correct** code for the `{ "requireForBlockBody": true }` option:
-
-:::correct
-
-```js
-/*eslint arrow-parens: [2, "as-needed", { "requireForBlockBody": true }]*/
-/*eslint-env es6*/
-
-(a) => {};
-(a) => {'\n'};
-a => ({});
-() => {};
-a => a;
-a.then((foo) => {});
-a.then((foo) => { if (true) {} });
-a((foo) => { if (true) {} });
-(a, b, c) => a;
-(a = 10) => a;
-([a, b]) => a;
-({a, b}) => a;
-```
-
-:::
diff --git a/docs/description/brace-style.md b/docs/description/brace-style.md
deleted file mode 100644
index 4d3932e3c..000000000
--- a/docs/description/brace-style.md
+++ /dev/null
@@ -1,431 +0,0 @@
----
-title: brace-style
-rule_type: layout
-related_rules:
-- block-spacing
-- space-before-blocks
-further_reading:
-- https://en.wikipedia.org/wiki/Indent_style
----
-
-This rule was **deprecated** in ESLint v8.53.0. Please use the [corresponding rule](https://eslint.style/rules/js/brace-style) in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).
-
-Brace style is closely related to [indent style](https://en.wikipedia.org/wiki/Indent_style) in programming and describes the placement of braces relative to their control statement and body. There are probably a dozen, if not more, brace styles in the world.
-
-The *one true brace style* is one of the most common brace styles in JavaScript, in which the opening brace of a block is placed on the same line as its corresponding statement or declaration. For example:
-
-```js
-if (foo) {
- bar();
-} else {
- baz();
-}
-```
-
-One common variant of one true brace style is called Stroustrup, in which the `else` statements in an `if-else` construct, as well as `catch` and `finally`, must be on its own line after the preceding closing brace. For example:
-
-```js
-if (foo) {
- bar();
-}
-else {
- baz();
-}
-```
-
-Another style is called [Allman](https://en.wikipedia.org/wiki/Indent_style#Allman_style), in which all the braces are expected to be on their own lines without any extra indentation. For example:
-
-```js
-if (foo)
-{
- bar();
-}
-else
-{
- baz();
-}
-```
-
-While no style is considered better than the other, most developers agree that having a consistent style throughout a project is important for its long-term maintainability.
-
-## Rule Details
-
-This rule enforces consistent brace style for blocks.
-
-## Options
-
-This rule has a string option:
-
-* `"1tbs"` (default) enforces one true brace style
-* `"stroustrup"` enforces Stroustrup style
-* `"allman"` enforces Allman style
-
-This rule has an object option for an exception:
-
-* `"allowSingleLine": true` (default `false`) allows the opening and closing braces for a block to be on the *same* line
-
-### 1tbs
-
-Examples of **incorrect** code for this rule with the default `"1tbs"` option:
-
-:::incorrect
-
-```js
-/*eslint brace-style: "error"*/
-
-function foo()
-{
- return true;
-}
-
-if (foo)
-{
- bar();
-}
-
-try
-{
- somethingRisky();
-} catch(e)
-{
- handleError();
-}
-
-if (foo) {
- bar();
-}
-else {
- baz();
-}
-
-class C
-{
- static
- {
- foo();
- }
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the default `"1tbs"` option:
-
-:::correct
-
-```js
-/*eslint brace-style: "error"*/
-
-function foo() {
- return true;
-}
-
-if (foo) {
- bar();
-}
-
-if (foo) {
- bar();
-} else {
- baz();
-}
-
-try {
- somethingRisky();
-} catch(e) {
- handleError();
-}
-
-class C {
- static {
- foo();
- }
-}
-
-// when there are no braces, there are no problems
-if (foo) bar();
-else if (baz) boom();
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"1tbs", { "allowSingleLine": true }` options:
-
-:::correct
-
-```js
-/*eslint brace-style: ["error", "1tbs", { "allowSingleLine": true }]*/
-
-function nop() { return; }
-
-if (foo) { bar(); }
-
-if (foo) { bar(); } else { baz(); }
-
-try { somethingRisky(); } catch(e) { handleError(); }
-
-if (foo) { baz(); } else {
- boom();
-}
-
-if (foo) { baz(); } else if (bar) {
- boom();
-}
-
-if (foo) { baz(); } else
-if (bar) {
- boom();
-}
-
-if (foo) { baz(); } else if (bar) {
- boom();
-}
-
-try { somethingRisky(); } catch(e) {
- handleError();
-}
-
-class C {
- static { foo(); }
-}
-
-class D { static { foo(); } }
-```
-
-:::
-
-### stroustrup
-
-Examples of **incorrect** code for this rule with the `"stroustrup"` option:
-
-:::incorrect
-
-```js
-/*eslint brace-style: ["error", "stroustrup"]*/
-
-function foo()
-{
- return true;
-}
-
-if (foo)
-{
- bar();
-}
-
-try
-{
- somethingRisky();
-} catch(e)
-{
- handleError();
-}
-
-class C
-{
- static
- {
- foo();
- }
-}
-
-if (foo) {
- bar();
-} else {
- baz();
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"stroustrup"` option:
-
-:::correct
-
-```js
-/*eslint brace-style: ["error", "stroustrup"]*/
-
-function foo() {
- return true;
-}
-
-if (foo) {
- bar();
-}
-
-if (foo) {
- bar();
-}
-else {
- baz();
-}
-
-try {
- somethingRisky();
-}
-catch(e) {
- handleError();
-}
-
-class C {
- static {
- foo();
- }
-}
-
-// when there are no braces, there are no problems
-if (foo) bar();
-else if (baz) boom();
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"stroustrup", { "allowSingleLine": true }` options:
-
-:::correct
-
-```js
-/*eslint brace-style: ["error", "stroustrup", { "allowSingleLine": true }]*/
-
-function nop() { return; }
-
-if (foo) { bar(); }
-
-if (foo) { bar(); }
-else { baz(); }
-
-try { somethingRisky(); }
-catch(e) { handleError(); }
-
-class C {
- static { foo(); }
-}
-
-class D { static { foo(); } }
-```
-
-:::
-
-### allman
-
-Examples of **incorrect** code for this rule with the `"allman"` option:
-
-:::incorrect
-
-```js
-/*eslint brace-style: ["error", "allman"]*/
-
-function foo() {
- return true;
-}
-
-if (foo)
-{
- bar(); }
-
-try
-{
- somethingRisky();
-} catch(e)
-{
- handleError();
-}
-
-class C {
- static {
- foo();
- }
-}
-
-if (foo) {
- bar();
-} else {
- baz();
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"allman"` option:
-
-:::correct
-
-```js
-/*eslint brace-style: ["error", "allman"]*/
-
-function foo()
-{
- return true;
-}
-
-if (foo)
-{
- bar();
-}
-
-if (foo)
-{
- bar();
-}
-else
-{
- baz();
-}
-
-try
-{
- somethingRisky();
-}
-catch(e)
-{
- handleError();
-}
-
-class C
-{
- static
- {
- foo();
- }
-}
-
-// when there are no braces, there are no problems
-if (foo) bar();
-else if (baz) boom();
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"allman", { "allowSingleLine": true }` options:
-
-:::correct
-
-```js
-/*eslint brace-style: ["error", "allman", { "allowSingleLine": true }]*/
-
-function nop() { return; }
-
-if (foo) { bar(); }
-
-if (foo) { bar(); }
-else { baz(); }
-
-try { somethingRisky(); }
-catch(e) { handleError(); }
-
-class C
-{
- static { foo(); }
-
- static
- { foo(); }
-}
-
-class D { static { foo(); } }
-```
-
-:::
-
-## When Not To Use It
-
-If you don't want to enforce a particular brace style, don't enable this rule.
diff --git a/docs/description/computed-property-spacing.md b/docs/description/computed-property-spacing.md
deleted file mode 100644
index 8e8b2d5ab..000000000
--- a/docs/description/computed-property-spacing.md
+++ /dev/null
@@ -1,210 +0,0 @@
----
-title: computed-property-spacing
-rule_type: layout
-related_rules:
-- array-bracket-spacing
-- comma-spacing
-- space-in-parens
----
-
-This rule was **deprecated** in ESLint v8.53.0. Please use the [corresponding rule](https://eslint.style/rules/js/computed-property-spacing) in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).
-
-While formatting preferences are very personal, a number of style guides require
-or disallow spaces between computed properties in the following situations:
-
-```js
-/*eslint-env es6*/
-
-var obj = { prop: "value" };
-var a = "prop";
-var x = obj[a]; // computed property in object member expression
-
-var a = "prop";
-var obj = {
- [a]: "value" // computed property key in object literal (ECMAScript 6)
-};
-
-var obj = { prop: "value" };
-var a = "prop";
-var { [a]: x } = obj; // computed property key in object destructuring pattern (ECMAScript 6)
-```
-
-## Rule Details
-
-This rule enforces consistent spacing inside computed property brackets.
-
-It either requires or disallows spaces between the brackets and the values inside of them.
-This rule does not apply to brackets that are separated from the adjacent value by a newline.
-
-## Options
-
-This rule has two options, a string option and an object option.
-
-String option:
-
-* `"never"` (default) disallows spaces inside computed property brackets
-* `"always"` requires one or more spaces inside computed property brackets
-
-Object option:
-
-* `"enforceForClassMembers": true` (default) additionally applies this rule to class members.
-
-### never
-
-Examples of **incorrect** code for this rule with the default `"never"` option:
-
-::: incorrect
-
-```js
-/*eslint computed-property-spacing: ["error", "never"]*/
-/*eslint-env es6*/
-
-obj[foo ]
-obj[ 'foo']
-var x = {[ b ]: a}
-obj[foo[ bar ]]
-
-const { [ a ]: someProp } = obj;
-({ [ b ]: anotherProp } = anotherObj);
-```
-
-:::
-
-Examples of **correct** code for this rule with the default `"never"` option:
-
-::: correct
-
-```js
-/*eslint computed-property-spacing: ["error", "never"]*/
-/*eslint-env es6*/
-
-obj[foo]
-obj['foo']
-var x = {[b]: a}
-obj[foo[bar]]
-
-const { [a]: someProp } = obj;
-({ [b]: anotherProp } = anotherObj);
-```
-
-:::
-
-### always
-
-Examples of **incorrect** code for this rule with the `"always"` option:
-
-::: incorrect
-
-```js
-/*eslint computed-property-spacing: ["error", "always"]*/
-/*eslint-env es6*/
-
-obj[foo]
-var x = {[b]: a}
-obj[ foo]
-obj['foo' ]
-obj[foo[ bar ]]
-var x = {[ b]: a}
-const { [a]: someProp } = obj;
-({ [b ]: anotherProp } = anotherObj);
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"always"` option:
-
-::: correct
-
-```js
-/*eslint computed-property-spacing: ["error", "always"]*/
-/*eslint-env es6*/
-
-obj[ foo ]
-obj[ 'foo' ]
-var x = {[ b ]: a}
-obj[ foo[ bar ] ]
-const { [ a ]: someProp } = obj;
-({ [ b ]: anotherProp } = anotherObj);
-```
-
-:::
-
-#### enforceForClassMembers
-
-With `enforceForClassMembers` set to `true` (default), the rule also disallows/enforces spaces inside of computed keys of class methods, getters and setters.
-
-Examples of **incorrect** code for this rule with `"never"` and `{ "enforceForClassMembers": true }` (default):
-
-::: incorrect
-
-```js
-/*eslint computed-property-spacing: ["error", "never", { "enforceForClassMembers": true }]*/
-/*eslint-env es6*/
-
-class Foo {
- [a ]() {}
- get [b ]() {}
- set [b ](value) {}
-}
-
-const Bar = class {
- [ a](){}
- static [ b]() {}
- static get [ c ]() {}
- static set [ c ](value) {}
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with `"never"` and `{ "enforceForClassMembers": true }` (default):
-
-::: correct
-
-```js
-/*eslint computed-property-spacing: ["error", "never", { "enforceForClassMembers": true }]*/
-/*eslint-env es6*/
-
-class Foo {
- [a]() {}
- get [b]() {}
- set [b](value) {}
-}
-
-const Bar = class {
- [a](){}
- static [b]() {}
- static get [c]() {}
- static set [c](value) {}
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with `"never"` and `{ "enforceForClassMembers": false }`:
-
-::: correct
-
-```js
-/*eslint computed-property-spacing: ["error", "never", { "enforceForClassMembers": false }]*/
-/*eslint-env es6*/
-
-class Foo {
- [a ]() {}
- get [b ]() {}
- set [b ](value) {}
-}
-
-const Bar = class {
- [ a](){}
- static [ b]() {}
- static get [ c ]() {}
- static set [ c ](value) {}
-}
-```
-
-:::
-
-## When Not To Use It
-
-You can turn this rule off if you are not concerned with the consistency of computed properties.
diff --git a/docs/description/description.json b/docs/description/description.json
index c38017663..425414e64 100644
--- a/docs/description/description.json
+++ b/docs/description/description.json
@@ -67,18 +67,6 @@
"description": "Require braces around arrow function bodies",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "requireForBlockBody",
- "description": "requireForBlockBody"
- }
- ],
- "patternId": "arrow-parens",
- "title": "Arrow parens",
- "description": "Require parentheses around arrow function arguments",
- "timeToFix": 5
- },
{
"parameters": [
{
@@ -109,18 +97,6 @@
"description": "Disallow or enforce spaces inside of blocks after opening block and before closing block",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "allowSingleLine",
- "description": "allowSingleLine"
- }
- ],
- "patternId": "brace-style",
- "title": "Brace style",
- "description": "Enforce consistent brace style for blocks",
- "timeToFix": 5
- },
{
"parameters": [],
"patternId": "callback-return",
@@ -209,18 +185,6 @@
"description": "Enforce a maximum cyclomatic complexity allowed in a program",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "enforceForClassMembers",
- "description": "enforceForClassMembers"
- }
- ],
- "patternId": "computed-property-spacing",
- "title": "Computed property spacing",
- "description": "Enforce consistent spacing inside computed property brackets",
- "timeToFix": 5
- },
{
"parameters": [
{
@@ -493,30 +457,6 @@
"description": "Enforce the location of arrow function bodies",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "SwitchCase",
- "description": "SwitchCase"
- },
- {
- "name": "flatTernaryExpressions",
- "description": "flatTernaryExpressions"
- },
- {
- "name": "offsetTernaryExpressions",
- "description": "offsetTernaryExpressions"
- },
- {
- "name": "ignoreComments",
- "description": "ignoreComments"
- }
- ],
- "patternId": "indent",
- "title": "Indent",
- "description": "Enforce consistent indentation",
- "timeToFix": 5
- },
{
"parameters": [],
"patternId": "indent-legacy",
@@ -623,18 +563,6 @@
"description": "Require or disallow newlines around directives",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "exceptAfterSingleLine",
- "description": "exceptAfterSingleLine"
- }
- ],
- "patternId": "lines-between-class-members",
- "title": "Lines between class members",
- "description": "Require or disallow an empty line between class members",
- "timeToFix": 5
- },
{
"parameters": [],
"patternId": "logical-assignment-operators",
@@ -2745,18 +2673,6 @@
"description": "Require `var` declarations be placed at the top of their containing scope",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "functionPrototypeMethods",
- "description": "functionPrototypeMethods"
- }
- ],
- "patternId": "wrap-iife",
- "title": "Wrap iife",
- "description": "Require parentheses around immediate `function` invocations",
- "timeToFix": 5
- },
{
"parameters": [],
"patternId": "wrap-regex",
@@ -4756,18 +4672,6 @@
"description": "Disallow or enforce spaces inside of blocks after opening block and before closing block",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "allowSingleLine",
- "description": "allowSingleLine"
- }
- ],
- "patternId": "@typescript-eslint_brace-style",
- "title": "@typescript eslint: Brace style",
- "description": "Enforce consistent brace style for blocks",
- "timeToFix": 5
- },
{
"parameters": [],
"patternId": "@typescript-eslint_class-literal-property-style",
@@ -4920,30 +4824,6 @@
"description": "Require or disallow spacing between function identifiers and their invocations",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "SwitchCase",
- "description": "SwitchCase"
- },
- {
- "name": "flatTernaryExpressions",
- "description": "flatTernaryExpressions"
- },
- {
- "name": "offsetTernaryExpressions",
- "description": "offsetTernaryExpressions"
- },
- {
- "name": "ignoreComments",
- "description": "ignoreComments"
- }
- ],
- "patternId": "@typescript-eslint_indent",
- "title": "@typescript eslint: Indent",
- "description": "Enforce consistent indentation",
- "timeToFix": 5
- },
{
"parameters": [],
"patternId": "@typescript-eslint_init-declarations",
@@ -5006,22 +4886,6 @@
"description": "Require empty lines around comments",
"timeToFix": 5
},
- {
- "parameters": [
- {
- "name": "exceptAfterSingleLine",
- "description": "exceptAfterSingleLine"
- },
- {
- "name": "exceptAfterOverload",
- "description": "exceptAfterOverload"
- }
- ],
- "patternId": "@typescript-eslint_lines-between-class-members",
- "title": "@typescript eslint: Lines between class members",
- "description": "Require or disallow an empty line between class members",
- "timeToFix": 5
- },
{
"parameters": [],
"patternId": "@typescript-eslint_max-params",
diff --git a/docs/description/indent.md b/docs/description/indent.md
deleted file mode 100644
index d79fa2a39..000000000
--- a/docs/description/indent.md
+++ /dev/null
@@ -1,1082 +0,0 @@
----
-title: indent
-rule_type: layout
----
-
-This rule was **deprecated** in ESLint v8.53.0. Please use the [corresponding rule](https://eslint.style/rules/js/indent) in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).
-
-There are several common guidelines which require specific indentation of nested blocks and statements, like:
-
-```js
-function hello(indentSize, type) {
- if (indentSize === 4 && type !== 'tab') {
- console.log('Each next indentation will increase on 4 spaces');
- }
-}
-```
-
-These are the most common scenarios recommended in different style guides:
-
-* Two spaces, not longer and no tabs: Google, npm, Node.js, Idiomatic, Felix
-* Tabs: jQuery
-* Four spaces: Crockford
-
-## Rule Details
-
-This rule enforces a consistent indentation style. The default style is `4 spaces`.
-
-## Options
-
-This rule has a mixed option:
-
-For example, for 2-space indentation:
-
-```json
-{
- "indent": ["error", 2]
-}
-```
-
-Or for tabbed indentation:
-
-```json
-{
- "indent": ["error", "tab"]
-}
-```
-
-Examples of **incorrect** code for this rule with the default options:
-
-::: incorrect
-
-```js
-/*eslint indent: "error"*/
-
-if (a) {
- b=c;
- function foo(d) {
- e=f;
- }
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the default options:
-
-::: correct
-
-```js
-/*eslint indent: "error"*/
-
-if (a) {
- b=c;
- function foo(d) {
- e=f;
- }
-}
-```
-
-:::
-
-This rule has an object option:
-
-* `"ignoredNodes"` can be used to disable indentation checking for any AST node. This accepts an array of [selectors](https://github.com/eslint/eslint/tree/main/docs/src/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.
-* `"MemberExpression"` (default: 1) enforces indentation level for multi-line property chains. This can also be set to `"off"` to disable checking for MemberExpression indentation.
-* `"FunctionDeclaration"` takes an object to define rules for function declarations.
- * `parameters` (default: 1) enforces indentation level for parameters in a function declaration. This can either be a number indicating indentation level, or the string `"first"` indicating that all parameters of the declaration must be aligned with the first parameter. This can also be set to `"off"` to disable checking for FunctionDeclaration parameters.
- * `body` (default: 1) enforces indentation level for the body of a function declaration.
-* `"FunctionExpression"` takes an object to define rules for function expressions.
- * `parameters` (default: 1) enforces indentation level for parameters in a function expression. This can either be a number indicating indentation level, or the string `"first"` indicating that all parameters of the expression must be aligned with the first parameter. This can also be set to `"off"` to disable checking for FunctionExpression parameters.
- * `body` (default: 1) enforces indentation level for the body of a function expression.
-* `"StaticBlock"` takes an object to define rules for class static blocks.
- * `body` (default: 1) enforces indentation level for the body of a class static block.
-* `"CallExpression"` takes an object to define rules for function call expressions.
- * `arguments` (default: 1) enforces indentation level for arguments in a call expression. This can either be a number indicating indentation level, or the string `"first"` indicating that all arguments of the expression must be aligned with the first argument. This can also be set to `"off"` to disable checking for CallExpression arguments.
-* `"ArrayExpression"` (default: 1) enforces indentation level for elements in arrays. It can also be set to the string `"first"`, indicating that all the elements in the array should be aligned with the first element. This can also be set to `"off"` to disable checking for array elements.
-* `"ObjectExpression"` (default: 1) enforces indentation level for properties in objects. It can be set to the string `"first"`, indicating that all properties in the object should be aligned with the first property. This can also be set to `"off"` to disable checking for object properties.
-* `"ImportDeclaration"` (default: 1) enforces indentation level for import statements. It can be set to the string `"first"`, indicating that all imported members from a module should be aligned with the first member in the list. This can also be set to `"off"` to disable checking for imported module members.
-* `"flatTernaryExpressions": true` (`false` by default) requires no indentation for ternary expressions which are nested in other ternary expressions.
-* `"offsetTernaryExpressions": true` (`false` by default) requires indentation for values of ternary expressions.
-* `"ignoreComments"` (default: false) can be used when comments do not need to be aligned with nodes on the previous or next line.
-
-Level of indentation denotes the multiple of the indent specified. Example:
-
-* Indent of 4 spaces with `VariableDeclarator` set to `2` will indent the multi-line variable declarations with 8 spaces.
-* Indent of 2 spaces with `VariableDeclarator` set to `2` will indent the multi-line variable declarations with 4 spaces.
-* Indent of 2 spaces with `VariableDeclarator` set to `{"var": 2, "let": 2, "const": 3}` will indent the multi-line variable declarations with 4 spaces for `var` and `let`, 6 spaces for `const` statements.
-* Indent of tab with `VariableDeclarator` set to `2` will indent the multi-line variable declarations with 2 tabs.
-* Indent of 2 spaces with `SwitchCase` set to `0` will not indent `case` clauses with respect to `switch` statements.
-* Indent of 2 spaces with `SwitchCase` set to `1` will indent `case` clauses with 2 spaces with respect to `switch` statements.
-* Indent of 2 spaces with `SwitchCase` set to `2` will indent `case` clauses with 4 spaces with respect to `switch` statements.
-* Indent of tab with `SwitchCase` set to `2` will indent `case` clauses with 2 tabs with respect to `switch` statements.
-* Indent of 2 spaces with `MemberExpression` set to `0` will indent the multi-line property chains with 0 spaces.
-* Indent of 2 spaces with `MemberExpression` set to `1` will indent the multi-line property chains with 2 spaces.
-* Indent of 2 spaces with `MemberExpression` set to `2` will indent the multi-line property chains with 4 spaces.
-* Indent of 4 spaces with `MemberExpression` set to `0` will indent the multi-line property chains with 0 spaces.
-* Indent of 4 spaces with `MemberExpression` set to `1` will indent the multi-line property chains with 4 spaces.
-* Indent of 4 spaces with `MemberExpression` set to `2` will indent the multi-line property chains with 8 spaces.
-
-### tab
-
-Examples of **incorrect** code for this rule with the `"tab"` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", "tab"]*/
-
-if (a) {
- b=c;
-function foo(d) {
- e=f;
- }
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"tab"` option:
-
-
-
-::: correct
-
-```js
-/*eslint indent: ["error", "tab"]*/
-
-if (a) {
- b=c;
- function foo(d) {
- e=f;
- }
-}
-```
-
-:::
-
-
-### ignoredNodes
-
-The following configuration ignores the indentation of `ConditionalExpression` ("ternary expression") nodes:
-
-Examples of **correct** code for this rule with the `4, { "ignoredNodes": ["ConditionalExpression"] }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "ignoredNodes": ["ConditionalExpression"] }]*/
-
-var a = foo
- ? bar
- : baz;
-
-var a = foo
- ? bar
-: baz;
-```
-
-:::
-
-The following configuration ignores indentation in the body of IIFEs.
-
-Examples of **correct** code for this rule with the `4, { "ignoredNodes": ["CallExpression > FunctionExpression.callee > BlockStatement.body"] }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "ignoredNodes": ["CallExpression > FunctionExpression.callee > BlockStatement.body"] }]*/
-
-(function() {
-
-foo();
-bar();
-
-})();
-```
-
-:::
-
-All AST node types can be found at [ESTree](https://github.com/estree/estree) specification. You can use [AST Explorer](https://astexplorer.net/) with the espree parser to examine AST tree of a code snippet.
-
-### SwitchCase
-
-Examples of **incorrect** code for this rule with the `2, { "SwitchCase": 1 }` options:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "SwitchCase": 1 }]*/
-
-switch(a){
-case "a":
- break;
-case "b":
- break;
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "SwitchCase": 1 }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "SwitchCase": 1 }]*/
-
-switch(a){
- case "a":
- break;
- case "b":
- break;
-}
-```
-
-:::
-
-### VariableDeclarator
-
-Examples of **incorrect** code for this rule with the `2, { "VariableDeclarator": 1 }` options:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "VariableDeclarator": 1 }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let d,
- e,
- f;
-const g = 1,
- h = 2,
- i = 3;
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "VariableDeclarator": 1 }` options:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "VariableDeclarator": 1 }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let d,
- e,
- f;
-const g = 1,
- h = 2,
- i = 3;
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "VariableDeclarator": 2 }` options:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "VariableDeclarator": 2 }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let d,
- e,
- f;
-const g = 1,
- h = 2,
- i = 3;
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "VariableDeclarator": "first" }` options:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "VariableDeclarator": "first" }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let d,
- e,
- f;
-const g = 1,
- h = 2,
- i = 3;
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "VariableDeclarator": "first" }` options:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "VariableDeclarator": "first" }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let d,
- e,
- f;
-const g = 1,
- h = 2,
- i = 3;
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }` options:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let d,
- e,
- f;
-const g = 1,
- h = 2,
- i = 3;
-```
-
-:::
-
-### outerIIFEBody
-
-Examples of **incorrect** code for this rule with the options `2, { "outerIIFEBody": 0 }`:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "outerIIFEBody": 0 }]*/
-
-(function() {
-
- function foo(x) {
- return x + 1;
- }
-
-})();
-
-if (y) {
-console.log('foo');
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the options `2, { "outerIIFEBody": 0 }`:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "outerIIFEBody": 0 }]*/
-
-(function() {
-
-function foo(x) {
- return x + 1;
-}
-
-})();
-
-if (y) {
- console.log('foo');
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the options `2, { "outerIIFEBody": "off" }`:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "outerIIFEBody": "off" }]*/
-
-(function() {
-
-function foo(x) {
- return x + 1;
-}
-
-})();
-
-(function() {
-
- function foo(x) {
- return x + 1;
- }
-
-})();
-
-if (y) {
- console.log('foo');
-}
-```
-
-:::
-
-### MemberExpression
-
-Examples of **incorrect** code for this rule with the `2, { "MemberExpression": 1 }` options:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "MemberExpression": 1 }]*/
-
-foo
-.bar
-.baz()
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "MemberExpression": 1 }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "MemberExpression": 1 }]*/
-
-foo
- .bar
- .baz();
-```
-
-:::
-
-### FunctionDeclaration
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }]*/
-
-function foo(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }]*/
-
-function foo(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionDeclaration": {"parameters": "first"} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, {"FunctionDeclaration": {"parameters": "first"}}]*/
-
-function foo(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "FunctionDeclaration": {"parameters": "first"} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, {"FunctionDeclaration": {"parameters": "first"}}]*/
-
-function foo(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-:::
-
-### FunctionExpression
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionExpression": {"body": 1, "parameters": 2} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "FunctionExpression": {"body": 1, "parameters": 2} }]*/
-
-var foo = function(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "FunctionExpression": {"body": 1, "parameters": 2} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "FunctionExpression": {"body": 1, "parameters": 2} }]*/
-
-var foo = function(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionExpression": {"parameters": "first"} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, {"FunctionExpression": {"parameters": "first"}}]*/
-
-var foo = function(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "FunctionExpression": {"parameters": "first"} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, {"FunctionExpression": {"parameters": "first"}}]*/
-
-var foo = function(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-:::
-
-### StaticBlock
-
-Examples of **incorrect** code for this rule with the `2, { "StaticBlock": {"body": 1} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "StaticBlock": {"body": 1} }]*/
-
-class C {
- static {
- foo();
- }
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "StaticBlock": {"body": 1} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "StaticBlock": {"body": 1} }]*/
-
-class C {
- static {
- foo();
- }
-}
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "StaticBlock": {"body": 2} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "StaticBlock": {"body": 2} }]*/
-
-class C {
- static {
- foo();
- }
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "StaticBlock": {"body": 2} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "StaticBlock": {"body": 2} }]*/
-
-class C {
- static {
- foo();
- }
-}
-```
-
-:::
-
-### CallExpression
-
-Examples of **incorrect** code for this rule with the `2, { "CallExpression": {"arguments": 1} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "CallExpression": {"arguments": 1} }]*/
-
-foo(bar,
- baz,
- qux
-);
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "CallExpression": {"arguments": 1} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "CallExpression": {"arguments": 1} }]*/
-
-foo(bar,
- baz,
- qux
-);
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "CallExpression": {"arguments": "first"} }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, {"CallExpression": {"arguments": "first"}}]*/
-
-foo(bar, baz,
- baz, boop, beep);
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "CallExpression": {"arguments": "first"} }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, {"CallExpression": {"arguments": "first"}}]*/
-
-foo(bar, baz,
- baz, boop, beep);
-```
-
-:::
-
-### ArrayExpression
-
-Examples of **incorrect** code for this rule with the `2, { "ArrayExpression": 1 }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "ArrayExpression": 1 }]*/
-
-var foo = [
- bar,
-baz,
- qux
-];
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "ArrayExpression": 1 }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "ArrayExpression": 1 }]*/
-
-var foo = [
- bar,
- baz,
- qux
-];
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "ArrayExpression": "first" }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, {"ArrayExpression": "first"}]*/
-
-var foo = [bar,
- baz,
- qux
-];
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "ArrayExpression": "first" }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, {"ArrayExpression": "first"}]*/
-
-var foo = [bar,
- baz,
- qux
-];
-```
-
-:::
-
-### ObjectExpression
-
-Examples of **incorrect** code for this rule with the `2, { "ObjectExpression": 1 }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "ObjectExpression": 1 }]*/
-
-var foo = {
- bar: 1,
-baz: 2,
- qux: 3
-};
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "ObjectExpression": 1 }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "ObjectExpression": 1 }]*/
-
-var foo = {
- bar: 1,
- baz: 2,
- qux: 3
-};
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "ObjectExpression": "first" }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, {"ObjectExpression": "first"}]*/
-
-var foo = { bar: 1,
- baz: 2 };
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "ObjectExpression": "first" }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, {"ObjectExpression": "first"}]*/
-
-var foo = { bar: 1,
- baz: 2 };
-```
-
-:::
-
-### ImportDeclaration
-
-Examples of **correct** code for this rule with the `4, { "ImportDeclaration": 1 }` option (the default):
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "ImportDeclaration": 1 }]*/
-
-import { foo,
- bar,
- baz,
-} from 'qux';
-```
-
-:::
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "ImportDeclaration": 1 }]*/
-
-import {
- foo,
- bar,
- baz,
-} from 'qux';
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `4, { "ImportDeclaration": "first" }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 4, { "ImportDeclaration": "first" }]*/
-
-import { foo,
- bar,
- baz,
-} from 'qux';
-```
-
-:::
-
-Examples of **correct** code for this rule with the `4, { "ImportDeclaration": "first" }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "ImportDeclaration": "first" }]*/
-
-import { foo,
- bar,
- baz,
-} from 'qux';
-```
-
-:::
-
-### flatTernaryExpressions
-
-Examples of **incorrect** code for this rule with the default `4, { "flatTernaryExpressions": false }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 4, { "flatTernaryExpressions": false }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-:::
-
-Examples of **correct** code for this rule with the default `4, { "flatTernaryExpressions": false }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "flatTernaryExpressions": false }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `4, { "flatTernaryExpressions": true }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 4, { "flatTernaryExpressions": true }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-:::
-
-Examples of **correct** code for this rule with the `4, { "flatTernaryExpressions": true }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "flatTernaryExpressions": true }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-:::
-
-### offsetTernaryExpressions
-
-Examples of **incorrect** code for this rule with the default `2, { "offsetTernaryExpressions": false }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "offsetTernaryExpressions": false }]*/
-
-condition
- ? () => {
- return true
- }
- : () => {
- false
- }
-```
-
-:::
-
-Examples of **correct** code for this rule with the default `2, { "offsetTernaryExpressions": false }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "offsetTernaryExpressions": false }]*/
-
-condition
- ? () => {
- return true
- }
- : condition2
- ? () => {
- return true
- }
- : () => {
- return false
- }
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the `2, { "offsetTernaryExpressions": true }` option:
-
-::: incorrect
-
-```js
-/*eslint indent: ["error", 2, { "offsetTernaryExpressions": true }]*/
-
-condition
- ? () => {
- return true
- }
- : condition2
- ? () => {
- return true
- }
- : () => {
- return false
- }
-```
-
-:::
-
-Examples of **correct** code for this rule with the `2, { "offsetTernaryExpressions": true }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 2, { "offsetTernaryExpressions": true }]*/
-
-condition
- ? () => {
- return true
- }
- : condition2
- ? () => {
- return true
- }
- : () => {
- return false
- }
-```
-
-:::
-
-### ignoreComments
-
-Examples of additional **correct** code for this rule with the `4, { "ignoreComments": true }` option:
-
-::: correct
-
-```js
-/*eslint indent: ["error", 4, { "ignoreComments": true }] */
-
-if (foo) {
- doSomething();
-
-// comment intentionally de-indented
- doSomethingElse();
-}
-```
-
-:::
-
-## Compatibility
-
-* **JSHint**: `indent`
-* **JSCS**: [validateIndentation](https://jscs-dev.github.io/rule/validateIndentation)
diff --git a/docs/description/lines-between-class-members.md b/docs/description/lines-between-class-members.md
deleted file mode 100644
index 911344022..000000000
--- a/docs/description/lines-between-class-members.md
+++ /dev/null
@@ -1,349 +0,0 @@
----
-title: lines-between-class-members
-rule_type: layout
-related_rules:
-- padded-blocks
-- padding-line-between-statements
----
-
-This rule was **deprecated** in ESLint v8.53.0. Please use the [corresponding rule](https://eslint.style/rules/js/lines-between-class-members) in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).
-
-This rule improves readability by enforcing lines between class members. It will not check empty lines before the first member and after the last member, since that is already taken care of by padded-blocks.
-
-## Rule Details
-
-Examples of **incorrect** code for this rule:
-
-::: incorrect
-
-```js
-/* eslint lines-between-class-members: ["error", "always"]*/
-class MyClass {
- x;
- foo() {
- //...
- }
- bar() {
- //...
- }
-}
-```
-
-:::
-
-Examples of **correct** code for this rule:
-
-::: correct
-
-```js
-/* eslint lines-between-class-members: ["error", "always"]*/
-class MyClass {
- x;
-
- foo() {
- //...
- }
-
- bar() {
- //...
- }
-}
-```
-
-:::
-
-Examples of additional **correct** code for this rule:
-
-::: correct
-
-```js
-/* eslint lines-between-class-members: ["error", "always"]*/
-class MyClass {
- x = 1
-
- ;in = 2
-}
-```
-
-:::
-
-### Options
-
-This rule has two options, first option can be string or object, second option is object.
-
-First option can be string `"always"` or `"never"` or an object with a property named `enforce`:
-
-* `"always"`(default) require an empty line after class members
-* `"never"` disallows an empty line after class members
-* `Object`: An object with a property named `enforce`. The enforce property should be an array of objects, each specifying the configuration for enforcing empty lines between specific pairs of class members.
- * **enforce**: You can supply any number of configurations. If a member pair matches multiple configurations, the last matched configuration will be used. If a member pair does not match any configurations, it will be ignored. Each object should have the following properties:
- * **blankLine**: Can be set to either `"always"` or `"never"`, indicating whether a blank line should be required or disallowed between the specified members.
- * **prev**: Specifies the type of the preceding class member. It can be `"method"` for class methods, `"field"` for class fields, or `"*"` for any class member.
- * **next**: Specifies the type of the following class member. It follows the same options as `prev`.
-
-Second option is an object with a property named `exceptAfterSingleLine`:
-
-* `"exceptAfterSingleLine": false`(default) **do not** skip checking empty lines after single-line class members
-* `"exceptAfterSingleLine": true` skip checking empty lines after single-line class members
-
-Examples of **incorrect** code for this rule with the string option:
-
-::: incorrect
-
-```js
-/* eslint lines-between-class-members: ["error", "always"]*/
-class Foo{
- x;
- bar(){}
- baz(){}
-}
-```
-
-:::
-
-::: incorrect
-
-```js
-/* eslint lines-between-class-members: ["error", "never"]*/
-class Bar{
- x;
-
- bar(){}
-
- baz(){}
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the string option:
-
-::: correct
-
-```js
-/* eslint lines-between-class-members: ["error", "always"]*/
-class Foo{
- x;
-
- bar(){}
-
- baz(){}
-}
-```
-
-:::
-
-::: correct
-
-```js
-/* eslint lines-between-class-members: ["error", "never"]*/
-class Bar{
- x;
- bar(){}
- baz(){}
-}
-```
-
-:::
-
-Examples of **incorrect** code for this rule with the array of configurations option:
-
-::: incorrect
-
-```js
-// disallows blank lines between methods
-/*eslint lines-between-class-members: [
- "error",
- {
- enforce: [
- { blankLine: "never", prev: "method", next: "method" }
- ]
- },
-]*/
-
-class MyClass {
- constructor(height, width) {
- this.height = height;
- this.width = width;
- }
-
- fieldA = 'Field A';
- #fieldB = 'Field B';
-
- method1() {}
-
- get area() {
- return this.method1();
- }
-
- method2() {}
-}
-```
-
-:::
-
-::: incorrect
-
-```js
-// requires blank lines around fields, disallows blank lines between methods
-/*eslint lines-between-class-members: [
- "error",
- {
- enforce: [
- { blankLine: "always", prev: "*", next: "field" },
- { blankLine: "always", prev: "field", next: "*" },
- { blankLine: "never", prev: "method", next: "method" }
- ]
- },
-]*/
-
-class MyClass {
- constructor(height, width) {
- this.height = height;
- this.width = width;
- }
- fieldA = 'Field A';
- #fieldB = 'Field B';
- method1() {}
-
- get area() {
- return this.method1();
- }
-
- method2() {}
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the array of configurations option:
-
-::: correct
-
-```js
-// disallows blank lines between methods
-/*eslint lines-between-class-members: [
- "error",
- {
- enforce: [
- { blankLine: "never", prev: "method", next: "method" }
- ]
- },
-]*/
-
-class MyClass {
- constructor(height, width) {
- this.height = height;
- this.width = width;
- }
-
- fieldA = 'Field A';
-
- #fieldB = 'Field B';
-
- method1() {}
- get area() {
- return this.method1();
- }
- method2() {}
-}
-```
-
-:::
-
-::: correct
-
-```js
-// requires blank lines around fields, disallows blank lines between methods
-/*eslint lines-between-class-members: [
- "error",
- {
- enforce: [
- { blankLine: "always", prev: "*", next: "field" },
- { blankLine: "always", prev: "field", next: "*" },
- { blankLine: "never", prev: "method", next: "method" }
- ]
- },
-]*/
-
-class MyClass {
- constructor(height, width) {
- this.height = height;
- this.width = width;
- }
-
- fieldA = 'Field A';
-
- #fieldB = 'Field B';
-
- method1() {}
- get area() {
- return this.method1();
- }
- method2() {}
-}
-```
-
-:::
-
-Examples of **correct** code for this rule with the object option:
-
-::: correct
-
-```js
-/* eslint lines-between-class-members: ["error", "always", { "exceptAfterSingleLine": true }]*/
-class Foo{
- x; // single line class member
- bar(){} // single line class member
- baz(){
- // multi line class member
- }
-
- qux(){}
-}
-```
-
-:::
-
-::: correct
-
-```js
-/*eslint lines-between-class-members: [
- "error",
- {
- enforce: [
- { blankLine: "always", prev: "*", next: "method" },
- { blankLine: "always", prev: "method", next: "*" },
- { blankLine: "always", prev: "field", next: "field" }
- ]
- },
- { exceptAfterSingleLine: true }
-]*/
-
-class MyClass {
- constructor(height, width) {
- this.height = height;
- this.width = width;
- }
-
- fieldA = 'Field A';
- #fieldB = 'Field B';
- method1() {}
- get area() {
- return this.method1();
- }
-
- method2() {}
-}
-```
-
-:::
-
-## When Not To Use It
-
-If you don't want to enforce empty lines between class members, you can disable this rule.
-
-## Compatibility
-
-* [requirePaddingNewLinesAfterBlocks](https://jscs-dev.github.io/rule/requirePaddingNewLinesAfterBlocks)
-* [disallowPaddingNewLinesAfterBlocks](https://jscs-dev.github.io/rule/disallowPaddingNewLinesAfterBlocks)
diff --git a/docs/description/wrap-iife.md b/docs/description/wrap-iife.md
deleted file mode 100644
index 634d6acc5..000000000
--- a/docs/description/wrap-iife.md
+++ /dev/null
@@ -1,145 +0,0 @@
----
-title: wrap-iife
-rule_type: layout
----
-
-This rule was **deprecated** in ESLint v8.53.0. Please use the [corresponding rule](https://eslint.style/rules/js/wrap-iife) in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).
-
-You can immediately invoke function expressions, but not function declarations. A common technique to create an immediately-invoked function expression (IIFE) is to wrap a function declaration in parentheses. The opening parentheses causes the contained function to be parsed as an expression, rather than a declaration.
-
-```js
-// function expression could be unwrapped
-var x = function () { return { y: 1 };}();
-
-// function declaration must be wrapped
-function () { /* side effects */ }(); // SyntaxError
-```
-
-## Rule Details
-
-This rule requires all immediately-invoked function expressions to be wrapped in parentheses.
-
-## Options
-
-This rule has two options, a string option and an object option.
-
-String option:
-
-* `"outside"` enforces always wrapping the *call* expression. The default is `"outside"`.
-* `"inside"` enforces always wrapping the *function* expression.
-* `"any"` enforces always wrapping, but allows either style.
-
-Object option:
-
-* `"functionPrototypeMethods": true` additionally enforces wrapping function expressions invoked using `.call` and `.apply`. The default is `false`.
-
-### outside
-
-Examples of **incorrect** code for the default `"outside"` option:
-
-::: incorrect
-
-```js
-/*eslint wrap-iife: ["error", "outside"]*/
-
-var x = function () { return { y: 1 };}(); // unwrapped
-var x = (function () { return { y: 1 };})(); // wrapped function expression
-```
-
-:::
-
-Examples of **correct** code for the default `"outside"` option:
-
-::: correct
-
-```js
-/*eslint wrap-iife: ["error", "outside"]*/
-
-var x = (function () { return { y: 1 };}()); // wrapped call expression
-```
-
-:::
-
-### inside
-
-Examples of **incorrect** code for the `"inside"` option:
-
-::: incorrect
-
-```js
-/*eslint wrap-iife: ["error", "inside"]*/
-
-var x = function () { return { y: 1 };}(); // unwrapped
-var x = (function () { return { y: 1 };}()); // wrapped call expression
-```
-
-:::
-
-Examples of **correct** code for the `"inside"` option:
-
-::: correct
-
-```js
-/*eslint wrap-iife: ["error", "inside"]*/
-
-var x = (function () { return { y: 1 };})(); // wrapped function expression
-```
-
-:::
-
-### any
-
-Examples of **incorrect** code for the `"any"` option:
-
-::: incorrect
-
-```js
-/*eslint wrap-iife: ["error", "any"]*/
-
-var x = function () { return { y: 1 };}(); // unwrapped
-```
-
-:::
-
-Examples of **correct** code for the `"any"` option:
-
-::: correct
-
-```js
-/*eslint wrap-iife: ["error", "any"]*/
-
-var x = (function () { return { y: 1 };}()); // wrapped call expression
-var x = (function () { return { y: 1 };})(); // wrapped function expression
-```
-
-:::
-
-### functionPrototypeMethods
-
-Examples of **incorrect** code for this rule with the `"inside", { "functionPrototypeMethods": true }` options:
-
-::: incorrect
-
-```js
-/* eslint wrap-iife: [2, "inside", { functionPrototypeMethods: true }] */
-
-var x = function(){ foo(); }()
-var x = (function(){ foo(); }())
-var x = function(){ foo(); }.call(bar)
-var x = (function(){ foo(); }.call(bar))
-```
-
-:::
-
-Examples of **correct** code for this rule with the `"inside", { "functionPrototypeMethods": true }` options:
-
-::: correct
-
-```js
-/* eslint wrap-iife: [2, "inside", { functionPrototypeMethods: true }] */
-
-var x = (function(){ foo(); })()
-var x = (function(){ foo(); }).call(bar)
-```
-
-:::
diff --git a/docs/multiple-tests/all-patterns-typescript/patterns.xml b/docs/multiple-tests/all-patterns-typescript/patterns.xml
index 7a16979ec..82783bc06 100644
--- a/docs/multiple-tests/all-patterns-typescript/patterns.xml
+++ b/docs/multiple-tests/all-patterns-typescript/patterns.xml
@@ -4,12 +4,21 @@
+
+
+
+
+
+
+
+
+
@@ -18,40 +27,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -81,7 +117,10 @@
+
+
+
@@ -102,13 +141,22 @@
+
+
+
+
+
+
+
+
+
@@ -117,7 +165,10 @@
+
+
+
@@ -126,9 +177,11 @@
+
+
@@ -136,11 +189,15 @@
+
+
+
+
@@ -170,10 +227,19 @@
+
+
+
+
+
+
+
+
+
@@ -183,24 +249,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -230,10 +316,12 @@
+
+
@@ -243,6 +331,8 @@
+
+
@@ -250,6 +340,7 @@
+
@@ -388,6 +479,7 @@
+
@@ -412,8 +504,11 @@
+
+
+
@@ -425,8 +520,13 @@
+
+
+
+
+
@@ -444,6 +544,8 @@
+
+
@@ -469,6 +571,8 @@
+
+
@@ -492,10 +596,13 @@
+
+
+
@@ -515,15 +622,23 @@
+
+
+
+
+
+
+
+
@@ -1061,6 +1176,7 @@
+
@@ -1101,6 +1217,7 @@
+
@@ -1148,6 +1265,7 @@
+
@@ -1385,6 +1503,7 @@
+
@@ -1403,6 +1522,7 @@
+
@@ -1414,6 +1534,7 @@
+
@@ -1583,6 +1704,8 @@
+
+
@@ -1751,7 +1874,9 @@
+
+
@@ -1968,6 +2093,7 @@
+
@@ -2064,6 +2190,7 @@
+
@@ -2255,6 +2382,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2277,6 +2421,7 @@
+
@@ -2349,6 +2494,7 @@
+
@@ -2361,6 +2507,7 @@
+
@@ -2379,6 +2526,7 @@
+
@@ -2452,6 +2600,7 @@
+
@@ -2465,6 +2614,7 @@
+
@@ -2492,6 +2642,15 @@
+
+
+
+
+
+
+
+
+
@@ -2499,6 +2658,7 @@
+
@@ -2523,6 +2683,7 @@
+
diff --git a/docs/multiple-tests/all-patterns/patterns.xml b/docs/multiple-tests/all-patterns/patterns.xml
index 7a16979ec..82783bc06 100644
--- a/docs/multiple-tests/all-patterns/patterns.xml
+++ b/docs/multiple-tests/all-patterns/patterns.xml
@@ -4,12 +4,21 @@
+
+
+
+
+
+
+
+
+
@@ -18,40 +27,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -81,7 +117,10 @@
+
+
+
@@ -102,13 +141,22 @@
+
+
+
+
+
+
+
+
+
@@ -117,7 +165,10 @@
+
+
+
@@ -126,9 +177,11 @@
+
+
@@ -136,11 +189,15 @@
+
+
+
+
@@ -170,10 +227,19 @@
+
+
+
+
+
+
+
+
+
@@ -183,24 +249,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -230,10 +316,12 @@
+
+
@@ -243,6 +331,8 @@
+
+
@@ -250,6 +340,7 @@
+
@@ -388,6 +479,7 @@
+
@@ -412,8 +504,11 @@
+
+
+
@@ -425,8 +520,13 @@
+
+
+
+
+
@@ -444,6 +544,8 @@
+
+
@@ -469,6 +571,8 @@
+
+
@@ -492,10 +596,13 @@
+
+
+
@@ -515,15 +622,23 @@
+
+
+
+
+
+
+
+
@@ -1061,6 +1176,7 @@
+
@@ -1101,6 +1217,7 @@
+
@@ -1148,6 +1265,7 @@
+
@@ -1385,6 +1503,7 @@
+
@@ -1403,6 +1522,7 @@
+
@@ -1414,6 +1534,7 @@
+
@@ -1583,6 +1704,8 @@
+
+
@@ -1751,7 +1874,9 @@
+
+
@@ -1968,6 +2093,7 @@
+
@@ -2064,6 +2190,7 @@
+
@@ -2255,6 +2382,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2277,6 +2421,7 @@
+
@@ -2349,6 +2494,7 @@
+
@@ -2361,6 +2507,7 @@
+
@@ -2379,6 +2526,7 @@
+
@@ -2452,6 +2600,7 @@
+
@@ -2465,6 +2614,7 @@
+
@@ -2492,6 +2642,15 @@
+
+
+
+
+
+
+
+
+
@@ -2499,6 +2658,7 @@
+
@@ -2523,6 +2683,7 @@
+
diff --git a/docs/patterns.json b/docs/patterns.json
index 77b220a2b..5188401fe 100644
--- a/docs/patterns.json
+++ b/docs/patterns.json
@@ -70,18 +70,6 @@
"parameters": [],
"enabled": false
},
- {
- "patternId": "arrow-parens",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "requireForBlockBody",
- "default": false
- }
- ],
- "enabled": false
- },
{
"patternId": "arrow-spacing",
"level": "Info",
@@ -112,18 +100,6 @@
"parameters": [],
"enabled": false
},
- {
- "patternId": "brace-style",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "allowSingleLine",
- "default": false
- }
- ],
- "enabled": false
- },
{
"patternId": "callback-return",
"level": "Warning",
@@ -212,18 +188,6 @@
],
"enabled": false
},
- {
- "patternId": "computed-property-spacing",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "enforceForClassMembers",
- "default": true
- }
- ],
- "enabled": false
- },
{
"patternId": "consistent-return",
"level": "Warning",
@@ -496,30 +460,6 @@
"parameters": [],
"enabled": false
},
- {
- "patternId": "indent",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "SwitchCase",
- "default": 0
- },
- {
- "name": "flatTernaryExpressions",
- "default": false
- },
- {
- "name": "offsetTernaryExpressions",
- "default": false
- },
- {
- "name": "ignoreComments",
- "default": false
- }
- ],
- "enabled": false
- },
{
"patternId": "indent-legacy",
"level": "Info",
@@ -626,18 +566,6 @@
"parameters": [],
"enabled": false
},
- {
- "patternId": "lines-between-class-members",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "exceptAfterSingleLine",
- "default": false
- }
- ],
- "enabled": false
- },
{
"patternId": "logical-assignment-operators",
"level": "Warning",
@@ -2748,18 +2676,6 @@
"parameters": [],
"enabled": false
},
- {
- "patternId": "wrap-iife",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "functionPrototypeMethods",
- "default": false
- }
- ],
- "enabled": false
- },
{
"patternId": "wrap-regex",
"level": "Info",
@@ -4767,18 +4683,6 @@
"parameters": [],
"enabled": false
},
- {
- "patternId": "@typescript-eslint_brace-style",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "allowSingleLine",
- "default": false
- }
- ],
- "enabled": false
- },
{
"patternId": "@typescript-eslint_class-literal-property-style",
"level": "Error",
@@ -4931,30 +4835,6 @@
"parameters": [],
"enabled": false
},
- {
- "patternId": "@typescript-eslint_indent",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "SwitchCase",
- "default": 0
- },
- {
- "name": "flatTernaryExpressions",
- "default": false
- },
- {
- "name": "offsetTernaryExpressions",
- "default": false
- },
- {
- "name": "ignoreComments",
- "default": false
- }
- ],
- "enabled": false
- },
{
"patternId": "@typescript-eslint_init-declarations",
"level": "Warning",
@@ -5017,22 +4897,6 @@
],
"enabled": false
},
- {
- "patternId": "@typescript-eslint_lines-between-class-members",
- "level": "Info",
- "category": "CodeStyle",
- "parameters": [
- {
- "name": "exceptAfterSingleLine",
- "default": false
- },
- {
- "name": "exceptAfterOverload",
- "default": true
- }
- ],
- "enabled": false
- },
{
"patternId": "@typescript-eslint_max-params",
"level": "Warning",
diff --git a/package-lock.json b/package-lock.json
index 1fd96b956..8ce0bc706 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -268,7 +268,7 @@
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^3.2.0",
"eslint-plugin-vitest-globals": "^1.5.0",
- "eslint-plugin-vue": "^9.26.0",
+ "eslint-plugin-vue": "^9.32.0",
"eslint-plugin-vue-scoped-css": "^2.8.0",
"eslint-plugin-vuejs-accessibility": "^2.3.1",
"eslint-plugin-vuetify": "^2.5.1",
@@ -36208,9 +36208,9 @@
"license": "MIT"
},
"node_modules/eslint-plugin-vue": {
- "version": "9.27.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.27.0.tgz",
- "integrity": "sha512-5Dw3yxEyuBSXTzT5/Ge1X5kIkRTQ3nvBn/VwPwInNiZBSJOO/timWMUaflONnFBzU6NhB68lxnCda7ULV5N7LA==",
+ "version": "9.32.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.32.0.tgz",
+ "integrity": "sha512-b/Y05HYmnB/32wqVcjxjHZzNpwxj1onBOvqW89W+V+XNG1dRuaFbNd3vT9CLbr2LXjEoq+3vn8DanWf7XU22Ug==",
"license": "MIT",
"dependencies": {
"@eslint-community/eslint-utils": "^4.4.0",
@@ -36218,7 +36218,7 @@
"natural-compare": "^1.4.0",
"nth-check": "^2.1.1",
"postcss-selector-parser": "^6.0.15",
- "semver": "^7.6.0",
+ "semver": "^7.6.3",
"vue-eslint-parser": "^9.4.3",
"xml-name-validator": "^4.0.0"
},
diff --git a/package.json b/package.json
index 459383078..8faf0ed2e 100644
--- a/package.json
+++ b/package.json
@@ -325,7 +325,7 @@
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^3.2.0",
"eslint-plugin-vitest-globals": "^1.5.0",
- "eslint-plugin-vue": "^9.26.0",
+ "eslint-plugin-vue": "^9.32.0",
"eslint-plugin-vue-scoped-css": "^2.8.0",
"eslint-plugin-vuejs-accessibility": "^2.3.1",
"eslint-plugin-vuetify": "^2.5.1",
diff --git a/src/blacklist.ts b/src/blacklist.ts
index 3eeb632b1..a02ff511c 100644
--- a/src/blacklist.ts
+++ b/src/blacklist.ts
@@ -17,7 +17,15 @@ const blacklistRegexes: RegExp[] = [
/functional\/prefer-immutable-types/,
/functional\/type-declaration-immutability/,
/unused-imports\/.*-ts/,
- /yml\/sort-sequence-values/
+ /yml\/sort-sequence-values/,
+ /(?<=^|\s)arrow-parens(?=\s|$)/,
+ /(?<=^|\s)indent(?=\s|$)/,
+ /(?<=^|\s)computed-property-spacing(?=\s|$)/,
+ /(?<=^|\s)brace-style(?=\s|$)/,
+ /(?