@commercetools-frontend/eslint-config-mc-app 22.7.0 → 22.8.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 +18 -0
- package/index.js +52 -35
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @commercetools-frontend/eslint-config-mc-app
|
|
2
2
|
|
|
3
|
+
## 22.8.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3082](https://github.com/commercetools/merchant-center-application-kit/pull/3082) [`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db) Thanks [@renovate](https://github.com/apps/renovate)! - Refine overrides for React specific configs
|
|
8
|
+
|
|
9
|
+
- [#3082](https://github.com/commercetools/merchant-center-application-kit/pull/3082) [`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db), [`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db)]:
|
|
12
|
+
- @commercetools-frontend/babel-preset-mc-app@22.8.0
|
|
13
|
+
|
|
14
|
+
## 22.7.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies []:
|
|
19
|
+
- @commercetools-frontend/babel-preset-mc-app@22.7.1
|
|
20
|
+
|
|
3
21
|
## 22.7.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/index.js
CHANGED
|
@@ -42,8 +42,6 @@ module.exports = {
|
|
|
42
42
|
'plugin:import/errors',
|
|
43
43
|
'plugin:import/warnings',
|
|
44
44
|
'plugin:import/typescript',
|
|
45
|
-
// https://github.com/yannickcr/eslint-plugin-react
|
|
46
|
-
'plugin:react/recommended',
|
|
47
45
|
// https://github.com/prettier/prettier-eslint
|
|
48
46
|
// NOTE: this should go last.
|
|
49
47
|
'prettier',
|
|
@@ -54,10 +52,6 @@ module.exports = {
|
|
|
54
52
|
'import',
|
|
55
53
|
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y
|
|
56
54
|
'jsx-a11y',
|
|
57
|
-
// https://github.com/yannickcr/eslint-plugin-react
|
|
58
|
-
'react',
|
|
59
|
-
// https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks
|
|
60
|
-
'react-hooks',
|
|
61
55
|
// https://github.com/prettier/prettier-eslint
|
|
62
56
|
'prettier',
|
|
63
57
|
],
|
|
@@ -99,24 +93,6 @@ module.exports = {
|
|
|
99
93
|
'import/no-named-as-default': statusCode.off,
|
|
100
94
|
'import/no-named-as-default-member': statusCode.off,
|
|
101
95
|
'import/no-unresolved': statusCode.error,
|
|
102
|
-
|
|
103
|
-
// React
|
|
104
|
-
'react/jsx-uses-vars': statusCode.error,
|
|
105
|
-
'react/no-deprecated': statusCode.error,
|
|
106
|
-
'react/no-unused-prop-types': statusCode.error,
|
|
107
|
-
...(hasJsxRuntime() && {
|
|
108
|
-
'react/jsx-uses-react': statusCode.off,
|
|
109
|
-
'react/react-in-jsx-scope': statusCode.off,
|
|
110
|
-
}),
|
|
111
|
-
'react/no-unknown-property': [
|
|
112
|
-
statusCode.error,
|
|
113
|
-
{
|
|
114
|
-
ignore: [
|
|
115
|
-
// To allow using Emotion's `css` prop: https://emotion.sh/docs/css-prop
|
|
116
|
-
'css',
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
96
|
},
|
|
121
97
|
|
|
122
98
|
overrides: [
|
|
@@ -164,14 +140,11 @@ module.exports = {
|
|
|
164
140
|
},
|
|
165
141
|
},
|
|
166
142
|
{
|
|
167
|
-
files: ['**/*.ts
|
|
143
|
+
files: ['**/*.{ts,tsx}'],
|
|
168
144
|
parser: '@typescript-eslint/parser',
|
|
169
145
|
parserOptions: {
|
|
170
146
|
ecmaVersion: 2018,
|
|
171
147
|
sourceType: 'module',
|
|
172
|
-
ecmaFeatures: {
|
|
173
|
-
jsx: true,
|
|
174
|
-
},
|
|
175
148
|
// typescript-eslint specific options
|
|
176
149
|
warnOnUnsupportedTypeScriptVersion: true,
|
|
177
150
|
},
|
|
@@ -199,15 +172,8 @@ module.exports = {
|
|
|
199
172
|
],
|
|
200
173
|
'@typescript-eslint/no-require-imports': statusCode.off,
|
|
201
174
|
'@typescript-eslint/promise-function-async': statusCode.off,
|
|
202
|
-
|
|
203
|
-
// React
|
|
204
|
-
'react/no-unused-prop-types': statusCode.off,
|
|
205
|
-
'react/prop-types': statusCode.off,
|
|
206
175
|
},
|
|
207
176
|
settings: {
|
|
208
|
-
react: {
|
|
209
|
-
version: 'detect',
|
|
210
|
-
},
|
|
211
177
|
'import/parsers': {
|
|
212
178
|
'@typescript-eslint/parser': ['.js', '.jsx', '.ts', '.tsx'],
|
|
213
179
|
},
|
|
@@ -220,6 +186,57 @@ module.exports = {
|
|
|
220
186
|
},
|
|
221
187
|
},
|
|
222
188
|
},
|
|
189
|
+
{
|
|
190
|
+
files: ['**/*.{js,jsx,tsx}'],
|
|
191
|
+
extends: [
|
|
192
|
+
// https://github.com/yannickcr/eslint-plugin-react
|
|
193
|
+
'plugin:react/recommended',
|
|
194
|
+
],
|
|
195
|
+
plugins: [
|
|
196
|
+
// https://github.com/yannickcr/eslint-plugin-react
|
|
197
|
+
'react',
|
|
198
|
+
// https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks
|
|
199
|
+
'react-hooks',
|
|
200
|
+
],
|
|
201
|
+
rules: {
|
|
202
|
+
// React
|
|
203
|
+
'react/jsx-uses-vars': statusCode.error,
|
|
204
|
+
'react/no-deprecated': statusCode.error,
|
|
205
|
+
'react/no-unused-prop-types': statusCode.error,
|
|
206
|
+
...(hasJsxRuntime() && {
|
|
207
|
+
'react/jsx-uses-react': statusCode.off,
|
|
208
|
+
'react/react-in-jsx-scope': statusCode.off,
|
|
209
|
+
}),
|
|
210
|
+
'react/no-unknown-property': [
|
|
211
|
+
statusCode.error,
|
|
212
|
+
{
|
|
213
|
+
ignore: [
|
|
214
|
+
// To allow using Emotion's `css` prop: https://emotion.sh/docs/css-prop
|
|
215
|
+
'css',
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
settings: {
|
|
221
|
+
react: {
|
|
222
|
+
version: 'detect',
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
files: ['**/*.tsx'],
|
|
228
|
+
parser: '@typescript-eslint/parser',
|
|
229
|
+
parserOptions: {
|
|
230
|
+
ecmaFeatures: {
|
|
231
|
+
jsx: true,
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
rules: {
|
|
235
|
+
// React
|
|
236
|
+
'react/no-unused-prop-types': statusCode.off,
|
|
237
|
+
'react/prop-types': statusCode.off,
|
|
238
|
+
},
|
|
239
|
+
},
|
|
223
240
|
{
|
|
224
241
|
files: [
|
|
225
242
|
'.custom-application-config.{js,cjs,mjs,ts}',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/eslint-config-mc-app",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.8.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": {
|
|
@@ -21,26 +21,26 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/core": "^7.
|
|
25
|
-
"@babel/eslint-parser": "^7.
|
|
26
|
-
"@commercetools-frontend/babel-preset-mc-app": "^22.
|
|
27
|
-
"@rushstack/eslint-patch": "^1.
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
29
|
-
"@typescript-eslint/parser": "^5.
|
|
24
|
+
"@babel/core": "^7.22.17",
|
|
25
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
26
|
+
"@commercetools-frontend/babel-preset-mc-app": "^22.8.0",
|
|
27
|
+
"@rushstack/eslint-patch": "^1.3.3",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
29
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
30
30
|
"confusing-browser-globals": "^1.0.11",
|
|
31
|
-
"eslint-config-prettier": "^8.
|
|
32
|
-
"eslint-import-resolver-typescript": "^3.
|
|
33
|
-
"eslint-plugin-cypress": "^2.
|
|
34
|
-
"eslint-plugin-import": "^2.
|
|
35
|
-
"eslint-plugin-jest": "^27.2.
|
|
31
|
+
"eslint-config-prettier": "^8.10.0",
|
|
32
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
|
33
|
+
"eslint-plugin-cypress": "^2.14.0",
|
|
34
|
+
"eslint-plugin-import": "^2.28.1",
|
|
35
|
+
"eslint-plugin-jest": "^27.2.3",
|
|
36
36
|
"eslint-plugin-jest-dom": "^4.0.3",
|
|
37
37
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
38
38
|
"eslint-plugin-prettier": "^4.2.1",
|
|
39
|
-
"eslint-plugin-react": "^7.
|
|
39
|
+
"eslint-plugin-react": "^7.33.2",
|
|
40
40
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
41
|
-
"eslint-plugin-testing-library": "^5.
|
|
41
|
+
"eslint-plugin-testing-library": "^5.11.1",
|
|
42
42
|
"prettier": "^2.8.4",
|
|
43
|
-
"typescript": "^5.
|
|
43
|
+
"typescript": "^5.2.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"eslint": "8.x"
|