@pob/eslint-config-typescript-react 48.0.7 → 49.0.1

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,50 @@
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.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v49.0.0...v49.0.1) (2022-02-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * dont override react/react-in-jsx-scope ([1e71f62](https://github.com/christophehurpeau/eslint-config-pob/commit/1e71f62cf44dc9b8311bd84b30d8b72c5417cf55))
12
+
13
+
14
+
15
+
16
+
17
+ # [49.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.1...v49.0.0) (2022-02-12)
18
+
19
+
20
+ ### Features
21
+
22
+ * **eslint-config-typescript-react:** allow arrow functions named components ([1fd7337](https://github.com/christophehurpeau/eslint-config-pob/commit/1fd73375d739c04a6224f24dc6be69baf5c1a932))
23
+ * use jsx-runtime ([7dc07d4](https://github.com/christophehurpeau/eslint-config-pob/commit/7dc07d4030e94c50b30731d2263e7919a64e2b72))
24
+
25
+
26
+ ### BREAKING CHANGES
27
+
28
+ * requires to configure jsx-runtime
29
+
30
+
31
+
32
+
33
+
34
+ ## [48.1.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.0...v48.1.1) (2022-02-06)
35
+
36
+ **Note:** Version bump only for package @pob/eslint-config-typescript-react
37
+
38
+
39
+
40
+
41
+
42
+ # [48.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.7...v48.1.0) (2022-01-30)
43
+
44
+ **Note:** Version bump only for package @pob/eslint-config-typescript-react
45
+
46
+
47
+
48
+
49
+
6
50
  ## [48.0.7](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.0.6...v48.0.7) (2022-01-02)
7
51
 
8
52
  **Note:** Version bump only for package @pob/eslint-config-typescript-react
package/lib/index.js CHANGED
@@ -31,8 +31,5 @@ module.exports = {
31
31
  },
32
32
  ],
33
33
  'react/jsx-filename-extension': ['error', { extensions: ['tsx'] }],
34
-
35
- // override js config for babel plugin react-require
36
- 'react/react-in-jsx-scope': 'error',
37
34
  },
38
35
  };
@@ -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.0.7",
3
+ "version": "49.0.1",
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.0.5",
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": "3f2731afdbb137cb0e829bb8bf44ce6161e7fe05"
66
+ "gitHead": "3348970fc59bab9885760fdec1e8c14f591a6d43"
67
67
  }