"Originality is the best form of rebellion." β Mike Sasso
Disallow xkcd references (no-xkcd
) β
πΌ This rule is enabled in the following configs: π all
, β
recommended
.
π§ This rule is automatically fixable by the --fix
CLI option.
π Rule details β
xkcd
is great and all, but references to it are overused! Also, you're not edgy or teaching anyone anything. Everybody and their grandma is reading it, and we've all seen that comic a billion times, especially #927 (you already know which one I'm talking about).
On exception for https://xkcd.com/2832 which is allowed because fuck cars.
π‘ Examples β
js
// β Incorrect
// lol xkcd/3241
const woof = 'woof'
// β
Correct
// lol it's nonsense
const woof = 'woof'
π§ Config β
js
{ rules: { 'ninja/no-xkcd': 2 } }