@scaleway/eslint-config-react 2.3.2 → 3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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.0.0 (2021-11-23)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * update to eslint-airbnb v19 (#491)
12
+
13
+ ### Features
14
+
15
+ * update to eslint-airbnb v19 ([#491](https://github.com/scaleway/scaleway-lib/issues/491)) ([d0e1385](https://github.com/scaleway/scaleway-lib/commit/d0e138501ae3c7fb59b8e5924504e8cef434070e))
16
+
17
+
18
+
6
19
  ### 2.3.2 (2021-11-09)
7
20
 
8
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "2.3.2",
3
+ "version": "3.0.0",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,18 +17,18 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@typescript-eslint/eslint-plugin": "5.3.1",
21
- "@typescript-eslint/parser": "5.3.1",
22
- "eslint-config-airbnb": "18.2.1",
23
- "eslint-config-airbnb-typescript": "15.0.0",
20
+ "@typescript-eslint/eslint-plugin": "5.4.0",
21
+ "@typescript-eslint/parser": "5.4.0",
22
+ "eslint-config-airbnb": "19.0.1",
23
+ "eslint-config-airbnb-typescript": "16.0.0",
24
24
  "eslint-config-prettier": "8.3.0",
25
- "eslint-plugin-import": "2.25.2",
26
- "eslint-plugin-jsx-a11y": "6.4.1",
27
- "eslint-plugin-react": "7.26.1",
25
+ "eslint-plugin-import": "2.25.3",
26
+ "eslint-plugin-jsx-a11y": "6.5.1",
27
+ "eslint-plugin-react": "7.27.1",
28
28
  "eslint-plugin-react-hooks": "4.3.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "eslint": "7.x || 8.x"
32
32
  },
33
- "gitHead": "60c84615fb4317dc1b29f5f3cb02d4ff69c05a42"
33
+ "gitHead": "4b1582b9b957ab83c73ce38e36933df72f307f17"
34
34
  }
package/shared.js CHANGED
@@ -51,13 +51,12 @@ module.exports = {
51
51
  prev: '*',
52
52
  },
53
53
  ],
54
+ // As we don't really care about the function type
55
+ 'react/function-component-definition': 'off',
56
+
54
57
  // These are rules soon to be enabled by airbnb react config
55
58
  // We're getting a head start
56
- 'react/jsx-no-constructed-context-values': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-constructed-context-values.md
57
- 'react/jsx-no-script-url': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
58
- 'react/jsx-no-useless-fragment': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md
59
59
  'react/no-adjacent-inline-elements': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
60
- 'react/no-unstable-nested-components': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
61
60
 
62
61
  // To have consistent ordering in proptypes
63
62
  'react/sort-prop-types': [