@graphcommerce/eslint-config-pwa 9.0.3 → 9.0.4-canary.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -8
  2. package/index.js +13 -1
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,16 +1,12 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.3
3
+ ## 9.0.4-canary.1
4
4
 
5
- ## 9.0.3-canary.0
6
-
7
- ## 9.0.2
8
-
9
- ## 9.0.2-canary.0
5
+ ### Patch Changes
10
6
 
11
- ## 9.0.1
7
+ - [#2470](https://github.com/graphcommerce-org/graphcommerce/pull/2470) [`29e2956`](https://github.com/graphcommerce-org/graphcommerce/commit/29e29562267741c28a181cbf90bd1fe5442d47f6) - Components must have Theme parameter to avoid significant compiler slowdown. ([@paales](https://github.com/paales))
12
8
 
13
- ## 9.0.1-canary.1
9
+ ## 9.0.4-canary.0
14
10
 
15
11
  ## 9.0.0
16
12
 
package/index.js CHANGED
@@ -46,6 +46,14 @@ module.exports = {
46
46
  message:
47
47
  '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
48
48
  },
49
+ {
50
+ selector: 'TSTypeReference[typeName.name="SxProps"]:not([typeParameters])',
51
+ message: 'SxProps must have Theme parameter to avoid significant compiler slowdown.',
52
+ },
53
+ {
54
+ selector: 'TSTypeReference[typeName.name="Components"]:not([typeParameters])',
55
+ message: 'Components must have Theme parameter to avoid significant compiler slowdown.',
56
+ },
49
57
  ],
50
58
 
51
59
  // plugin:import/recommended & plugin:import/typescript
@@ -173,6 +181,10 @@ module.exports = {
173
181
  files: ['*.tsx'],
174
182
  rules: { 'import/no-default-export': ['error'] },
175
183
  },
184
+ {
185
+ files: ['**/copy/**/*.tsx'],
186
+ rules: { 'import/no-extraneous-dependencies': 'off' },
187
+ },
176
188
  {
177
189
  files: ['**/pages/**/*.tsx'],
178
190
  rules: { 'import/no-default-export': 'off' },
@@ -192,7 +204,7 @@ module.exports = {
192
204
  },
193
205
  },
194
206
  {
195
- files: ['**/*.spec.ts', '**/*.spec.tsx', '**/__tests__/**', 'scripts/**'],
207
+ files: ['**/*.spec.ts', '**/*.spec.tsx', '**/__tests__/**', 'scripts/**', 'test/**'],
196
208
  env: {
197
209
  jest: true,
198
210
  },
package/package.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "name": "@graphcommerce/eslint-config-pwa",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.3",
5
+ "version": "9.0.4-canary.1",
6
6
  "main": "index.js",
7
7
  "dependencies": {
8
- "@graphcommerce/typescript-config-pwa": "9.0.3",
9
- "@next/eslint-plugin-next": "15.1.0",
8
+ "@graphcommerce/typescript-config-pwa": "9.0.4-canary.1",
9
+ "@next/eslint-plugin-next": "15.1.3",
10
10
  "@typescript-eslint/eslint-plugin": "^7.18.0",
11
11
  "@typescript-eslint/parser": "^7.18.0",
12
12
  "eslint": "^8.57.1",