@commercetools-frontend/eslint-config-mc-app 20.12.3 → 21.0.0-rc.7

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 +31 -0
  2. package/index.js +12 -0
  3. package/package.json +18 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @commercetools-frontend/eslint-config-mc-app
2
2
 
3
+ ## 21.0.0-rc.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+
9
+ - Updated dependencies [[`71171d65`](https://github.com/commercetools/merchant-center-application-kit/commit/71171d65c276801d499f9b39923674114dff360c)]:
10
+ - @commercetools-frontend/babel-preset-mc-app@21.0.0-rc.7
11
+
12
+ ## 21.0.0-rc.5
13
+
14
+ ### Patch Changes
15
+
16
+ - [#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
17
+
18
+ ## 21.0.0-rc.1
19
+
20
+ ### Major Changes
21
+
22
+ - [#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.
23
+
24
+ ### Patch Changes
25
+
26
+ - [#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.
27
+
28
+ ## 21.0.0-rc.0
29
+
30
+ ### Patch Changes
31
+
32
+ - [#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
33
+
3
34
  ## 20.12.3
4
35
 
5
36
  ### 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": "20.12.3",
3
+ "version": "21.0.0-rc.7",
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,28 +15,31 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@typescript-eslint/eslint-plugin": "^4.33.0",
19
- "@typescript-eslint/parser": "^4.33.0",
20
- "babel-eslint": "^10.1.0",
18
+ "@commercetools-frontend/babel-preset-mc-app": "^21.0.0-rc.7",
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": "^6.0.0",
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": "^5.10.0",
27
- "eslint-plugin-import": "^2.25.3",
28
- "eslint-plugin-jest": "^24.7.0",
29
- "eslint-plugin-jest-dom": "^3.9.2",
26
+ "eslint-plugin-flowtype": "^8.0.3",
27
+ "eslint-plugin-import": "^2.25.4",
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": "^3.4.1",
32
- "eslint-plugin-react": "^7.27.1",
31
+ "eslint-plugin-prettier": "^4.0.0",
32
+ "eslint-plugin-react": "^7.28.0",
33
33
  "eslint-plugin-react-hooks": "^4.3.0",
34
- "eslint-plugin-testing-library": "^4.12.4"
34
+ "eslint-plugin-testing-library": "^5.0.4"
35
35
  },
36
36
  "peerDependencies": {
37
- "eslint": ">=7.0.0"
37
+ "eslint": ">=8.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "eslint": "7.32.0"
40
+ "eslint": "8.7.0"
41
+ },
42
+ "engines": {
43
+ "node": ">=14"
41
44
  }
42
45
  }