✅ The "extends": "plugin:userscripts/recommended" property in a configuration file enables this rule.
The require-attribute-space-prefix
rule verifies that the header attribute are
prefixed by one space.
To ensure maximum compatibility.
This rule has no options.
👍 Examples of correct code for this rule
/* eslint userscripts/require-attribute-space-prefix: "error" */
// ==UserScript==
// @name Deletes the X Button
// @description Some info on my userscript
// ==/UserScript==
/* eslint userscripts/require-attribute-space-prefix: "error" */
// ==UserScript==
// @name Deletes the X Button
// @description Some info on my userscript
// ==/UserScript==
/* eslint userscripts/require-attribute-space-prefix: "error" */
// ==UserScript==
// @name Deletes the X Button
//
// @description Some info on my userscript
// ==/UserScript==
👎︎ Examples of incorrect code for this rule
/* eslint userscripts/require-attribute-space-prefix: "error" */
// ==UserScript==
// @name Deletes the X Button
//@description Some info on my userscript
// ==/UserScript==
/* eslint userscripts/require-attribute-space-prefix: "error" */
// ==UserScript==
// @description Some info on my userscript
// @name Deletes the X Button
// ==/UserScript==
This rule should apply to all userscripts.