-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(widgets): add react and react hooks eslint config (#4838)
### Description Add react and react hooks eslint rules for better linting in the widgets project ### Drive-by changes No ### Backward compatibility Yes ### Testing Manual testing
- Loading branch information
Showing
3 changed files
with
714 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
{ | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"prettier" | ||
], | ||
"plugins": ["react", "react-hooks", "@typescript-eslint"], | ||
"rules": { | ||
// TODO use utils rootLogger in widgets lib | ||
"no-console": ["off"] | ||
"no-console": ["off"], | ||
"react/react-in-jsx-scope": "off", | ||
"react/prop-types": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn" | ||
} | ||
} |
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.