@pob/eslint-config-typescript-react 48.1.1 → 49.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,23 @@
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
+ # [49.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.1...v49.0.0) (2022-02-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * **eslint-config-typescript-react:** allow arrow functions named components ([1fd7337](https://github.com/christophehurpeau/eslint-config-pob/commit/1fd73375d739c04a6224f24dc6be69baf5c1a932))
12
+ * use jsx-runtime ([7dc07d4](https://github.com/christophehurpeau/eslint-config-pob/commit/7dc07d4030e94c50b30731d2263e7919a64e2b72))
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * requires to configure jsx-runtime
18
+
19
+
20
+
21
+
22
+
6
23
  ## [48.1.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.0...v48.1.1) (2022-02-06)
7
24
 
8
25
  **Note:** Version bump only for package @pob/eslint-config-typescript-react
@@ -1,6 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
+ extends: ['plugin:react/jsx-runtime'],
5
+
4
6
  rules: {
5
7
  /* added rules */
6
8
 
@@ -42,7 +44,7 @@ module.exports = {
42
44
  'react/function-component-definition': [
43
45
  'error',
44
46
  {
45
- namedComponents: 'function-declaration',
47
+ namedComponents: ['function-declaration', 'arrow-function'],
46
48
  unnamedComponents: 'arrow-function',
47
49
  },
48
50
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config-typescript-react",
3
- "version": "48.1.1",
3
+ "version": "49.0.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -56,12 +56,12 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@pob/eslint-config": "48.1.1",
59
+ "@pob/eslint-config": "49.0.0",
60
60
  "eslint-config-airbnb": "^19.0.4",
61
61
  "eslint-plugin-import": "^2.25.3",
62
62
  "eslint-plugin-jsx-a11y": "^6.5.1",
63
63
  "eslint-plugin-react": "^7.28.0",
64
64
  "eslint-plugin-react-hooks": "^4.3.0"
65
65
  },
66
- "gitHead": "ebf37e9b58c518b5b73d75417352c20b8a8360a7"
66
+ "gitHead": "a4352957b160405dcae368d23d02a8596b18b725"
67
67
  }