We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cfd8e commit f969970Copy full SHA for f969970
scripts/template/rule.js.jst
@@ -6,6 +6,7 @@ const messages = {
6
[MESSAGE_ID]: 'Prefer `{{replacement}}` over `{{value}}`.'
7
};
8
9
+/** @param {import('eslint').Rule.RuleContext} context */
10
const create = context => {
11
return {
12
Literal(node) {
@@ -20,6 +21,7 @@ const create = context => {
20
21
value: 'unicorn',
22
replacement: '🦄'
23
}<% if (fixableType) { %>,
24
+ /** @param {import('eslint').Rule.RuleFixer} fixer */
25
fix: fixer => fixer.replaceText(node, '\'🦄\'')<% } %>
26
});
27
}
0 commit comments