From 095a31c8fb4575dd1b02d4c10a188368398e0749 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 11:01:17 +0400 Subject: Added jsx-a11y plugin Signed-off-by: Valentin Popov --- src/rules/react/default.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/rules/react/default.json (limited to 'src/rules/react') diff --git a/src/rules/react/default.json b/src/rules/react/default.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/rules/react/default.json @@ -0,0 +1 @@ +{} -- cgit v1.2.3 From 6cef3fc8443d497f473e78e5452af9e6840d9975 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 18 Jun 2020 11:53:24 +0400 Subject: Added some react rules Signed-off-by: Valentin Popov --- docs/roadmap/react.md | 6 +++--- src/rules/react/default.json | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) (limited to 'src/rules/react') diff --git a/docs/roadmap/react.md b/docs/roadmap/react.md index 20a9b26..9b4631d 100644 --- a/docs/roadmap/react.md +++ b/docs/roadmap/react.md @@ -11,7 +11,7 @@ - [ ] "forbid-foreign-prop-types" - [ ] "forbid-prop-types" - [ ] "function-component-definition" -- [ ] "jsx-boolean-value" +- [X] "jsx-boolean-value" - [ ] "jsx-child-element-spacing" - [ ] "jsx-closing-bracket-location" - [ ] "jsx-closing-tag-location" @@ -21,7 +21,7 @@ - [ ] "jsx-equals-spacing" - [ ] "jsx-filename-extension" - [ ] "jsx-first-prop-new-line" -- [ ] "jsx-fragments" +- [X] "jsx-fragments" - [ ] "jsx-handler-names" - [ ] "jsx-indent" - [ ] "jsx-indent-props" @@ -69,7 +69,7 @@ - [ ] "no-unescaped-entities" - [ ] "no-unknown-property" - [ ] "no-unsafe" -- [ ] "no-unused-prop-types" +- [X] "no-unused-prop-types" - [ ] "no-unused-state" - [ ] "no-will-update-set-state" - [ ] "prefer-es6-class" diff --git a/src/rules/react/default.json b/src/rules/react/default.json index 0967ef4..66a8727 100644 --- a/src/rules/react/default.json +++ b/src/rules/react/default.json @@ -1 +1,16 @@ -{} +{ + "react/jsx-boolean-value": [ + "error", + "always" + ], + "react/jsx-fragments": [ + "error", + "element" + ], + "react/no-unused-prop-types": [ + "warn", + { + "skipShapeProps": false + } + ] +} \ No newline at end of file -- cgit v1.2.3