@commercetools-frontend/eslint-config-mc-app 21.0.0-rc.0 → 21.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.
- package/CHANGELOG.md +44 -0
- package/index.js +12 -0
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @commercetools-frontend/eslint-config-mc-app
|
|
2
2
|
|
|
3
|
+
## 21.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`bb1f7d75`](https://github.com/commercetools/merchant-center-application-kit/commit/bb1f7d75ff54f7fef05c4d2b3328b88e400b4867) Thanks [@emmenko](https://github.com/emmenko)! - Upgrade to ESLint v8. Make sure you upgrade the `eslint` dependency to v8 as well and fix possible linting errors.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`bb1f7d75`](https://github.com/commercetools/merchant-center-application-kit/commit/bb1f7d75ff54f7fef05c4d2b3328b88e400b4867) Thanks [@emmenko](https://github.com/emmenko)! - ESLint config depends on Babel preset. Add pre-configured entry points for Babel preset for different environments.
|
|
12
|
+
|
|
13
|
+
* [#2450](https://github.com/commercetools/merchant-center-application-kit/pull/2450) [`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964) Thanks [@emmenko](https://github.com/emmenko)! - Update dependencies
|
|
14
|
+
|
|
15
|
+
- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`bb1f7d75`](https://github.com/commercetools/merchant-center-application-kit/commit/bb1f7d75ff54f7fef05c4d2b3328b88e400b4867) Thanks [@emmenko](https://github.com/emmenko)! - Fix config setup
|
|
16
|
+
|
|
17
|
+
* [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`bb1f7d75`](https://github.com/commercetools/merchant-center-application-kit/commit/bb1f7d75ff54f7fef05c4d2b3328b88e400b4867) Thanks [@emmenko](https://github.com/emmenko)! - Use version range for Babel packages.
|
|
18
|
+
|
|
19
|
+
* Updated dependencies [[`bb1f7d75`](https://github.com/commercetools/merchant-center-application-kit/commit/bb1f7d75ff54f7fef05c4d2b3328b88e400b4867), [`eb8f5b2c`](https://github.com/commercetools/merchant-center-application-kit/commit/eb8f5b2c885a4c3ffc7857a61e50508b429bf964), [`bb1f7d75`](https://github.com/commercetools/merchant-center-application-kit/commit/bb1f7d75ff54f7fef05c4d2b3328b88e400b4867), [`bb1f7d75`](https://github.com/commercetools/merchant-center-application-kit/commit/bb1f7d75ff54f7fef05c4d2b3328b88e400b4867)]:
|
|
20
|
+
- @commercetools-frontend/babel-preset-mc-app@21.0.0
|
|
21
|
+
|
|
22
|
+
## 21.0.0-rc.7
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`71171d65`](https://github.com/commercetools/merchant-center-application-kit/commit/71171d65c276801d499f9b39923674114dff360c) Thanks [@emmenko](https://github.com/emmenko)! - ESLint config depends on Babel preset. Add pre-configured entry points for Babel preset for different environments.
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`71171d65`](https://github.com/commercetools/merchant-center-application-kit/commit/71171d65c276801d499f9b39923674114dff360c)]:
|
|
29
|
+
- @commercetools-frontend/babel-preset-mc-app@21.0.0-rc.7
|
|
30
|
+
|
|
31
|
+
## 21.0.0-rc.5
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`611c3717`](https://github.com/commercetools/merchant-center-application-kit/commit/611c37173b0f6c76638c9a201d2df1a5b960d926) Thanks [@emmenko](https://github.com/emmenko)! - Fix config setup
|
|
36
|
+
|
|
37
|
+
## 21.0.0-rc.1
|
|
38
|
+
|
|
39
|
+
### Major Changes
|
|
40
|
+
|
|
41
|
+
- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`4e3baf52`](https://github.com/commercetools/merchant-center-application-kit/commit/4e3baf52f15859a1bdeacc9df4270ed84c7066c4) Thanks [@emmenko](https://github.com/emmenko)! - Upgrade to ESLint v8. Make sure you upgrade the `eslint` dependency to v8 as well and fix possible linting errors.
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [#2430](https://github.com/commercetools/merchant-center-application-kit/pull/2430) [`5ea8baf1`](https://github.com/commercetools/merchant-center-application-kit/commit/5ea8baf1b2ca2661aac9a6a572d2c8e596ee0b2c) Thanks [@emmenko](https://github.com/emmenko)! - Use version range for Babel packages.
|
|
46
|
+
|
|
3
47
|
## 21.0.0-rc.0
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// This is a workaround for https://github.com/eslint/eslint/issues/3458
|
|
2
|
+
require('@rushstack/eslint-patch/modern-module-resolution');
|
|
3
|
+
|
|
1
4
|
const { statusCode, allSupportedExtensions } = require('./helpers/eslint');
|
|
2
5
|
const hasJsxRuntime = require('./helpers/has-jsx-runtime');
|
|
3
6
|
|
|
@@ -5,6 +8,15 @@ const hasJsxRuntime = require('./helpers/has-jsx-runtime');
|
|
|
5
8
|
* @type {import("eslint").Linter.Config}
|
|
6
9
|
*/
|
|
7
10
|
module.exports = {
|
|
11
|
+
parserOptions: {
|
|
12
|
+
babelOptions: {
|
|
13
|
+
presets: [
|
|
14
|
+
require.resolve(
|
|
15
|
+
'@commercetools-frontend/babel-preset-mc-app/production'
|
|
16
|
+
),
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
8
20
|
extends: [
|
|
9
21
|
// https://github.com/facebook/create-react-app/tree/master/packages/eslint-config-react-app
|
|
10
22
|
'react-app',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/eslint-config-mc-app",
|
|
3
|
-
"version": "21.0.0
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"description": "ESLint config used by a Custom Application.",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"
|
|
18
|
+
"@commercetools-frontend/babel-preset-mc-app": "^21.0.0",
|
|
19
|
+
"@rushstack/eslint-patch": "^1.1.0",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
21
|
+
"@typescript-eslint/parser": "^5.10.0",
|
|
21
22
|
"eslint-config-prettier": "^8.3.0",
|
|
22
|
-
"eslint-config-react-app": "^
|
|
23
|
+
"eslint-config-react-app": "^7.0.0",
|
|
23
24
|
"eslint-import-resolver-typescript": "^2.5.0",
|
|
24
|
-
"eslint-plugin-babel": "^5.3.1",
|
|
25
25
|
"eslint-plugin-cypress": "^2.12.1",
|
|
26
|
-
"eslint-plugin-flowtype": "^
|
|
26
|
+
"eslint-plugin-flowtype": "^8.0.3",
|
|
27
27
|
"eslint-plugin-import": "^2.25.4",
|
|
28
|
-
"eslint-plugin-jest": "^
|
|
29
|
-
"eslint-plugin-jest-dom": "^
|
|
28
|
+
"eslint-plugin-jest": "^25.7.0",
|
|
29
|
+
"eslint-plugin-jest-dom": "^4.0.1",
|
|
30
30
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
31
|
-
"eslint-plugin-prettier": "^
|
|
31
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
32
32
|
"eslint-plugin-react": "^7.28.0",
|
|
33
33
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
34
|
-
"eslint-plugin-testing-library": "^
|
|
34
|
+
"eslint-plugin-testing-library": "^5.0.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"eslint": "
|
|
37
|
+
"eslint": "8.x"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"eslint": "7.
|
|
40
|
+
"eslint": "8.7.0"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=14"
|