Skip to content

Commit

Permalink
Improve ESLint v8 code example (#656)
Browse files Browse the repository at this point in the history
Make it easier to change the example rule to make fixes and suggestions.
  • Loading branch information
guilhermesimoes authored Jul 2, 2022
1 parent ee9d80c commit d8706f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website/src/parsers/js/transformers/eslint8/codeExample.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export default function(context) {
export const meta = {
type: 'problem',
hasSuggestions: true,
fixable: true,
};

export function create(context) {
return {
TemplateLiteral(node) {
context.report({
Expand Down

0 comments on commit d8706f7

Please sign in to comment.