eslint-plugin-greasemonkey 1.8.0 → 1.8.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/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
  <img alt="[Latest Build]" src="https://img.shields.io/npm/v/eslint-plugin-greasemonkey?logo=icinga&style=for-the-badge&label=Latest%20Build&color=32fcee"></a>
7
7
  <a href="#license">
8
8
  <img alt="[License: MIT]" src="https://img.shields.io/badge/License-MIT-f1f20a.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
9
+ <img src="https://img.shields.io/npm/dm/eslint-plugin-greasemonkey?style=for-the-badge&logo=npm&color=black">
9
10
  <a target="_blank" href="https://eslint.org/">
10
11
  <img alt="[Requires ESLint >=9.0.0]" src="https://img.shields.io/badge/Requires-ESLint_%3E%3D9.0.0-4B32C3?style=for-the-badge&logo=eslint"></a>
11
12
  <br><br>
@@ -1139,7 +1140,7 @@ If you prefer shorter URLs, or don't support users who strictly enforce subresou
1139
1140
 
1140
1141
  #### When not to use it
1141
1142
 
1142
- If you don't target Tampermonkey or ScriptCat (where `@updateURL` avoids re-downloading the full script on every update check).
1143
+ If you don't target Tampermonkey, ScriptCat or AdGuard (where `@updateURL` avoids re-downloading the full script on every update check).
1143
1144
 
1144
1145
  #### Introduced in
1145
1146
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-greasemonkey",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "ESLint rules for Greasemonkey/Tampermonkey userscripts",
5
5
  "type": "module",
6
6
  "engines": {
@@ -69,16 +69,16 @@
69
69
  "@eslint/markdown": "^8.0.3",
70
70
  "@stylistic/eslint-plugin": "^5.10.0",
71
71
  "eslint": "^10.11.0",
72
- "eslint-plugin-constructors": "^1.3.0",
72
+ "eslint-plugin-constructors": "^1.4.0",
73
73
  "eslint-plugin-eslint-plugin": "^7.6.2",
74
74
  "eslint-plugin-import-x": "^4.17.1",
75
- "eslint-plugin-n": "^18.3.0",
75
+ "eslint-plugin-n": "^18.4.0",
76
76
  "eslint-plugin-no-secrets": "^2.3.3",
77
77
  "eslint-plugin-no-unsanitized": "^4.1.5",
78
78
  "eslint-plugin-promise": "^7.3.0",
79
79
  "eslint-plugin-regexp": "^3.3.1",
80
- "eslint-plugin-security": "^4.0.1",
81
- "globals": "^17.12.0",
80
+ "eslint-plugin-security": "^4.2.0",
81
+ "globals": "^17.13.0",
82
82
  "husky": "^9.1.7",
83
83
  "yamllint-js": "^0.2.4"
84
84
  }
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ plugin.configs = {
83
83
  plugins: { greasemonkey: plugin },
84
84
  rules: Object.fromEntries(Object.entries(plugin.rules)
85
85
  .filter(([, rule]) => rule.meta.type == 'problem')
86
- .map(([id]) => [`greasemonkey/${id}`, 'error']))
86
+ .map(([ruleId]) => [`greasemonkey/${ruleId}`, 'error']))
87
87
  }
88
88
  }
89
89