@pob/eslint-config-typescript-react 48.1.1 → 49.1.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,45 @@
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.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v49.0.1...v49.1.0) (2022-03-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * **deps:** update dependency eslint-plugin-unicorn to v41 ([#323](https://github.com/christophehurpeau/eslint-config-pob/issues/323)) ([999c202](https://github.com/christophehurpeau/eslint-config-pob/commit/999c20267998adbeba86a87137d7f70012909174))
12
+
13
+
14
+
15
+
16
+
17
+ ## [49.0.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v49.0.0...v49.0.1) (2022-02-12)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * dont override react/react-in-jsx-scope ([1e71f62](https://github.com/christophehurpeau/eslint-config-pob/commit/1e71f62cf44dc9b8311bd84b30d8b72c5417cf55))
23
+
24
+
25
+
26
+
27
+
28
+ # [49.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.1...v49.0.0) (2022-02-12)
29
+
30
+
31
+ ### Features
32
+
33
+ * **eslint-config-typescript-react:** allow arrow functions named components ([1fd7337](https://github.com/christophehurpeau/eslint-config-pob/commit/1fd73375d739c04a6224f24dc6be69baf5c1a932))
34
+ * use jsx-runtime ([7dc07d4](https://github.com/christophehurpeau/eslint-config-pob/commit/7dc07d4030e94c50b30731d2263e7919a64e2b72))
35
+
36
+
37
+ ### BREAKING CHANGES
38
+
39
+ * requires to configure jsx-runtime
40
+
41
+
42
+
43
+
44
+
6
45
  ## [48.1.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.0...v48.1.1) (2022-02-06)
7
46
 
8
47
  **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.1.1",
3
+ "version": "49.1.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "pob": {},
37
37
  "peerDependencies": {
38
- "eslint": "^8.4.1",
38
+ "eslint": "^8.11.0",
39
39
  "eslint-plugin-import": "^2.25.3",
40
40
  "eslint-plugin-jsx-a11y": "^6.5.1",
41
41
  "eslint-plugin-react": "^7.28.0",
@@ -56,12 +56,12 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@pob/eslint-config": "48.1.1",
59
+ "@pob/eslint-config": "49.1.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": "bdf25e1815e73a70ce7ce14f9a6077c6d57d7903"
67
67
  }