diff --git a/.eslintrc.js b/.eslintrc.js index b194829c..cdf7f53d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -746,7 +746,9 @@ module.exports = { 'react/forbid-elements': 'off', 'react/forbid-foreign-prop-types': 'off', 'react/forbid-prop-types': 'off', + 'react/function-component-definition': 'error', 'react/no-access-state-in-setstate': 'error', + 'react/no-adjacent-inline-elements': 'error', 'react/no-array-index-key': 'error', 'react/no-children-prop': 'error', 'react/no-danger': 'error', @@ -860,6 +862,7 @@ module.exports = { 'react/jsx-no-comment-textnodes': 'error', 'react/jsx-no-duplicate-props': 'error', 'react/jsx-no-literals': 'off', + 'react/jsx-no-script-url': 'error', 'react/jsx-no-target-blank': ['error', { enforceDynamicLinks: 'always' }], 'react/jsx-no-undef': ['error', { allowGlobals: true }], 'react/jsx-no-useless-fragment': 'error', diff --git a/README.md b/README.md index 494cd182..3cf82f74 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ [![Build Status](https://travis-ci.org/saiichihashimoto/eslint-config-saiichihashimoto.svg?branch=master)](https://travis-ci.org/saiichihashimoto/eslint-config-saiichihashimoto) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) -[![Greenkeeper badge](https://badges.greenkeeper.io/saiichihashimoto/eslint-config-saiichihashimoto.svg)](https://greenkeeper.io/) +