@commercetools-frontend/eslint-config-mc-app 21.3.0 → 21.3.1
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 +6 -0
- package/index.js +33 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @commercetools-frontend/eslint-config-mc-app
|
|
2
2
|
|
|
3
|
+
## 21.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2532](https://github.com/commercetools/merchant-center-application-kit/pull/2532) [`4ae0e602`](https://github.com/commercetools/merchant-center-application-kit/commit/4ae0e6020b67ed343b59c7a9280a11eec8054da5) Thanks [@emmenko](https://github.com/emmenko)! - Fix regression of overriding test specific rules.
|
|
8
|
+
|
|
3
9
|
## 21.3.0
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/index.js
CHANGED
|
@@ -42,12 +42,8 @@ module.exports = {
|
|
|
42
42
|
'plugin:import/errors',
|
|
43
43
|
'plugin:import/warnings',
|
|
44
44
|
'plugin:import/typescript',
|
|
45
|
-
// https://github.com/jest-community/eslint-plugin-jest
|
|
46
|
-
'plugin:jest/recommended',
|
|
47
45
|
// https://github.com/yannickcr/eslint-plugin-react
|
|
48
46
|
'plugin:react/recommended',
|
|
49
|
-
// https://github.com/testing-library/eslint-plugin-testing-library
|
|
50
|
-
'plugin:testing-library/react',
|
|
51
47
|
// https://github.com/prettier/prettier-eslint
|
|
52
48
|
// NOTE: this should go last.
|
|
53
49
|
'prettier',
|
|
@@ -62,12 +58,6 @@ module.exports = {
|
|
|
62
58
|
'react',
|
|
63
59
|
// https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks
|
|
64
60
|
'react-hooks',
|
|
65
|
-
// https://github.com/testing-library/eslint-plugin-testing-library
|
|
66
|
-
'testing-library',
|
|
67
|
-
// https://github.com/jest-community/eslint-plugin-jest
|
|
68
|
-
'jest',
|
|
69
|
-
// https://github.com/testing-library/eslint-plugin-jest-dom
|
|
70
|
-
'jest-dom',
|
|
71
61
|
// https://github.com/prettier/prettier-eslint
|
|
72
62
|
'prettier',
|
|
73
63
|
],
|
|
@@ -110,19 +100,6 @@ module.exports = {
|
|
|
110
100
|
'import/no-named-as-default-member': statusCode.off,
|
|
111
101
|
'import/no-unresolved': statusCode.error,
|
|
112
102
|
|
|
113
|
-
// Jest
|
|
114
|
-
'jest/expect-expect': statusCode.off,
|
|
115
|
-
'jest/no-identical-title': statusCode.warn,
|
|
116
|
-
'jest/no-focused-tests': statusCode.error,
|
|
117
|
-
|
|
118
|
-
// RTL
|
|
119
|
-
'testing-library/prefer-presence-queries': statusCode.error,
|
|
120
|
-
'testing-library/await-async-query': statusCode.error,
|
|
121
|
-
// Enabling these would be a breaking change to the config
|
|
122
|
-
'testing-library/render-result-naming-convention': statusCode.off,
|
|
123
|
-
'testing-library/prefer-screen-queries': statusCode.off,
|
|
124
|
-
'testing-library/no-container': statusCode.warn,
|
|
125
|
-
|
|
126
103
|
// React
|
|
127
104
|
'react/jsx-uses-vars': statusCode.error,
|
|
128
105
|
'react/no-deprecated': statusCode.error,
|
|
@@ -139,10 +116,42 @@ module.exports = {
|
|
|
139
116
|
env: {
|
|
140
117
|
'jest/globals': true,
|
|
141
118
|
},
|
|
119
|
+
extends: [
|
|
120
|
+
// https://github.com/jest-community/eslint-plugin-jest
|
|
121
|
+
'plugin:jest/recommended',
|
|
122
|
+
// https://github.com/testing-library/eslint-plugin-testing-library
|
|
123
|
+
'plugin:testing-library/react',
|
|
124
|
+
// https://github.com/prettier/prettier-eslint
|
|
125
|
+
// NOTE: this should go last.
|
|
126
|
+
'prettier',
|
|
127
|
+
],
|
|
128
|
+
plugins: [
|
|
129
|
+
'testing-library',
|
|
130
|
+
// https://github.com/jest-community/eslint-plugin-jest
|
|
131
|
+
'jest',
|
|
132
|
+
// https://github.com/testing-library/eslint-plugin-jest-dom
|
|
133
|
+
'jest-dom',
|
|
134
|
+
// https://github.com/prettier/prettier-eslint
|
|
135
|
+
'prettier',
|
|
136
|
+
],
|
|
142
137
|
rules: {
|
|
138
|
+
...craRules.jest,
|
|
139
|
+
|
|
140
|
+
// React
|
|
143
141
|
'react/display-name': statusCode.off,
|
|
144
142
|
|
|
145
|
-
|
|
143
|
+
// Jest
|
|
144
|
+
'jest/expect-expect': statusCode.off,
|
|
145
|
+
'jest/no-identical-title': statusCode.warn,
|
|
146
|
+
'jest/no-focused-tests': statusCode.error,
|
|
147
|
+
|
|
148
|
+
// RTL
|
|
149
|
+
'testing-library/prefer-presence-queries': statusCode.error,
|
|
150
|
+
'testing-library/await-async-query': statusCode.error,
|
|
151
|
+
// Enabling these would be a breaking change to the config
|
|
152
|
+
'testing-library/render-result-naming-convention': statusCode.off,
|
|
153
|
+
'testing-library/prefer-screen-queries': statusCode.off,
|
|
154
|
+
'testing-library/no-container': statusCode.warn,
|
|
146
155
|
},
|
|
147
156
|
},
|
|
148
157
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/eslint-config-mc-app",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.1",
|
|
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": {
|