@pob/eslint-config-typescript-react 49.2.0 → 49.3.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,17 @@
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.3.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v49.2.1...v49.3.0) (2022-04-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **eeslint-config-typescript-react:** add react-native-web config ([6f48e95](https://github.com/christophehurpeau/eslint-config-pob/commit/6f48e95f0d7cfd98ec34f167bfc824c256d6756a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [49.2.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v49.1.0...v49.2.0) (2022-03-13)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config-typescript-react",
3
- "version": "49.2.0",
3
+ "version": "49.3.0",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -64,5 +64,5 @@
64
64
  "eslint-plugin-react": "^7.28.0",
65
65
  "eslint-plugin-react-hooks": "^4.3.0"
66
66
  },
67
- "gitHead": "70f220802747bc7ce9d02edd488dccea62be4ce8"
67
+ "gitHead": "d2c42952c4b58ebdf96315b05f401b954b626fb8"
68
68
  }
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ extends: ['./react-native'].map(require.resolve),
5
+
6
+ settings: {
7
+ 'import/resolver': {
8
+ node: {
9
+ extensions: ['.js', '.web.js'],
10
+ },
11
+ },
12
+ },
13
+
14
+ rules: {
15
+ 'import/no-unresolved': [
16
+ 'error',
17
+ {
18
+ ignore: [
19
+ // allow react-native as it is replaced by react-native-web and typed by @types/react-native. react-native lib does not need to be installed in that case
20
+ 'react-native',
21
+ ],
22
+ },
23
+ ],
24
+ },
25
+ };