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 authored and gziolo committed Jan 3, 2021
1 parent 3ce404e commit e2a8f4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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
1 change: 1 addition & 0 deletions packages/eslint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Enabled `import/no-extraneous-dependencies` rule in the `recommended` ruleset.
- Enabled `import/no-unresolved` rule in the `recommended` ruleset.
- Enabled `no-unsafe-wp-apis` rule in the `recommended` ruleset ([#27327](https://github.com/WordPress/gutenberg/pull/27327)).

## 7.4.0 (2020-12-17)

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 e2a8f4b

Please sign in to comment.