@commercetools-frontend/eslint-config-mc-app 27.5.2 → 27.5.4
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 +38 -0
- package/index.js +5 -0
- package/index.spec.js +32 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @commercetools-frontend/eslint-config-mc-app
|
|
2
2
|
|
|
3
|
+
## 27.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4006](https://github.com/commercetools/merchant-center-application-kit/pull/4006) [`1b2d65c`](https://github.com/commercetools/merchant-center-application-kit/commit/1b2d65c6058231bb53a6315ff5d81390f398c551) Thanks [@ByronDWall](https://github.com/ByronDWall)! - Add `eslint-import-resolver-typescript` to the base ESLint config block so JS/JSX files can resolve non-hoisted pnpm packages and packages using only the `exports` field.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @commercetools-frontend/babel-preset-mc-app@27.5.4
|
|
11
|
+
|
|
12
|
+
## 27.5.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#3989](https://github.com/commercetools/merchant-center-application-kit/pull/3989) [`222259a`](https://github.com/commercetools/merchant-center-application-kit/commit/222259a810691eaf7904e89acddca444ac8bd0b6) Thanks [@misama-ct](https://github.com/misama-ct)! - Bump transitive dependencies via pnpm overrides to address 46 high-severity Dependabot alerts. Updated dependencies:
|
|
17
|
+
|
|
18
|
+
- `@isaacs/brace-expansion` >= 5.0.1
|
|
19
|
+
- `@remix-run/router` >= 1.23.2
|
|
20
|
+
- `@xmldom/xmldom` >= 0.8.13
|
|
21
|
+
- `axios` >= 1.15.2
|
|
22
|
+
- `immutable` >= 3.8.3
|
|
23
|
+
- `lodash-es` >= 4.17.21
|
|
24
|
+
- `minimatch@^3` ^3.1.4
|
|
25
|
+
- `minimatch@^4` ^4.2.5
|
|
26
|
+
- `minimatch@^9` ^9.0.7
|
|
27
|
+
- `minimatch@^10` ^10.2.3
|
|
28
|
+
- `path-to-regexp@^6` ^6.3.0
|
|
29
|
+
- `picomatch@^4` ^4.0.4
|
|
30
|
+
- `rollup` ^4.59.0
|
|
31
|
+
- `semver@^6` ^6.3.1
|
|
32
|
+
- `svgo` >= 2.8.1
|
|
33
|
+
- `systeminformation` >= 5.31.0
|
|
34
|
+
- `tar` >= 7.5.11
|
|
35
|
+
- `tar-fs` >= 3.1.1
|
|
36
|
+
- `undici` >= 6.24.0
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [[`222259a`](https://github.com/commercetools/merchant-center-application-kit/commit/222259a810691eaf7904e89acddca444ac8bd0b6)]:
|
|
39
|
+
- @commercetools-frontend/babel-preset-mc-app@27.5.3
|
|
40
|
+
|
|
3
41
|
## 27.5.2
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
package/index.js
CHANGED
|
@@ -135,6 +135,11 @@ module.exports = [
|
|
|
135
135
|
},
|
|
136
136
|
settings: {
|
|
137
137
|
'import/resolver': {
|
|
138
|
+
// The node resolver alone can't resolve non-hoisted pnpm packages
|
|
139
|
+
// or packages that only use the `exports` field (no main/module).
|
|
140
|
+
typescript: {
|
|
141
|
+
alwaysTryTypes: true,
|
|
142
|
+
},
|
|
138
143
|
node: {
|
|
139
144
|
extensions: allSupportedExtensions,
|
|
140
145
|
},
|
package/index.spec.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment node
|
|
3
|
+
*/
|
|
4
|
+
const config = require('./index');
|
|
5
|
+
|
|
6
|
+
describe('eslint-config-mc-app flat config', () => {
|
|
7
|
+
const baseConfig = config.find(
|
|
8
|
+
(block) =>
|
|
9
|
+
Array.isArray(block.files) &&
|
|
10
|
+
block.files.some((f) => f.includes('{js,jsx,ts,tsx,cjs,mjs}'))
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
it('should include typescript resolver in the base config block', () => {
|
|
14
|
+
expect(baseConfig.settings['import/resolver']).toEqual(
|
|
15
|
+
expect.objectContaining({
|
|
16
|
+
typescript: {
|
|
17
|
+
alwaysTryTypes: true,
|
|
18
|
+
},
|
|
19
|
+
})
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should still include node resolver in the base config block', () => {
|
|
24
|
+
expect(baseConfig.settings['import/resolver']).toEqual(
|
|
25
|
+
expect.objectContaining({
|
|
26
|
+
node: expect.objectContaining({
|
|
27
|
+
extensions: expect.any(Array),
|
|
28
|
+
}),
|
|
29
|
+
})
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/eslint-config-mc-app",
|
|
3
|
-
"version": "27.5.
|
|
3
|
+
"version": "27.5.4",
|
|
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": "^27.5.
|
|
26
|
+
"@commercetools-frontend/babel-preset-mc-app": "^27.5.4",
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^8.55.0",
|
|
28
28
|
"@typescript-eslint/parser": "^8.55.0",
|
|
29
29
|
"confusing-browser-globals": "^1.0.11",
|