eslint-plugin-userscripts
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -36,3 +36,3 @@ 'use strict'; | ||
'userscripts/use-homepage-and-url': 'error', | ||
'userscripts/use-download-and-update-url': 'error', | ||
'userscripts/require-download-url': 'error', | ||
'userscripts/align-attributes': ['error', 2], | ||
@@ -39,0 +39,0 @@ 'userscripts/metadata-spacing': ['error', 'always'], |
@@ -27,5 +27,3 @@ const parse = require('./parse'); | ||
* indexMatch: number | number[]; | ||
* metadata: | ||
* | Object<string, Metadata | Metadata[]> | ||
* | Object<string, Metadata | Metadata[]>[]; | ||
* metadata: Object<string, Metadata | Metadata[]>; | ||
* context: RuleContext; | ||
@@ -32,0 +30,0 @@ * keyName: string | string[]; |
{ | ||
"name": "eslint-plugin-userscripts", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Implements rules for userscripts metadata in eslint", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"husky": "^8.0.3", | ||
"markdownlint-cli": "^0.34.0", | ||
"markdownlint-cli": "^0.35.0", | ||
"mocha": "^10.2.0", | ||
@@ -34,0 +34,0 @@ "nyc": "^15.1.0", |
@@ -42,3 +42,3 @@ # `eslint-plugin-userscripts` | ||
| [`use-homepage-and-url`](docs/rules/use-homepage-and-url.md) | Ensures that for each `homepage` attribute, `homepageURL` is also used | ✅ | | ||
| [`use-download-and-update-url`](docs/rules/use-download-and-update-url.md) | Ensures that for each `downloadURL` there is a `updateURL` | ✅ | | ||
| [`require-download-url`](docs/rules/require-download-url.md) | Ensures that for each `downloadURL` there is a `updateURL` | ✅ | | ||
| [`align-attributes`](docs/rules/align-attributes.md) | Ensures that attributes are spaced out and aligned | ✅ | | ||
@@ -45,0 +45,0 @@ | [`require-attribute-space-prefix`](docs/rules/require-attribute-space-prefix.md) | Ensure that attributes are prefixed by one space | ✅ | |
62423
1757