Skip to content

Commit

Permalink
Updates test cases and "README" descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
OlehDutchenko committed Oct 15, 2023
1 parent ee1acd3 commit b39fabd
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 32 deletions.
4 changes: 3 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"packages": [
"packages/*"
],
"version": "11.0.5"
"version": "11.0.5",
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": false
}
3 changes: 0 additions & 3 deletions packages/eslint-config-react/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
"react/require-render-return": "error",
"react/style-prop-object": "error",

"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",

"jsx-a11y/alt-text": "error",
"jsx-a11y/anchor-has-content": "error",
"jsx-a11y/anchor-is-valid": [
Expand Down
27 changes: 9 additions & 18 deletions packages/eslint-config-react/RULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Table of Contents

1. [import/no-amd](#importno-amd)
1. [import/no-anonymous-default-export](#importno-anonymous-default-export)
1. [react/display-name](#reactdisplay-name)
1. [react/forbid-foreign-prop-types](#reactforbid-foreign-prop-types)
1. [react/jsx-no-comment-textnodes](#reactjsx-no-comment-textnodes)
1. [react/jsx-no-duplicate-props](#reactjsx-no-duplicate-props)
Expand Down Expand Up @@ -39,8 +40,6 @@ Table of Contents
1. [jsx-a11y/role-has-required-aria-props](#jsx-a11yrole-has-required-aria-props)
1. [jsx-a11y/role-supports-aria-props](#jsx-a11yrole-supports-aria-props)
1. [jsx-a11y/scope](#jsx-a11yscope)
1. [react-hooks/rules-of-hooks](#react-hooksrules-of-hooks)
1. [react-hooks/exhaustive-deps](#react-hooksexhaustive-deps)

[comment]: <> (TOC-END)

Expand Down Expand Up @@ -88,6 +87,14 @@ export default function Hello() {

---

### react/display-name

Rule disabled

[🔙 Back to the README](README.md) | [🔝 Top](#readme)

---

### react/forbid-foreign-prop-types

_Value_:
Expand Down Expand Up @@ -369,22 +376,6 @@ _Value_: `"error"`

_Value_: `"error"`

[🔙 Back to the README](README.md) | [🔝 Top](#readme)

---

### react-hooks/rules-of-hooks

_Value_: `"error"`

[🔙 Back to the README](README.md) | [🔝 Top](#readme)

---

### react-hooks/exhaustive-deps

_Value_: `"error"`

[comment]: <> (RULES-END)

---
Expand Down
31 changes: 24 additions & 7 deletions packages/eslint-config-ts/RULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Table of Contents
1. [no-unreachable](#no-unreachable)
1. [no-unsafe-negation](#no-unsafe-negation)
1. [no-unused-vars](#no-unused-vars)
1. [no-useless-constructor](#no-useless-constructor)
1. [no-var](#no-var)
1. [no-use-before-define](#no-use-before-define)
1. [prefer-const](#prefer-const)
Expand Down Expand Up @@ -250,6 +251,14 @@ Rule disabled

---

### no-useless-constructor

Rule disabled

[🔙 Back to the README](README.md) | [🔝 Top](#readme)

---

### no-var

_Value_: `"error"`
Expand Down Expand Up @@ -539,12 +548,6 @@ _Value_:
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow"
},
{
"selector": "memberLike",
"modifiers": ["private"],
"format": null,
"leadingUnderscore": "require"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
Expand Down Expand Up @@ -902,7 +905,21 @@ _Value_:

### @typescript-eslint/no-use-before-define

_Value_: `"error"`
_Value_:

```json
[
"error",
{
"functions": false,
"classes": true,
"variables": true,
"enums": true,
"typedefs": true,
"ignoreTypeReferences": true
}
]
```

[🔙 Back to the README](README.md) | [🔝 Top](#readme)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars, no-undef */
/* __AUTO-TEST-EXPECT-ERRORS-COUNT=11__ */
/* __AUTO-TEST-EXPECT-ERRORS-COUNT=7__ */
export const blank = true;
/* __AUTO-DOC-PRINT-AFTER__ */

Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/RULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,8 @@ _Value_:
"error",
{
"functions": false,
"classes": false,
"variables": false
"classes": true,
"variables": true
}
]
```
Expand Down

0 comments on commit b39fabd

Please sign in to comment.