@scaleway/eslint-config-react 3.10.5 → 3.11.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,12 @@
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.11.0 (2022-12-09)
7
+
8
+ ### Features
9
+
10
+ - **eslint-config-react:** enforce consistent type imports/exports/definition ([#1108](https://github.com/scaleway/scaleway-lib/issues/1108)) ([fce8882](https://github.com/scaleway/scaleway-lib/commit/fce8882d79b51acaf45b13d1d0a7562b3f0cee32))
11
+
6
12
  ## 3.10.5 (2022-12-07)
7
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "3.10.5",
3
+ "version": "3.11.0",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -36,5 +36,5 @@
36
36
  "eslint": "8.29.0",
37
37
  "typescript": "4.9.3"
38
38
  },
39
- "gitHead": "abec5148ba8239c41f139e7b46f715592e495236"
39
+ "gitHead": "c8da25a96858ca1f9ff114e8962e990fe3bdf44e"
40
40
  }
package/typescript.js CHANGED
@@ -18,7 +18,10 @@ module.exports = {
18
18
  },
19
19
  },
20
20
  ],
21
- '@typescript-eslint/no-unused-vars': ['error'],
21
+ '@typescript-eslint/no-unused-vars': 'error',
22
+ '@typescript-eslint/consistent-type-imports': 'error',
23
+ '@typescript-eslint/consistent-type-exports': 'error',
24
+ '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
22
25
  // We favor object defaults instead of default props in TS
23
26
  // https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/default_props/#you-may-not-need-defaultprops
24
27
  // https://twitter.com/dan_abramov/status/1133878326358171650