@scaleway/eslint-config-react 3.12.0 → 3.12.2

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,18 @@
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.12.2](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.12.1...@scaleway/eslint-config-react@3.12.2) (2022-12-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **eslint-config-react/typescript:** full disable proptypes in ts files ([#1122](https://github.com/scaleway/scaleway-lib/issues/1122)) ([8f6d2dc](https://github.com/scaleway/scaleway-lib/commit/8f6d2dcd93216827aa717db16bd45c26bb1f766c))
11
+
12
+ ## [3.12.1](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.12.0...@scaleway/eslint-config-react@3.12.1) (2022-12-19)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **eslint-config-react/typescript:** disable useless fragment when expression ([#1123](https://github.com/scaleway/scaleway-lib/issues/1123)) ([e876488](https://github.com/scaleway/scaleway-lib/commit/e8764881f605aded9bf33a406fef26f1c0f211be))
17
+
6
18
  ## 3.12.0 (2022-12-19)
7
19
 
8
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "3.12.0",
3
+ "version": "3.12.2",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -37,5 +37,5 @@
37
37
  "eslint": "8.29.0",
38
38
  "typescript": "4.9.3"
39
39
  },
40
- "gitHead": "906a0933c743eead67047cb7e0c80d2487b5c8aa"
40
+ "gitHead": "3ccea0cd162f875dbaf28df45379199ce58ba8b2"
41
41
  }
package/typescript.js CHANGED
@@ -26,5 +26,9 @@ module.exports = {
26
26
  // https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/default_props/#you-may-not-need-defaultprops
27
27
  // https://twitter.com/dan_abramov/status/1133878326358171650
28
28
  'react/require-default-props': 'off',
29
+ 'react/prop-types': 'off',
30
+
31
+ // To allow <>{expression}</>
32
+ 'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
29
33
  },
30
34
  }