@scaleway/eslint-config-react 2.2.5 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/package.json +11 -11
  3. package/shared.js +3 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
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
+
19
+ ### 2.3.2 (2021-11-09)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **deps:** update dependency eslint-plugin-react-hooks to v4.3.0 ([#482](https://github.com/scaleway/scaleway-lib/issues/482)) ([da0e98b](https://github.com/scaleway/scaleway-lib/commit/da0e98b7a4630d34616fcae35aaa21b437cf35c0))
25
+ * **deps:** update typescript-eslint monorepo to v5.3.1 ([#481](https://github.com/scaleway/scaleway-lib/issues/481)) ([ab41d48](https://github.com/scaleway/scaleway-lib/commit/ab41d4874d6484fe0b73be9ed25ca9e6b8f4a47d))
26
+
27
+
28
+
29
+ ### 2.3.1 (2021-11-08)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **deps:** update dependency eslint-config-airbnb-typescript to v15 ([#470](https://github.com/scaleway/scaleway-lib/issues/470)) ([ff026cb](https://github.com/scaleway/scaleway-lib/commit/ff026cb6beec29086efafe960af6dbd7d29e1bbc))
35
+ * **deps:** update typescript-eslint monorepo to v5.3.0 ([#457](https://github.com/scaleway/scaleway-lib/issues/457)) ([528f1f0](https://github.com/scaleway/scaleway-lib/commit/528f1f0ee01aec7e8c87887932319edd66197766))
36
+
37
+
38
+
39
+ ## [2.3.0](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@2.2.5...@scaleway/eslint-config-react@2.3.0) (2021-10-22)
40
+
41
+
42
+ ### Features
43
+
44
+ * **deps:** update dependency eslint to v8 ([#448](https://github.com/scaleway/scaleway-lib/issues/448)) ([b120a44](https://github.com/scaleway/scaleway-lib/commit/b120a44047ecfce35cdbb955ba71383061cf2d83))
45
+
46
+
47
+
6
48
  ### [2.2.5](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@2.2.4...@scaleway/eslint-config-react@2.2.5) (2021-10-22)
7
49
 
8
50
  **Note:** Version bump only for package @scaleway/eslint-config-react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "2.2.5",
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.1.0",
21
- "@typescript-eslint/parser": "5.1.0",
22
- "eslint-config-airbnb": "18.2.1",
23
- "eslint-config-airbnb-typescript": "14.0.1",
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",
28
- "eslint-plugin-react-hooks": "4.2.0"
25
+ "eslint-plugin-import": "2.25.3",
26
+ "eslint-plugin-jsx-a11y": "6.5.1",
27
+ "eslint-plugin-react": "7.27.1",
28
+ "eslint-plugin-react-hooks": "4.3.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "eslint": "7.x"
31
+ "eslint": "7.x || 8.x"
32
32
  },
33
- "gitHead": "637bbdec63a02d3490b36672cac976dda518130a"
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': [