@plone/volto 18.27.0 → 18.27.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/.eslintrc CHANGED
@@ -37,13 +37,6 @@
37
37
  "react-hooks/exhaustive-deps": "warn",
38
38
  "react/react-in-jsx-scope": "off",
39
39
  "jsx-a11y/label-has-associated-control": "off",
40
- "no-restricted-syntax": [
41
- "error",
42
- {
43
- "selector": "JSXElement[openingElement.name.name='img']",
44
- "message": "Use the Image component from '@plone/volto/components/theme/Image/Image' instead of <img> tag."
45
- }
46
- ]
47
40
  },
48
41
  "settings": {
49
42
  "import/resolver": {
@@ -82,19 +75,6 @@
82
75
  "import/no-anonymous-default-export": "off",
83
76
  },
84
77
  },
85
- {
86
- "files": [
87
- "**/Image/Image.jsx",
88
- "**/Image/Image.js",
89
- "**/*.stories.js",
90
- "**/*.stories.jsx",
91
- "**/*.test.js",
92
- "**/*.test.jsx"
93
- ],
94
- "rules": {
95
- "no-restricted-syntax": "off"
96
- }
97
- }
98
78
  ],
99
79
  "globals": {
100
80
  "root": true,
@@ -111,7 +91,7 @@
111
91
  "jest": true,
112
92
  "socket": true,
113
93
  "webpackIsomorphicTools": true,
114
- "vitest":true,
115
- "vi":true
94
+ "vitest": true,
95
+ "vi": true,
116
96
  },
117
97
  }
package/.eslintrc.core.js CHANGED
@@ -35,6 +35,14 @@ if (process.env.VOLTOCONFIG) {
35
35
  "Importing directly from `lodash` is not allowed. Please use `import <helper> from 'lodash/<helper>'` instead.",
36
36
  },
37
37
  ],
38
+ 'no-restricted-syntax': [
39
+ 'warn',
40
+ {
41
+ selector: "JSXElement[openingElement.name.name='img']",
42
+ message:
43
+ "Use the Image component from '@plone/volto/components/theme/Image/Image' instead of <img> tag.",
44
+ },
45
+ ],
38
46
  };
39
47
  }
40
48
 
package/CHANGELOG.md CHANGED
@@ -17,6 +17,12 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 18.27.1 (2025-09-26)
21
+
22
+ ### Bugfix
23
+
24
+ - Revert #7389 ESlint rule definition. @sneridagh [#7401](https://github.com/plone/volto/issues/7401)
25
+
20
26
  ## 18.27.0 (2025-09-26)
21
27
 
22
28
  ### Feature
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "18.27.0",
12
+ "version": "18.27.1",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -237,8 +237,8 @@
237
237
  "use-deep-compare-effect": "1.8.1",
238
238
  "uuid": "^8.3.2",
239
239
  "@plone/registry": "2.5.4",
240
- "@plone/scripts": "3.10.1",
241
- "@plone/volto-slate": "18.6.0"
240
+ "@plone/volto-slate": "18.6.0",
241
+ "@plone/scripts": "3.10.1"
242
242
  },
243
243
  "devDependencies": {
244
244
  "@babel/core": "^7.0.0",
@@ -364,8 +364,8 @@
364
364
  "webpack-dev-server": "4.11.1",
365
365
  "webpack-node-externals": "3.0.0",
366
366
  "why": "0.6.2",
367
- "@plone/types": "1.4.5",
368
- "@plone/volto-coresandbox": "1.0.0"
367
+ "@plone/volto-coresandbox": "1.0.0",
368
+ "@plone/types": "1.4.5"
369
369
  },
370
370
  "volta": {
371
371
  "node": "20.9.0"
@@ -82,6 +82,7 @@ export default function Image({
82
82
  attrs.fetchpriority = 'high';
83
83
  }
84
84
 
85
+ // eslint-disable-next-line no-restricted-syntax
85
86
  return <img {...attrs} alt={alt} {...imageProps} />;
86
87
  }
87
88