@adyen/eslint-plugin-bento 2.4.3 → 2.5.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.5.0 (2025-12-23)
4
+
5
+ ### Miscellaneous Chores
6
+
7
+ - merged all ESlint configs into a single flat config file ([262fd9acf](https://github.com/Adyen/bento/commit/262fd9acf))
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - daver
12
+
13
+
3
14
  ## 2.4.3 (2025-12-17)
4
15
 
5
16
  This was a version bump only for eslint to align it with other projects, there were no code changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/eslint-plugin-bento",
3
- "version": "2.4.3",
3
+ "version": "2.5.0",
4
4
  "description": "Adyen Bento ESLint rules",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -44,7 +44,6 @@
44
44
  "vue-eslint-parser": "^9.0"
45
45
  },
46
46
  "scripts": {
47
- "lint": "eslint -c ./eslint.config.js ./ --exit-on-fatal-error",
48
47
  "test": "vitest run --config ./vitest.config.ts",
49
48
  "test:coverage": "pnpm run test --coverage",
50
49
  "test:watch": "vitest watch"
@@ -38,6 +38,7 @@ module.exports = {
38
38
  * @param {boolean} wrapStringLiteral
39
39
  * @returns {string | undefined}
40
40
  */
41
+ // eslint-disable-next-line @typescript-eslint/no-shadow, consistent-return
41
42
  function transformNodeToText(node, wrapStringLiteral = false) {
42
43
  if (node.type === 'VText') {
43
44
  return node.value;
@@ -56,6 +57,7 @@ module.exports = {
56
57
  * @param { VText | VExpressionContainer } node
57
58
  * @returns {boolean}
58
59
  */
60
+ // eslint-disable-next-line @typescript-eslint/no-shadow
59
61
  function removeEmptyVTextNodes(node) {
60
62
  if (node.type === 'VText') {
61
63
  return !!node.value.trim().length;
@@ -79,6 +81,7 @@ module.exports = {
79
81
  }
80
82
 
81
83
  const content = node.children
84
+ // eslint-disable-next-line @typescript-eslint/no-shadow
82
85
  .map((/** @type {VText | VExpressionContainer} */ node) => transformNodeToText(node, true))
83
86
  .join('')
84
87
  .trim();