Skip to content

Commit b39fabd

Browse files
committed
Updates test cases and "README" descriptions
1 parent ee1acd3 commit b39fabd

File tree

6 files changed

+39
-32
lines changed

6 files changed

+39
-32
lines changed

lerna.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "11.0.5"
5+
"version": "11.0.5",
6+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
7+
"useWorkspaces": false
68
}

packages/eslint-config-react/.eslintrc.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
"react/require-render-return": "error",
3939
"react/style-prop-object": "error",
4040

41-
"react-hooks/rules-of-hooks": "error",
42-
"react-hooks/exhaustive-deps": "error",
43-
4441
"jsx-a11y/alt-text": "error",
4542
"jsx-a11y/anchor-has-content": "error",
4643
"jsx-a11y/anchor-is-valid": [

packages/eslint-config-react/RULES.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Table of Contents
88

99
1. [import/no-amd](#importno-amd)
1010
1. [import/no-anonymous-default-export](#importno-anonymous-default-export)
11+
1. [react/display-name](#reactdisplay-name)
1112
1. [react/forbid-foreign-prop-types](#reactforbid-foreign-prop-types)
1213
1. [react/jsx-no-comment-textnodes](#reactjsx-no-comment-textnodes)
1314
1. [react/jsx-no-duplicate-props](#reactjsx-no-duplicate-props)
@@ -39,8 +40,6 @@ Table of Contents
3940
1. [jsx-a11y/role-has-required-aria-props](#jsx-a11yrole-has-required-aria-props)
4041
1. [jsx-a11y/role-supports-aria-props](#jsx-a11yrole-supports-aria-props)
4142
1. [jsx-a11y/scope](#jsx-a11yscope)
42-
1. [react-hooks/rules-of-hooks](#react-hooksrules-of-hooks)
43-
1. [react-hooks/exhaustive-deps](#react-hooksexhaustive-deps)
4443

4544
[comment]: <> (TOC-END)
4645

@@ -88,6 +87,14 @@ export default function Hello() {
8887

8988
---
9089

90+
### react/display-name
91+
92+
Rule disabled
93+
94+
[🔙 Back to the README](README.md) | [🔝 Top](#readme)
95+
96+
---
97+
9198
### react/forbid-foreign-prop-types
9299

93100
_Value_:
@@ -369,22 +376,6 @@ _Value_: `"error"`
369376

370377
_Value_: `"error"`
371378

372-
[🔙 Back to the README](README.md) | [🔝 Top](#readme)
373-
374-
---
375-
376-
### react-hooks/rules-of-hooks
377-
378-
_Value_: `"error"`
379-
380-
[🔙 Back to the README](README.md) | [🔝 Top](#readme)
381-
382-
---
383-
384-
### react-hooks/exhaustive-deps
385-
386-
_Value_: `"error"`
387-
388379
[comment]: <> (RULES-END)
389380

390381
---

packages/eslint-config-ts/RULES.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Table of Contents
2727
1. [no-unreachable](#no-unreachable)
2828
1. [no-unsafe-negation](#no-unsafe-negation)
2929
1. [no-unused-vars](#no-unused-vars)
30+
1. [no-useless-constructor](#no-useless-constructor)
3031
1. [no-var](#no-var)
3132
1. [no-use-before-define](#no-use-before-define)
3233
1. [prefer-const](#prefer-const)
@@ -250,6 +251,14 @@ Rule disabled
250251

251252
---
252253

254+
### no-useless-constructor
255+
256+
Rule disabled
257+
258+
[🔙 Back to the README](README.md) | [🔝 Top](#readme)
259+
260+
---
261+
253262
### no-var
254263

255264
_Value_: `"error"`
@@ -539,12 +548,6 @@ _Value_:
539548
"format": ["camelCase", "PascalCase"],
540549
"leadingUnderscore": "allow"
541550
},
542-
{
543-
"selector": "memberLike",
544-
"modifiers": ["private"],
545-
"format": null,
546-
"leadingUnderscore": "require"
547-
},
548551
{
549552
"selector": "typeLike",
550553
"format": ["PascalCase"]
@@ -902,7 +905,21 @@ _Value_:
902905

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

905-
_Value_: `"error"`
908+
_Value_:
909+
910+
```json
911+
[
912+
"error",
913+
{
914+
"functions": false,
915+
"classes": true,
916+
"variables": true,
917+
"enums": true,
918+
"typedefs": true,
919+
"ignoreTypeReferences": true
920+
}
921+
]
922+
```
906923

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

packages/eslint-config-ts/tests/fixtures/@typescript-eslint___naming-convention.invalid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-unused-vars, no-undef */
2-
/* __AUTO-TEST-EXPECT-ERRORS-COUNT=11__ */
2+
/* __AUTO-TEST-EXPECT-ERRORS-COUNT=7__ */
33
export const blank = true;
44
/* __AUTO-DOC-PRINT-AFTER__ */
55

packages/eslint-config/RULES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,8 @@ _Value_:
937937
"error",
938938
{
939939
"functions": false,
940-
"classes": false,
941-
"variables": false
940+
"classes": true,
941+
"variables": true
942942
}
943943
]
944944
```

0 commit comments

Comments
 (0)