@graphcommerce/eslint-config-pwa 4.0.3 → 4.0.6
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 +63 -86
- package/index.js +62 -52
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1312](https://github.com/ho-nl/m2-pwa/pull/1312) [`4e1fd4d9f`](https://github.com/ho-nl/m2-pwa/commit/4e1fd4d9fda2109de378be7e39382f7014a7ab54) Thanks [@paales](https://github.com/paales)! - upgraded dependencies
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`4e1fd4d9f`](https://github.com/ho-nl/m2-pwa/commit/4e1fd4d9fda2109de378be7e39382f7014a7ab54)]:
|
|
10
|
+
- @graphcommerce/prettier-config-pwa@4.0.4
|
|
11
|
+
|
|
12
|
+
## 4.0.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
|
|
17
|
+
|
|
18
|
+
* [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
19
|
+
|
|
20
|
+
* Updated dependencies [[`7f71a9eaa`](https://github.com/ho-nl/m2-pwa/commit/7f71a9eaaea7de6ca3fab7cbb55049f1b1cd6427)]:
|
|
21
|
+
- @graphcommerce/prettier-config-pwa@4.0.3
|
|
22
|
+
|
|
23
|
+
## 4.0.4
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#1285](https://github.com/ho-nl/m2-pwa/pull/1285) [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017) Thanks [@paales](https://github.com/paales)! - upgraded dependencies
|
|
28
|
+
|
|
3
29
|
## 4.0.3
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
6
32
|
|
|
7
|
-
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
8
|
-
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
33
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
9
34
|
|
|
10
|
-
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
|
|
11
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
|
|
12
|
-
Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
35
|
+
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
13
36
|
|
|
14
|
-
* Updated dependencies
|
|
15
|
-
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)]:
|
|
37
|
+
* Updated dependencies [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)]:
|
|
16
38
|
- @graphcommerce/prettier-config-pwa@4.0.2
|
|
17
39
|
- @graphcommerce/typescript-config-pwa@4.0.2
|
|
18
40
|
|
|
@@ -20,32 +42,18 @@
|
|
|
20
42
|
|
|
21
43
|
### Patch Changes
|
|
22
44
|
|
|
23
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
24
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
|
|
25
|
-
Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
|
|
26
|
-
`dependencies` to `peerDependencies`. The result of this is that there will be significantly less
|
|
27
|
-
duplicate packages in the node_modules folders.
|
|
45
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
|
|
28
46
|
|
|
29
|
-
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
30
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
31
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
32
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
33
|
-
implementing
|
|
34
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
35
|
-
soon.
|
|
47
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
|
|
36
48
|
|
|
37
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
38
|
-
frontend to be able to revalidate pages manually.
|
|
49
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
|
|
39
50
|
|
|
40
51
|
## 4.0.1
|
|
41
52
|
|
|
42
53
|
### Patch Changes
|
|
43
54
|
|
|
44
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
45
|
-
|
|
46
|
-
so that the packages link to back to the website and repository
|
|
47
|
-
- Updated dependencies
|
|
48
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
55
|
+
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
|
|
56
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
49
57
|
- @graphcommerce/prettier-config-pwa@4.0.1
|
|
50
58
|
- @graphcommerce/typescript-config-pwa@4.0.1
|
|
51
59
|
|
|
@@ -53,40 +61,33 @@
|
|
|
53
61
|
|
|
54
62
|
### Major Changes
|
|
55
63
|
|
|
56
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
57
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
58
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
64
|
+
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
59
65
|
|
|
60
66
|
### Patch Changes
|
|
61
67
|
|
|
62
|
-
- Updated dependencies
|
|
63
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
68
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
64
69
|
- @graphcommerce/typescript-config-pwa@4.0.0
|
|
65
70
|
- @graphcommerce/prettier-config-pwa@4.0.0
|
|
66
71
|
|
|
67
|
-
All notable changes to this project will be documented in this file. See
|
|
68
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
72
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
69
73
|
|
|
70
74
|
## [3.1.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@3.1.4...@graphcommerce/eslint-config-pwa@3.1.5) (2021-11-12)
|
|
71
75
|
|
|
72
76
|
### Bug Fixes
|
|
73
77
|
|
|
74
|
-
- eslint doesn't start properly
|
|
75
|
-
([3e01cfb](https://github.com/ho-nl/m2-pwa/commit/3e01cfb89ef73de2b520399c9428b88114844b02))
|
|
78
|
+
- eslint doesn't start properly ([3e01cfb](https://github.com/ho-nl/m2-pwa/commit/3e01cfb89ef73de2b520399c9428b88114844b02))
|
|
76
79
|
|
|
77
80
|
# [3.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@3.0.8...@graphcommerce/eslint-config-pwa@3.1.0) (2021-10-21)
|
|
78
81
|
|
|
79
82
|
### Features
|
|
80
83
|
|
|
81
|
-
- **graphql-mesh:** remove the api project and use a single project 🎉👩👩👦👦
|
|
82
|
-
([ea4ad03](https://github.com/ho-nl/m2-pwa/commit/ea4ad0397d4ff289ef3b3253593fb0914c8c5246))
|
|
84
|
+
- **graphql-mesh:** remove the api project and use a single project 🎉👩👩👦👦 ([ea4ad03](https://github.com/ho-nl/m2-pwa/commit/ea4ad0397d4ff289ef3b3253593fb0914c8c5246))
|
|
83
85
|
|
|
84
86
|
## [3.0.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@3.0.2...@graphcommerce/eslint-config-pwa@3.0.3) (2021-09-28)
|
|
85
87
|
|
|
86
88
|
### Bug Fixes
|
|
87
89
|
|
|
88
|
-
- eslint not working
|
|
89
|
-
([68c76b3](https://github.com/ho-nl/m2-pwa/commit/68c76b3f4bc1f7dbf490b331e72f0d91afc634bf))
|
|
90
|
+
- eslint not working ([68c76b3](https://github.com/ho-nl/m2-pwa/commit/68c76b3f4bc1f7dbf490b331e72f0d91afc634bf))
|
|
90
91
|
|
|
91
92
|
## [3.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@3.0.0...@graphcommerce/eslint-config-pwa@3.0.1) (2021-09-27)
|
|
92
93
|
|
|
@@ -96,53 +97,33 @@ All notable changes to this project will be documented in this file. See
|
|
|
96
97
|
|
|
97
98
|
### Bug Fixes
|
|
98
99
|
|
|
99
|
-
- [@typescript-eslint](https://github.com/typescript-eslint) package not found
|
|
100
|
-
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
-
|
|
108
|
-
([a4978f9](https://github.com/ho-nl/m2-pwa/commit/a4978f968c0115279e2cb7457d4502f70d7d05d4))
|
|
109
|
-
- move back to yarn 1.19.1
|
|
110
|
-
([ce36c53](https://github.com/ho-nl/m2-pwa/commit/ce36c53b94c0f834b5e4da5e0d7e3b2bb02754bf))
|
|
111
|
-
- playwright.ts files error
|
|
112
|
-
([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
|
|
113
|
-
- remove cyclic dependencies
|
|
114
|
-
([8a59389](https://github.com/ho-nl/m2-pwa/commit/8a5938943a97634cce57c68bb369c6e77e7a0288))
|
|
115
|
-
- remove unused property from eslint config ignorePatterns
|
|
116
|
-
([a8a7af1](https://github.com/ho-nl/m2-pwa/commit/a8a7af1754542bd5b445e54642e563ac6c386913))
|
|
100
|
+
- [@typescript-eslint](https://github.com/typescript-eslint) package not found ([09ccae0](https://github.com/ho-nl/m2-pwa/commit/09ccae09605e0bab83a2168677e9752d16b24e9d))
|
|
101
|
+
- disable prefer-default-export for ts files as they are usually libraries ([7c91b32](https://github.com/ho-nl/m2-pwa/commit/7c91b32d008ffdf1651d5255891f602f7b27e534))
|
|
102
|
+
- **eslint-config:** allow console.info ([ea55b1d](https://github.com/ho-nl/m2-pwa/commit/ea55b1d3fe08bacae8044fb111c74c5497e5a591))
|
|
103
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
104
|
+
- make eslint config compatible with eslint-config-prettier@8.0.0 ([a4978f9](https://github.com/ho-nl/m2-pwa/commit/a4978f968c0115279e2cb7457d4502f70d7d05d4))
|
|
105
|
+
- move back to yarn 1.19.1 ([ce36c53](https://github.com/ho-nl/m2-pwa/commit/ce36c53b94c0f834b5e4da5e0d7e3b2bb02754bf))
|
|
106
|
+
- playwright.ts files error ([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
|
|
107
|
+
- remove cyclic dependencies ([8a59389](https://github.com/ho-nl/m2-pwa/commit/8a5938943a97634cce57c68bb369c6e77e7a0288))
|
|
108
|
+
- remove unused property from eslint config ignorePatterns ([a8a7af1](https://github.com/ho-nl/m2-pwa/commit/a8a7af1754542bd5b445e54642e563ac6c386913))
|
|
117
109
|
|
|
118
110
|
### Features
|
|
119
111
|
|
|
120
|
-
- added eslint-plugin-next to have more linting
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
130
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
131
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
132
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
133
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
134
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
135
|
-
- upgrade to node 14
|
|
136
|
-
([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
|
|
137
|
-
- use official nextjs image endpoint
|
|
138
|
-
([0e76ab4](https://github.com/ho-nl/m2-pwa/commit/0e76ab4cece15d4d6f192cb938588a34abaebe8a))
|
|
112
|
+
- added eslint-plugin-next to have more linting ([599c9f0](https://github.com/ho-nl/m2-pwa/commit/599c9f0ff7c07cae3791d6bda819beabaed82f4e))
|
|
113
|
+
- created stacked-pages package ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
|
|
114
|
+
- **eslint:** no-relative-packages, prevent importing other packages by relative paths ([b3d23b0](https://github.com/ho-nl/m2-pwa/commit/b3d23b0217f808bb251ecaf67ccc618f9a10eefe))
|
|
115
|
+
- **framer-next-pages:** enable dragging when the content isn’t scrollable ([3df9115](https://github.com/ho-nl/m2-pwa/commit/3df9115d3fbf72dbe547780f0bc6ce80e42b9e47))
|
|
116
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
117
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
118
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
119
|
+
- upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
|
|
120
|
+
- use official nextjs image endpoint ([0e76ab4](https://github.com/ho-nl/m2-pwa/commit/0e76ab4cece15d4d6f192cb938588a34abaebe8a))
|
|
139
121
|
|
|
140
122
|
## 2.0.8 (2020-10-28)
|
|
141
123
|
|
|
142
124
|
### Features
|
|
143
125
|
|
|
144
|
-
- split into packages
|
|
145
|
-
([2ee7fd6](https://github.com/ho-nl/m2-pwa/commit/2ee7fd6c0056f467d114f04d92c6c0ddf622d151))
|
|
126
|
+
- split into packages ([2ee7fd6](https://github.com/ho-nl/m2-pwa/commit/2ee7fd6c0056f467d114f04d92c6c0ddf622d151))
|
|
146
127
|
|
|
147
128
|
### BREAKING CHANGES
|
|
148
129
|
|
|
@@ -152,19 +133,15 @@ All notable changes to this project will be documented in this file. See
|
|
|
152
133
|
|
|
153
134
|
### Features
|
|
154
135
|
|
|
155
|
-
- **eslint:** no-relative-packages, prevent importing other packages by relative paths
|
|
156
|
-
([b3d23b0](https://github.com/ho-nl/m2-pwa/commit/b3d23b0217f808bb251ecaf67ccc618f9a10eefe))
|
|
136
|
+
- **eslint:** no-relative-packages, prevent importing other packages by relative paths ([b3d23b0](https://github.com/ho-nl/m2-pwa/commit/b3d23b0217f808bb251ecaf67ccc618f9a10eefe))
|
|
157
137
|
|
|
158
138
|
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@2.100.10...@graphcommerce/eslint-config-pwa@2.101.0) (2021-07-26)
|
|
159
139
|
|
|
160
140
|
### Bug Fixes
|
|
161
141
|
|
|
162
|
-
- ignore md files from triggering version updates
|
|
163
|
-
|
|
164
|
-
- playwright.ts files error
|
|
165
|
-
([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
|
|
142
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
143
|
+
- playwright.ts files error ([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
|
|
166
144
|
|
|
167
145
|
### Features
|
|
168
146
|
|
|
169
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
170
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
147
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
env: {
|
|
3
3
|
browser: true,
|
|
4
|
-
|
|
4
|
+
es2022: true,
|
|
5
5
|
node: true,
|
|
6
6
|
},
|
|
7
7
|
extends: [
|
|
@@ -29,54 +29,17 @@ module.exports = {
|
|
|
29
29
|
},
|
|
30
30
|
plugins: ['react', '@typescript-eslint', '@next/eslint-plugin-next'],
|
|
31
31
|
rules: {
|
|
32
|
-
|
|
33
|
-
'import/no-extraneous-dependencies': [
|
|
34
|
-
'error',
|
|
35
|
-
{
|
|
36
|
-
devDependencies: ['next.config.js', '**/__tests__/**', '**/_playwright/**'],
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
'import/order': ['warn', { alphabetize: { order: 'asc' } }],
|
|
40
|
-
'import/prefer-default-export': 'off',
|
|
41
|
-
'no-param-reassign': ['error', { props: false }],
|
|
42
|
-
'jsx-a11y/anchor-is-valid': 'off',
|
|
32
|
+
// eslint
|
|
43
33
|
'default-case': 'off',
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'react/prop-types': 'off',
|
|
47
|
-
'react/jsx-props-no-spreading': 'off',
|
|
48
|
-
'react/react-in-jsx-scope': 'off',
|
|
49
|
-
'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
|
|
50
|
-
'react-hooks/exhaustive-deps': ['error', { additionalHooks: '(useIsomorphicLayoutEffect)' }],
|
|
51
|
-
'react/no-unescaped-entities': 'off',
|
|
34
|
+
'no-plusplus': 'off',
|
|
35
|
+
'no-param-reassign': ['error', { props: false }],
|
|
52
36
|
'no-console': [1, { allow: ['warn', 'error', 'info'] }],
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'error',
|
|
56
|
-
'always',
|
|
57
|
-
{
|
|
58
|
-
markers: ['/'],
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
|
|
37
|
+
'spaced-comment': ['error', 'always', { markers: ['/'] }],
|
|
38
|
+
'prefer-const': ['error', { destructuring: 'all' }],
|
|
62
39
|
'no-underscore-dangle': [
|
|
63
40
|
'error',
|
|
64
41
|
{ allow: ['__typename', '__type', '_N_X', '_N_Y', '__N', '__NEXT'] },
|
|
65
42
|
],
|
|
66
|
-
'react/jsx-key': ['error', { checkFragmentShorthand: true }],
|
|
67
|
-
'react/jsx-no-duplicate-props': ['error', { ignoreCase: false }],
|
|
68
|
-
'react/require-default-props': 'off',
|
|
69
|
-
'react/destructuring-assignment': 'off',
|
|
70
|
-
|
|
71
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
72
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
73
|
-
'@typescript-eslint/no-unsafe-call': 'off',
|
|
74
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
75
|
-
'@typescript-eslint/no-unsafe-return': 'off',
|
|
76
|
-
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
77
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
78
|
-
'@typescript-eslint/naming-convention': 'off',
|
|
79
|
-
'no-plusplus': 0,
|
|
80
43
|
'no-restricted-syntax': [
|
|
81
44
|
'error',
|
|
82
45
|
{
|
|
@@ -96,22 +59,69 @@ module.exports = {
|
|
|
96
59
|
},
|
|
97
60
|
],
|
|
98
61
|
|
|
99
|
-
//
|
|
100
|
-
'
|
|
101
|
-
|
|
62
|
+
// plugin:import/recommended & plugin:import/typescript
|
|
63
|
+
'import/prefer-default-export': 'off',
|
|
64
|
+
'import/no-extraneous-dependencies': [
|
|
65
|
+
'error',
|
|
66
|
+
{
|
|
67
|
+
devDependencies: ['next.config.js', '**/__tests__/**', '**/_playwright/**', '**/*.d.ts'],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
'import/order': ['warn', { alphabetize: { order: 'asc' } }],
|
|
102
71
|
'import/no-relative-packages': 'error',
|
|
103
72
|
|
|
104
|
-
//
|
|
73
|
+
// next
|
|
74
|
+
'@next/next/no-html-link-for-pages': 'off',
|
|
75
|
+
|
|
76
|
+
// jsx-a11y
|
|
77
|
+
'jsx-a11y/anchor-is-valid': 'off',
|
|
78
|
+
|
|
79
|
+
// react
|
|
80
|
+
'react/jsx-one-expression-per-line': 'off',
|
|
81
|
+
'react/prop-types': 'off',
|
|
82
|
+
'react/jsx-props-no-spreading': 'off',
|
|
83
|
+
'react/react-in-jsx-scope': 'off',
|
|
84
|
+
'react/no-unescaped-entities': 'off',
|
|
85
|
+
'react/require-default-props': 'off',
|
|
86
|
+
'react/destructuring-assignment': 'off',
|
|
87
|
+
'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
|
|
88
|
+
'react-hooks/exhaustive-deps': ['error', { additionalHooks: '(useIsomorphicLayoutEffect)' }],
|
|
89
|
+
'react/jsx-key': ['error', { checkFragmentShorthand: true }],
|
|
90
|
+
'react/jsx-no-duplicate-props': ['error', { ignoreCase: false }],
|
|
105
91
|
'react/function-component-definition': 'off',
|
|
106
92
|
|
|
107
|
-
|
|
93
|
+
// typescript
|
|
94
|
+
'@typescript-eslint/indent': 'off',
|
|
95
|
+
'@typescript-eslint/semi': 'off',
|
|
96
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
97
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
98
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
99
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
100
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
101
|
+
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
102
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
103
|
+
'@typescript-eslint/naming-convention': 'off',
|
|
104
|
+
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
|
|
105
|
+
'@typescript-eslint/no-restricted-imports': [
|
|
106
|
+
'error',
|
|
107
|
+
{
|
|
108
|
+
paths: [
|
|
109
|
+
{
|
|
110
|
+
name: 'next/image',
|
|
111
|
+
message: "Please use `import { Image } from '@graphcommerce/image'` instead.",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
],
|
|
108
116
|
},
|
|
109
117
|
overrides: [
|
|
110
118
|
{
|
|
111
|
-
files: ['*.
|
|
112
|
-
rules: {
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
files: ['*.tsx'],
|
|
120
|
+
rules: { 'import/no-default-export': ['error'] },
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
files: ['**/pages/**/*.tsx'],
|
|
124
|
+
rules: { 'import/no-default-export': 'off' },
|
|
115
125
|
},
|
|
116
126
|
{
|
|
117
127
|
files: ['generated/*'],
|
package/package.json
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"name": "@graphcommerce/eslint-config-pwa",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.6",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.4",
|
|
9
9
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
10
10
|
"@next/eslint-plugin-next": "^12.1.0",
|
|
11
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
12
|
-
"@typescript-eslint/parser": "^5.
|
|
11
|
+
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
12
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
13
13
|
"eslint-config-airbnb": "^19.0.4",
|
|
14
|
-
"eslint-config-airbnb-typescript": "^16.1.
|
|
15
|
-
"eslint-config-prettier": "^8.
|
|
14
|
+
"eslint-config-airbnb-typescript": "^16.1.2",
|
|
15
|
+
"eslint-config-prettier": "^8.5.0",
|
|
16
16
|
"eslint-import-resolver-webpack": "^0.13.2",
|
|
17
17
|
"eslint-plugin-import": "^2.25.4",
|
|
18
18
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
19
|
-
"eslint-plugin-react": "^7.
|
|
19
|
+
"eslint-plugin-react": "^7.29.4",
|
|
20
20
|
"eslint-plugin-react-hooks": "^4.3.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|