From e66c5dd2335131c0a96d66bbb401b541ff29672e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 11:11:34 +0400 Subject: Added react and react-hooks plugins Signed-off-by: Valentin Popov --- src/react-javascript.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/react-javascript.ts') diff --git a/src/react-javascript.ts b/src/react-javascript.ts index 813e859..e3bea86 100644 --- a/src/react-javascript.ts +++ b/src/react-javascript.ts @@ -1,15 +1,27 @@ import rJsxA11y from "./rules/jsx-a11y/default.json"; +import rReactHooks from "./rules/react-hooks/default.json"; import rDefault from "./rules/react/default.json"; module.exports = { "extends": [ "./javascript", + "plugin:jsx-a11y/recommended", + "plugin:react-hooks/recommended", + "plugin:react/recommended", ], + "parserOptions": { + ecmaFeatures: { + jsx: true, + }, + }, "plugins": [ "jsx-a11y", + "react", + "react-hooks", ], "rules": { ...rDefault, ...rJsxA11y, + ...rReactHooks, }, }; -- cgit v1.2.3