forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start enabling "rules of hooks" lint rules (microsoft#14097)
- Loading branch information
1 parent
4b8d8bc
commit 63b41e9
Showing
36 changed files
with
248 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
change/@fluentui-eslint-plugin-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Enable react-hooks lint rules", | ||
"packageName": "@fluentui/eslint-plugin", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-07-18T04:52:18.203Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@fluentui-react-next-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Disable react-hooks lint rules for now", | ||
"packageName": "@fluentui/react-next", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "none", | ||
"date": "2020-07-18T04:53:18.328Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@fluentui-react-stylesheets-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Fix \"rules of hooks\" lint rule violations", | ||
"packageName": "@fluentui/react-stylesheets", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-07-18T04:53:28.129Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-date-time-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Disable react-hooks lint rules for now", | ||
"packageName": "@uifabric/date-time", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "none", | ||
"date": "2020-07-18T04:52:08.572Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-experiments-2020-07-20-10-53-10-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Disable react-hooks lint rules for now.", | ||
"packageName": "@uifabric/experiments", | ||
"email": "humbertomakotomorimoto@gmail.com", | ||
"dependentChangeType": "none", | ||
"date": "2020-07-20T17:53:10.538Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-foundation-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Fix \"rules of hooks\" lint rule violations", | ||
"packageName": "@uifabric/foundation", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-07-18T04:52:49.183Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-react-hooks-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Disable react-hooks lint rules for now", | ||
"packageName": "@uifabric/react-hooks", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "none", | ||
"date": "2020-07-18T04:53:13.903Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-tsx-editor-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Fix \"rules of hooks\" lint rule violations", | ||
"packageName": "@uifabric/tsx-editor", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-07-18T04:53:43.812Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-utilities-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "none", | ||
"comment": "Disable react-hooks lint rules for now", | ||
"packageName": "@uifabric/utilities", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "none", | ||
"date": "2020-07-18T04:53:53.969Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/office-ui-fabric-react-2020-07-17-21-53-53-eslint-hooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Fix \"rules of hooks\" lint rule violations", | ||
"packageName": "office-ui-fabric-react", | ||
"email": "elcraig@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-07-18T04:53:02.288Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"extends": ["plugin:@fluentui/eslint-plugin/react--legacy"], | ||
"root": true | ||
"root": true, | ||
"rules": { | ||
// Disable until issues are dealt with | ||
"react-hooks/exhaustive-deps": "off", | ||
"react-hooks/rules-of-hooks": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"extends": ["plugin:@fluentui/eslint-plugin/react--legacy"], | ||
"root": true | ||
"root": true, | ||
"rules": { | ||
// Disable until issues are dealt with | ||
"react-hooks/exhaustive-deps": "off", | ||
"react-hooks/rules-of-hooks": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.