Skip to content

Commit

Permalink
feat!(no-this-expression): remove no-this-expression from recommend…
Browse files Browse the repository at this point in the history
…ed and lite rulesets
  • Loading branch information
RebeccaStevens committed Sep 29, 2022
1 parent 94ff631 commit 1aeca29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ The [below section](#rules) gives details on which rules are enabled by each rul
| ---------------------------------------------------------- | ------------------------------------------------------------------ | :----------------------------------------------------: | :-----------------------------------------: | :--------------------------------------------: | :--------------------------------------: | :------: | :---------------: |
| [`no-class`](./docs/rules/no-class.md) | Disallow classes | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |
| [`no-mixed-type`](./docs/rules/no-mixed-type.md) | Disallow types that contain both callable and non-callable members | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :thought_balloon: |
| [`no-this-expression`](./docs/rules/no-this-expression.md) | Disallow `this` access | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |
| [`no-this-expression`](./docs/rules/no-this-expression.md) | Disallow `this` access | :heavy_check_mark: | :heavy_check_mark: | | | | |

### No Statements Rules

Expand Down
2 changes: 2 additions & 0 deletions src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Immutability } from "is-immutable-type";
import * as functionalParameters from "~/rules/functional-parameters";
import * as noConditionalStatement from "~/rules/no-conditional-statement";
import * as noLet from "~/rules/no-let";
import * as noThisExpression from "~/rules/no-this-expression";
import * as noThrowStatement from "~/rules/no-throw-statement";
import * as noTryStatement from "~/rules/no-try-statement";
import * as preferImmutableParameterTypes from "~/rules/prefer-immutable-parameter-types";
Expand Down Expand Up @@ -36,6 +37,7 @@ const overrides: Linter.Config = {
allowInForLoopInit: true,
},
],
[`functional/${noThisExpression.name}`]: "off",
[`functional/${noThrowStatement.name}`]: [
"error",
{
Expand Down

0 comments on commit 1aeca29

Please sign in to comment.