mirror of
https://github.com/lingble/twenty.git
synced 2025-10-29 20:02:29 +00:00
Create ESLint rule to discourage usage of navigate() and prefer Link (#5642)
### Description Create ESLint rule to discourage usage of navigate() and prefer Link ### Refs #5468 ### Demo   Fixes #5468 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@@ -22,6 +22,10 @@ import {
|
||||
rule as noHardcodedColors,
|
||||
RULE_NAME as noHardcodedColorsName,
|
||||
} from './rules/no-hardcoded-colors';
|
||||
import {
|
||||
rule as noNavigatePreferLink,
|
||||
RULE_NAME as noNavigatePreferLinkName,
|
||||
} from './rules/no-navigate-prefer-link';
|
||||
import {
|
||||
rule as noStateUseref,
|
||||
RULE_NAME as noStateUserefName,
|
||||
@@ -83,5 +87,6 @@ module.exports = {
|
||||
[maxConstsPerFileName]: maxConstsPerFile,
|
||||
[useRecoilCallbackHasDependencyArrayName]:
|
||||
useRecoilCallbackHasDependencyArray,
|
||||
[noNavigatePreferLinkName]: noNavigatePreferLink,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user