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 testingpull/4842/head
parent
5f41b11346
commit
bf4c77996e
@ -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" |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue