@commercetools-frontend/eslint-config-mc-app 25.0.0 → 25.2.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 +22 -0
  2. package/index.js +14 -0
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @commercetools-frontend/eslint-config-mc-app
2
2
 
3
+ ## 25.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3923](https://github.com/commercetools/merchant-center-application-kit/pull/3923) [`3b47e62`](https://github.com/commercetools/merchant-center-application-kit/commit/3b47e62fc0d7f63ac9fbf05fba907e4ac5705f41) Thanks [@tylermorrisford](https://github.com/tylermorrisford)! - Adds overrides for two transient dependencies.
8
+
9
+ - [#3927](https://github.com/commercetools/merchant-center-application-kit/pull/3927) [`246ba28`](https://github.com/commercetools/merchant-center-application-kit/commit/246ba28620cea5b3ce14567e7ec721cc87401fb0) Thanks [@misama-ct](https://github.com/misama-ct)! - Fix SNYK-JS-INFLIGHT-6095116 vulnerability by removing dependencies on the deprecated `inflight` package.
10
+
11
+ - [#3922](https://github.com/commercetools/merchant-center-application-kit/pull/3922) [`4d19484`](https://github.com/commercetools/merchant-center-application-kit/commit/4d19484452f0955c84ecd4d13f1949bdfbdeadbf) Thanks [@tylermorrisford](https://github.com/tylermorrisford)! - Adds override for transient dependency security issue.
12
+
13
+ - [#3924](https://github.com/commercetools/merchant-center-application-kit/pull/3924) [`a19546c`](https://github.com/commercetools/merchant-center-application-kit/commit/a19546c7d145da501b8e6d922664c2adaafad524) Thanks [@tylermorrisford](https://github.com/tylermorrisford)! - Adds override for tar package version.
14
+
15
+ - Updated dependencies [[`3b47e62`](https://github.com/commercetools/merchant-center-application-kit/commit/3b47e62fc0d7f63ac9fbf05fba907e4ac5705f41), [`246ba28`](https://github.com/commercetools/merchant-center-application-kit/commit/246ba28620cea5b3ce14567e7ec721cc87401fb0), [`4d19484`](https://github.com/commercetools/merchant-center-application-kit/commit/4d19484452f0955c84ecd4d13f1949bdfbdeadbf), [`a19546c`](https://github.com/commercetools/merchant-center-application-kit/commit/a19546c7d145da501b8e6d922664c2adaafad524)]:
16
+ - @commercetools-frontend/babel-preset-mc-app@25.2.0
17
+
18
+ ## 25.1.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies []:
23
+ - @commercetools-frontend/babel-preset-mc-app@25.1.0
24
+
3
25
  ## 25.0.0
4
26
 
5
27
  ### Patch Changes
package/index.js CHANGED
@@ -70,6 +70,20 @@ module.exports = {
70
70
  // NOTE: The regular rule does not support do-expressions. The equivalent rule of babel does.
71
71
  'no-unused-expressions': statusCode.off,
72
72
 
73
+ // Enforce direct lodash imports for tree-shaking (e.g., 'lodash/omit' not 'lodash')
74
+ 'no-restricted-imports': [
75
+ statusCode.warn,
76
+ {
77
+ paths: [
78
+ {
79
+ name: 'lodash',
80
+ message:
81
+ "Import from 'lodash/<function>' directly for tree-shaking (e.g., import omit from 'lodash/omit').",
82
+ },
83
+ ],
84
+ },
85
+ ],
86
+
73
87
  // Imports
74
88
  'import/extensions': [
75
89
  statusCode.error,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/eslint-config-mc-app",
3
- "version": "25.0.0",
3
+ "version": "25.2.0",
4
4
  "description": "ESLint config used by Merchant Center customizations.",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@babel/core": "^7.22.17",
25
25
  "@babel/eslint-parser": "^7.22.15",
26
- "@commercetools-frontend/babel-preset-mc-app": "^25.0.0",
26
+ "@commercetools-frontend/babel-preset-mc-app": "^25.2.0",
27
27
  "@rushstack/eslint-patch": "^1.3.3",
28
28
  "@typescript-eslint/eslint-plugin": "^5.62.0",
29
29
  "@typescript-eslint/parser": "^5.62.0",