Created
November 16, 2022 15:23
-
-
Save kexline4710/ac641696da94b5a08f16a928115543b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
meta: { | |
type: "suggestion", | |
docs: { | |
description: "Enforce Brandon and Ashlynn as unified function", | |
recommended: true, | |
url: "https://eslint.org/docs/rules/together-forever" | |
}, | |
schema: [] | |
}, | |
create: (context) => ({ | |
FunctionDeclaration(node) { | |
if (node.id.name === "brandon") { | |
context.report({ | |
node: node, | |
message: "Append this function with 'AndAshlynn'" | |
}) | |
} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I LOVE THIS SO MUCH 😍
If you compare this to Brandon's published eslint config, I think you're all set! He's a pretty big comment guy, so it might fun to slip one in there somewhere? (or maybe a
TODO
🤔 )Based on the pics I sent in the text thread, my guess is that he uses a portion of the One Dark Pro theme?