@open-xchange/linter-presets 1.16.3 → 1.17.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,10 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.17.0` – 2026-Feb-19
4
+
5
+ - added: (ESLint) all `n/prefer-global/*` rules
6
+ - chore: bump dependencies
7
+
3
8
  ## `1.16.3` – 2026-Feb-12
4
9
 
5
10
  - chore: bump dependencies
@@ -36,6 +36,15 @@ export default function node(envOptions) {
36
36
  "no-console": "off",
37
37
  "n/no-missing-import": ["error", { ignoreTypeImport: true }],
38
38
  "n/no-unsupported-features/node-builtins": ["error", { allowExperimental: true }],
39
+ "n/prefer-global/buffer": "error",
40
+ "n/prefer-global/console": "error",
41
+ "n/prefer-global/crypto": "error",
42
+ "n/prefer-global/process": "error",
43
+ "n/prefer-global/text-decoder": "error",
44
+ "n/prefer-global/text-encoder": "error",
45
+ "n/prefer-global/timers": "error",
46
+ "n/prefer-global/url": "error",
47
+ "n/prefer-global/url-search-params": "error",
39
48
  "n/prefer-node-protocol": "error",
40
49
  }),
41
50
  ];
@@ -22,7 +22,7 @@ export default function project(envOptions) {
22
22
  "no-amd-module-directive": noAmdModuleDirective,
23
23
  "no-invalid-modules": noInvalidModules,
24
24
  "no-invalid-hierarchy": noInvalidHierarchy,
25
- }, // TODO
25
+ },
26
26
  },
27
27
  },
28
28
  settings: {
@@ -60,7 +60,6 @@ export default function react(envOptions) {
60
60
  "@eslint-react/dom/no-unknown-property": "error",
61
61
  "@eslint-react/naming-convention/component-name": "error",
62
62
  "@eslint-react/naming-convention/context-name": "error",
63
- "@eslint-react/naming-convention/filename-extension": ["error", { allow: "as-needed" }],
64
63
  }),
65
64
  // "react-hooks" plugin and recommended rules, raise all recommended rules to "error" level
66
65
  createConfig("env.react.react-hooks", envOptions, convertRuleWarningsToErrors(reactHooksPlugin.configs.flat.recommended)),
@@ -1,5 +1,5 @@
1
1
  import { dirname } from "node:path";
2
- import { URL, fileURLToPath } from "node:url";
2
+ import { fileURLToPath } from "node:url";
3
3
  // functions ==================================================================
4
4
  /**
5
5
  * A resolver for file paths relative to a base URL.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "1.16.3",
3
+ "version": "1.17.0",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "@babel/eslint-parser": "^7.28.6",
35
35
  "@babel/plugin-proposal-decorators": "^7.29.0",
36
36
  "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
37
- "@eslint-react/eslint-plugin": "^2.12.4",
37
+ "@eslint-react/eslint-plugin": "^2.13.0",
38
38
  "@eslint/compat": "^2.0.2",
39
39
  "@eslint/config-helpers": "^0.5.2",
40
40
  "@eslint/js": "^9.39.2",
@@ -44,30 +44,30 @@
44
44
  "@stylistic/stylelint-config": "^4.0.0",
45
45
  "@stylistic/stylelint-plugin": "^5.0.1",
46
46
  "@types/picomatch": "^4.0.2",
47
- "@vitest/eslint-plugin": "^1.6.7",
48
- "@vue/eslint-config-typescript": "^14.6.0",
47
+ "@vitest/eslint-plugin": "^1.6.9",
48
+ "@vue/eslint-config-typescript": "^14.7.0",
49
49
  "confusing-browser-globals": "^1.0.11",
50
50
  "empathic": "^2.0.0",
51
51
  "eslint-plugin-chai-expect": "^3.1.0",
52
52
  "eslint-plugin-codeceptjs": "^1.3.0",
53
53
  "eslint-plugin-depend": "^1.4.0",
54
- "eslint-plugin-eslint-plugin": "^7.3.0",
55
- "eslint-plugin-jest": "^29.13.0",
54
+ "eslint-plugin-eslint-plugin": "^7.3.1",
55
+ "eslint-plugin-jest": "^29.15.0",
56
56
  "eslint-plugin-jest-dom": "^5.5.0",
57
57
  "eslint-plugin-jest-extended": "^3.0.1",
58
- "eslint-plugin-jsdoc": "^62.5.4",
58
+ "eslint-plugin-jsdoc": "^62.6.0",
59
59
  "eslint-plugin-jsonc": "^2.21.1",
60
60
  "eslint-plugin-jsx-a11y": "^6.10.2",
61
61
  "eslint-plugin-license-header": "^0.9.0",
62
- "eslint-plugin-n": "^17.23.2",
62
+ "eslint-plugin-n": "^17.24.0",
63
63
  "eslint-plugin-no-unsanitized": "^4.1.4",
64
64
  "eslint-plugin-promise": "^7.2.1",
65
65
  "eslint-plugin-react-hooks": "^7.0.1",
66
66
  "eslint-plugin-react-refresh": "^0.5.0",
67
67
  "eslint-plugin-regexp": "^3.0.0",
68
- "eslint-plugin-testing-library": "^7.15.4",
69
- "eslint-plugin-vue": "^10.7.0",
70
- "eslint-plugin-yml": "^3.1.2",
68
+ "eslint-plugin-testing-library": "^7.16.0",
69
+ "eslint-plugin-vue": "^10.8.0",
70
+ "eslint-plugin-yml": "^3.2.1",
71
71
  "globals": "^17.3.0",
72
72
  "picomatch": "^4.0.3",
73
73
  "postcss-html": "^1.8.1",
@@ -76,19 +76,19 @@
76
76
  "stylelint-config-standard-scss": "^17.0.0",
77
77
  "stylelint-config-standard-vue": "^1.0.0",
78
78
  "stylelint-plugin-license-header": "^1.0.3",
79
- "typescript-eslint": "^8.55.0"
79
+ "typescript-eslint": "^8.56.0"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@types/confusing-browser-globals": "^1.0.3",
83
83
  "@types/eslint-scope": "^8.4.0",
84
- "@types/node": "^25.2.3",
84
+ "@types/node": "^25.3.0",
85
85
  "@types/react": "^19.2.14",
86
- "@typescript-eslint/utils": "^8.55.0",
86
+ "@typescript-eslint/utils": "^8.56.0",
87
87
  "eslint": "^9.39.2",
88
88
  "jest": "^30.2.0",
89
89
  "jiti": "^2.6.1",
90
90
  "premove": "^4.0.0",
91
- "stylelint": "^17.2.0",
91
+ "stylelint": "^17.3.0",
92
92
  "ts-patch": "^3.3.0",
93
93
  "typescript": "^5.9.3",
94
94
  "typescript-transform-paths": "^3.5.6",