Skip to content

Commit

Permalink
Add new rule to recommended
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Nov 27, 2020
1 parent 2e593cd commit 4bef436
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ module.exports = {
allowedTextDomain: 'default',
},
],
'@wordpress/no-unsafe-wp-apis': 'off',
'no-restricted-syntax': [
'error',
// NOTE: We can't include the forward slash in our regex or
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- Add `no-unsafe-wp-apis` to recommended rules ([#27327](https://github.com/WordPress/gutenberg/pull/27327)).

### New Feature

- Add `no-unsafe-wp-apis` rule to discourage usage of unsafe APIs ([#27301](https://github.com/WordPress/gutenberg/pull/27301)).
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin/configs/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
'@wordpress/no-global-active-element': 'error',
'@wordpress/no-global-get-selection': 'error',
'@wordpress/no-global-event-listener': 'warn',
'@wordpress/no-unsafe-wp-apis': 'error',
},
overrides: [
{
Expand Down

0 comments on commit 4bef436

Please sign in to comment.