@graphcommerce/eslint-config-pwa 3.1.8 β†’ 4.0.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +68 -62
  2. package/index.js +3 -0
  3. package/package.json +11 -12
package/CHANGELOG.md CHANGED
@@ -1,115 +1,121 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
3
+ ## 4.0.0
5
4
 
6
- ## [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)
5
+ ### Major Changes
7
6
 
7
+ - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
8
+ [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
9
+ Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
8
10
 
9
- ### Bug Fixes
11
+ ### Patch Changes
10
12
 
11
- * eslint doesn't start properly ([3e01cfb](https://github.com/ho-nl/m2-pwa/commit/3e01cfb89ef73de2b520399c9428b88114844b02))
13
+ - Updated dependencies
14
+ [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
15
+ - @graphcommerce/typescript-config-pwa@4.0.0
16
+ - @graphcommerce/prettier-config-pwa@4.0.0
12
17
 
18
+ All notable changes to this project will be documented in this file. See
19
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
13
20
 
21
+ ## [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)
14
22
 
23
+ ### Bug Fixes
15
24
 
25
+ - eslint doesn't start properly
26
+ ([3e01cfb](https://github.com/ho-nl/m2-pwa/commit/3e01cfb89ef73de2b520399c9428b88114844b02))
16
27
 
17
28
  # [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)
18
29
 
19
-
20
30
  ### Features
21
31
 
22
- * **graphql-mesh:** remove the api project and use a single project πŸŽ‰πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦ ([ea4ad03](https://github.com/ho-nl/m2-pwa/commit/ea4ad0397d4ff289ef3b3253593fb0914c8c5246))
23
-
24
-
25
-
26
-
32
+ - **graphql-mesh:** remove the api project and use a single project πŸŽ‰πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦
33
+ ([ea4ad03](https://github.com/ho-nl/m2-pwa/commit/ea4ad0397d4ff289ef3b3253593fb0914c8c5246))
27
34
 
28
35
  ## [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)
29
36
 
30
-
31
37
  ### Bug Fixes
32
38
 
33
- * eslint not working ([68c76b3](https://github.com/ho-nl/m2-pwa/commit/68c76b3f4bc1f7dbf490b331e72f0d91afc634bf))
34
-
35
-
36
-
37
-
39
+ - eslint not working
40
+ ([68c76b3](https://github.com/ho-nl/m2-pwa/commit/68c76b3f4bc1f7dbf490b331e72f0d91afc634bf))
38
41
 
39
42
  ## [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)
40
43
 
41
44
  **Note:** Version bump only for package @graphcommerce/eslint-config-pwa
42
45
 
43
-
44
-
45
-
46
-
47
46
  # 3.0.0 (2021-09-27)
48
47
 
49
-
50
48
  ### Bug Fixes
51
49
 
52
- * [@typescript-eslint](https://github.com/typescript-eslint) package not found ([09ccae0](https://github.com/ho-nl/m2-pwa/commit/09ccae09605e0bab83a2168677e9752d16b24e9d))
53
- * disable prefer-default-export for ts files as they are usually libraries ([7c91b32](https://github.com/ho-nl/m2-pwa/commit/7c91b32d008ffdf1651d5255891f602f7b27e534))
54
- * **eslint-config:** allow console.info ([ea55b1d](https://github.com/ho-nl/m2-pwa/commit/ea55b1d3fe08bacae8044fb111c74c5497e5a591))
55
- * ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
56
- * make eslint config compatible with eslint-config-prettier@8.0.0 ([a4978f9](https://github.com/ho-nl/m2-pwa/commit/a4978f968c0115279e2cb7457d4502f70d7d05d4))
57
- * move back to yarn 1.19.1 ([ce36c53](https://github.com/ho-nl/m2-pwa/commit/ce36c53b94c0f834b5e4da5e0d7e3b2bb02754bf))
58
- * playwright.ts files error ([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
59
- * remove cyclic dependencies ([8a59389](https://github.com/ho-nl/m2-pwa/commit/8a5938943a97634cce57c68bb369c6e77e7a0288))
60
- * remove unused property from eslint config ignorePatterns ([a8a7af1](https://github.com/ho-nl/m2-pwa/commit/a8a7af1754542bd5b445e54642e563ac6c386913))
61
-
50
+ - [@typescript-eslint](https://github.com/typescript-eslint) package not found
51
+ ([09ccae0](https://github.com/ho-nl/m2-pwa/commit/09ccae09605e0bab83a2168677e9752d16b24e9d))
52
+ - disable prefer-default-export for ts files as they are usually libraries
53
+ ([7c91b32](https://github.com/ho-nl/m2-pwa/commit/7c91b32d008ffdf1651d5255891f602f7b27e534))
54
+ - **eslint-config:** allow console.info
55
+ ([ea55b1d](https://github.com/ho-nl/m2-pwa/commit/ea55b1d3fe08bacae8044fb111c74c5497e5a591))
56
+ - ignore md files from triggering version updates
57
+ ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
58
+ - make eslint config compatible with eslint-config-prettier@8.0.0
59
+ ([a4978f9](https://github.com/ho-nl/m2-pwa/commit/a4978f968c0115279e2cb7457d4502f70d7d05d4))
60
+ - move back to yarn 1.19.1
61
+ ([ce36c53](https://github.com/ho-nl/m2-pwa/commit/ce36c53b94c0f834b5e4da5e0d7e3b2bb02754bf))
62
+ - playwright.ts files error
63
+ ([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
64
+ - remove cyclic dependencies
65
+ ([8a59389](https://github.com/ho-nl/m2-pwa/commit/8a5938943a97634cce57c68bb369c6e77e7a0288))
66
+ - remove unused property from eslint config ignorePatterns
67
+ ([a8a7af1](https://github.com/ho-nl/m2-pwa/commit/a8a7af1754542bd5b445e54642e563ac6c386913))
62
68
 
63
69
  ### Features
64
70
 
65
- * added eslint-plugin-next to have more linting ([599c9f0](https://github.com/ho-nl/m2-pwa/commit/599c9f0ff7c07cae3791d6bda819beabaed82f4e))
66
- * created stacked-pages package ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
67
- * **eslint:** no-relative-packages, prevent importing other packages by relative paths ([b3d23b0](https://github.com/ho-nl/m2-pwa/commit/b3d23b0217f808bb251ecaf67ccc618f9a10eefe))
68
- * **framer-next-pages:** enable dragging when the content isn’t scrollable ([3df9115](https://github.com/ho-nl/m2-pwa/commit/3df9115d3fbf72dbe547780f0bc6ce80e42b9e47))
69
- * next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
70
- * **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
71
- * 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))
72
- * upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
73
- * use official nextjs image endpoint ([0e76ab4](https://github.com/ho-nl/m2-pwa/commit/0e76ab4cece15d4d6f192cb938588a34abaebe8a))
74
-
75
-
71
+ - added eslint-plugin-next to have more linting
72
+ ([599c9f0](https://github.com/ho-nl/m2-pwa/commit/599c9f0ff7c07cae3791d6bda819beabaed82f4e))
73
+ - created stacked-pages package
74
+ ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
75
+ - **eslint:** no-relative-packages, prevent importing other packages by relative paths
76
+ ([b3d23b0](https://github.com/ho-nl/m2-pwa/commit/b3d23b0217f808bb251ecaf67ccc618f9a10eefe))
77
+ - **framer-next-pages:** enable dragging when the content isn’t scrollable
78
+ ([3df9115](https://github.com/ho-nl/m2-pwa/commit/3df9115d3fbf72dbe547780f0bc6ce80e42b9e47))
79
+ - next.js 11
80
+ ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
81
+ - **playwright:** added new playwright package to enable browser testing
82
+ ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
83
+ - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
84
+ [@reachdigital](https://github.com/reachdigital)
85
+ ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
86
+ - upgrade to node 14
87
+ ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
88
+ - use official nextjs image endpoint
89
+ ([0e76ab4](https://github.com/ho-nl/m2-pwa/commit/0e76ab4cece15d4d6f192cb938588a34abaebe8a))
76
90
 
77
91
  ## 2.0.8 (2020-10-28)
78
92
 
79
-
80
93
  ### Features
81
94
 
82
- * split into packages ([2ee7fd6](https://github.com/ho-nl/m2-pwa/commit/2ee7fd6c0056f467d114f04d92c6c0ddf622d151))
83
-
95
+ - split into packages
96
+ ([2ee7fd6](https://github.com/ho-nl/m2-pwa/commit/2ee7fd6c0056f467d114f04d92c6c0ddf622d151))
84
97
 
85
98
  ### BREAKING CHANGES
86
99
 
87
- * huge folder structure refactor, please read README to reinstall
88
-
89
-
90
-
91
-
100
+ - huge folder structure refactor, please read README to reinstall
92
101
 
93
102
  # [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/eslint-config-pwa@2.101.0...@graphcommerce/eslint-config-pwa@2.102.0) (2021-07-28)
94
103
 
95
-
96
104
  ### Features
97
105
 
98
- * **eslint:** no-relative-packages, prevent importing other packages by relative paths ([b3d23b0](https://github.com/ho-nl/m2-pwa/commit/b3d23b0217f808bb251ecaf67ccc618f9a10eefe))
99
-
100
-
101
-
102
-
106
+ - **eslint:** no-relative-packages, prevent importing other packages by relative paths
107
+ ([b3d23b0](https://github.com/ho-nl/m2-pwa/commit/b3d23b0217f808bb251ecaf67ccc618f9a10eefe))
103
108
 
104
109
  # [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)
105
110
 
106
-
107
111
  ### Bug Fixes
108
112
 
109
- * ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
110
- * playwright.ts files error ([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
111
-
113
+ - ignore md files from triggering version updates
114
+ ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
115
+ - playwright.ts files error
116
+ ([4296f64](https://github.com/ho-nl/m2-pwa/commit/4296f648b11ea2a01e220cc0cbe1f6114e83e747))
112
117
 
113
118
  ### Features
114
119
 
115
- * **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
120
+ - **playwright:** added new playwright package to enable browser testing
121
+ ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
package/index.js CHANGED
@@ -66,6 +66,7 @@ module.exports = {
66
66
  'react/jsx-key': ['error', { checkFragmentShorthand: true }],
67
67
  'react/jsx-no-duplicate-props': ['error', { ignoreCase: false }],
68
68
  'react/require-default-props': 'off',
69
+ 'react/destructuring-assignment': 'off',
69
70
 
70
71
  '@typescript-eslint/explicit-function-return-type': 'off',
71
72
  '@typescript-eslint/no-unsafe-assignment': 'off',
@@ -102,6 +103,8 @@ module.exports = {
102
103
 
103
104
  // Remove when fixed: https://github.com/airbnb/javascript/pull/2501/files
104
105
  'react/function-component-definition': 'off',
106
+
107
+ 'prefer-const': ['error', { destructuring: 'all' }],
105
108
  },
106
109
  overrides: [
107
110
  {
package/package.json CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "@graphcommerce/eslint-config-pwa",
3
- "version": "3.1.8",
3
+ "version": "4.0.0",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
- "@graphcommerce/prettier-config-pwa": "^3.0.4",
7
- "@graphcommerce/typescript-config-pwa": "^3.1.1",
8
- "@next/eslint-plugin-next": "^12.0.7",
9
- "@typescript-eslint/eslint-plugin": "^5.7.0",
10
- "@typescript-eslint/parser": "^5.7.0",
11
- "eslint": "^8.4.1",
12
- "eslint-config-airbnb": "^19.0.2",
6
+ "@graphcommerce/prettier-config-pwa": "^4.0.0",
7
+ "@graphcommerce/typescript-config-pwa": "^4.0.0",
8
+ "@next/eslint-plugin-next": "^12.0.10",
9
+ "@typescript-eslint/eslint-plugin": "^5.11.0",
10
+ "@typescript-eslint/parser": "^5.11.0",
11
+ "eslint": "^8.8.0",
12
+ "eslint-config-airbnb": "^19.0.4",
13
13
  "eslint-config-airbnb-typescript": "^16.1.0",
14
14
  "eslint-config-prettier": "^8.3.0",
15
15
  "eslint-import-resolver-webpack": "^0.13.2",
16
- "eslint-plugin-import": "^2.25.3",
16
+ "eslint-plugin-import": "^2.25.4",
17
17
  "eslint-plugin-jsx-a11y": "^6.5.1",
18
- "eslint-plugin-react": "^7.27.1",
18
+ "eslint-plugin-react": "^7.28.0",
19
19
  "eslint-plugin-react-hooks": "^4.3.0"
20
20
  },
21
21
  "sideEffects": false,
22
22
  "engines": {
23
23
  "node": "14.x"
24
24
  },
25
- "prettier": "@graphcommerce/prettier-config-pwa",
26
- "gitHead": "a69bd94ffdcca6ca9487eec1cafe9ade3fcdffa3"
25
+ "prettier": "@graphcommerce/prettier-config-pwa"
27
26
  }