@wordpress/eslint-plugin 13.10.2 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,7 +24,7 @@ To opt-in to the default configuration, extend your own project's `.eslintrc` fi
24
24
 
25
25
  Refer to the [ESLint documentation on Shareable Configs](http://eslint.org/docs/developer-guide/shareable-configs) for more information.
26
26
 
27
- The `recommended` preset will include rules governing an ES2015+ environment, and includes rules from the [`eslint-plugin-jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc), [`eslint-plugin-jsx-a11y`](https://github.com/evcohen/eslint-plugin-jsx-a11y), [`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react), and other similar plugins.
27
+ The `recommended` preset will include rules governing an ES2015+ environment, and includes rules from the [`eslint-plugin-jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc), [`eslint-plugin-jsx-a11y`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y), [`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react), and other similar plugins.
28
28
 
29
29
  This preset offers an optional integration with the [`eslint-plugin-prettier`](https://github.com/prettier/eslint-plugin-prettier) package that runs [Prettier](https://prettier.io) code formatter and reports differences as individual ESLint issues. You can activate it by installing the [`prettier`](https://www.npmjs.com/package/prettier) package separately with:
30
30
 
package/configs/jsdoc.js CHANGED
@@ -113,7 +113,7 @@ module.exports = {
113
113
  'jsdoc/check-access': 'error',
114
114
  'jsdoc/check-alignment': 'error',
115
115
  'jsdoc/check-line-alignment': [
116
- 'warn',
116
+ 'error',
117
117
  'always',
118
118
  {
119
119
  tags: [ 'param', 'arg', 'argument', 'property', 'prop' ],
package/configs/react.js CHANGED
@@ -34,6 +34,7 @@ module.exports = {
34
34
  'react/no-children-prop': 'off',
35
35
  'react/prop-types': 'off',
36
36
  'react/react-in-jsx-scope': 'off',
37
+ 'react-hooks/exhaustive-deps': 'warn',
37
38
  'react-hooks/rules-of-hooks': 'error',
38
39
  },
39
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/eslint-plugin",
3
- "version": "13.10.2",
3
+ "version": "14.0.0",
4
4
  "description": "ESLint plugin for WordPress development.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -34,8 +34,8 @@
34
34
  "@babel/eslint-parser": "^7.16.0",
35
35
  "@typescript-eslint/eslint-plugin": "^5.3.0",
36
36
  "@typescript-eslint/parser": "^5.3.0",
37
- "@wordpress/babel-preset-default": "^7.10.1",
38
- "@wordpress/prettier-config": "^2.9.1",
37
+ "@wordpress/babel-preset-default": "^7.11.0",
38
+ "@wordpress/prettier-config": "^2.10.0",
39
39
  "cosmiconfig": "^7.0.0",
40
40
  "eslint-config-prettier": "^8.3.0",
41
41
  "eslint-plugin-import": "^2.25.2",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "1bf01c01a8238ce3a681ad1e517f86033818b78d"
68
+ "gitHead": "c25ff895413bad4354c55c0c2d732552618b0d56"
69
69
  }