@scaleway/eslint-config-react 3.2.2 → 3.3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.3.0](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.2.2...@scaleway/eslint-config-react@3.3.0) (2021-12-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * **eslint-config:** enable prefer-object-has-own ([#564](https://github.com/scaleway/scaleway-lib/issues/564)) ([a0b11ca](https://github.com/scaleway/scaleway-lib/commit/a0b11ca9bd6ea10d6e08e0257b8209bdca2a60a0))
12
+
13
+
14
+
6
15
  ### [3.2.2](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.2.1...@scaleway/eslint-config-react@3.2.2) (2021-12-28)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "3.2.2",
3
+ "version": "3.3.0",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@typescript-eslint/eslint-plugin": "5.8.1",
21
21
  "@typescript-eslint/parser": "5.8.1",
22
- "eslint-config-airbnb": "19.0.2",
22
+ "eslint-config-airbnb": "19.0.4",
23
23
  "eslint-config-airbnb-typescript": "16.1.0",
24
24
  "eslint-config-prettier": "8.3.0",
25
25
  "eslint-plugin-eslint-comments": "3.2.0",
@@ -29,7 +29,7 @@
29
29
  "eslint-plugin-react-hooks": "4.3.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "eslint": "7.x || 8.x"
32
+ "eslint": ">= 8.5"
33
33
  },
34
- "gitHead": "a2e30e5f02af27b56cec61e1afeae23fde9e99de"
34
+ "gitHead": "29aaf59e294fb8d3372e8900d8ff9ad782d60150"
35
35
  }
package/shared.js CHANGED
@@ -1,3 +1,5 @@
1
+ /* eslint-disable sort-keys */
2
+
1
3
  module.exports = {
2
4
  extends: ['airbnb/hooks', 'prettier', 'plugin:eslint-comments/recommended'],
3
5
  rules: {
@@ -57,6 +59,7 @@ module.exports = {
57
59
  // These are rules soon to be enabled by airbnb react config
58
60
  // We're getting a head start
59
61
  'react/no-adjacent-inline-elements': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
62
+ 'prefer-object-has-own': 'error', // https://eslint.org/docs/rules/prefer-object-has-own
60
63
 
61
64
  // To have consistent ordering in proptypes
62
65
  'react/sort-prop-types': [
@@ -76,3 +79,5 @@ module.exports = {
76
79
  'sort-keys': ['error', 'asc', { caseSensitive: false, natural: true }],
77
80
  },
78
81
  }
82
+
83
+ /* eslint-enable sort-keys */