Skip to content

Commit

Permalink
chore(release): 121.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 22, 2020
1 parent a362709 commit 70cee34
Show file tree
Hide file tree
Showing 4 changed files with 1,615 additions and 1,979 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org). Except add new
rule (it is breaking changed by default).

## 121.0.0 - 2020-01-20

- Added: `react/jsx-no-script-url` rule.
- Added: `react/no-adjacent-inline-elements` rule.
- Changed: minimum required `eslint-plugin-ava` version is now `10.0.0`.
- Changed: minimum required `eslint-plugin-import` version is now `2.20.0`.
- Changed: minimum required `eslint-plugin-jest` version is now `23.6.0`.
- Changed: minimum required `eslint-plugin-react` version is now `7.18.0`.

## 120.0.0 - 2020-01-10

- Added: the `unicode-bom` rule.
Expand Down
8 changes: 7 additions & 1 deletion lib/config/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ module.exports = {
checkChildContextTypes: true
}
],
// Enforce a specific function type for function components
"react/function-component-definition": "off",
// Forbid foreign propTypes
"react/forbid-foreign-prop-types": ["error", { allowInPropTypes: true }],
// Prevent using Array index in key props
Expand Down Expand Up @@ -267,6 +269,8 @@ module.exports = {
"react/jsx-no-duplicate-props": ["error", { ignoreCase: true }],
// Prevent usage of unwrapped JSX strings
"react/jsx-no-literals": "off",
// Prevent usage of `javascript:` URLs
"react/jsx-no-script-url": "error",
// Prevent usage of unsafe target="_blank"
"react/jsx-no-target-blank": ["error", { enforceDynamicLinks: "always" }],
// Disallow undeclared variables in JSX
Expand Down Expand Up @@ -319,5 +323,7 @@ module.exports = {
// Disable in favor `prettier`
"react/jsx-wrap-multilines": "off",
// Prevent using `this.state` within a `this.setState`
"react/no-access-state-in-setstate": "error"
"react/no-access-state-in-setstate": "error",
// Prevent adjacent inline elements not separated by whitespace
"react/no-adjacent-inline-elements": "error"
};
Loading

0 comments on commit 70cee34

Please sign in to comment.