✅ The "extends": "plugin:userscripts/recommended" property in a configuration file enables this rule.
🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
The use-homepage-and-url
rule verifies that if the homepage
attribute is
present then the homepageURL
attribute is too and vice versa.
For compatibility with different userscript runners.
👍 Examples of correct code for this rule
/* eslint userscripts/use-homepage-and-url: "error" */
// ==UserScript==
// @homepage example.com
// @homepageURL example.com
// ==/UserScript==
👎︎ Examples of incorrect code for this rule
/* eslint userscripts/use-homepage-and-url: "error" */
// ==UserScript==
// @homepage example.com
// ==/UserScript==
When you are sure that the userscript runner that you and your users use is compatible with your choice.