From d8706f73aaf2ab23f1c29e13f52639c5855d769c Mon Sep 17 00:00:00 2001 From: Guilherme Simoes Date: Sat, 2 Jul 2022 20:03:22 +0100 Subject: [PATCH] Improve ESLint v8 code example (#656) Make it easier to change the example rule to make fixes and suggestions. --- .../src/parsers/js/transformers/eslint8/codeExample.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/src/parsers/js/transformers/eslint8/codeExample.txt b/website/src/parsers/js/transformers/eslint8/codeExample.txt index 82c7f991..d6824292 100644 --- a/website/src/parsers/js/transformers/eslint8/codeExample.txt +++ b/website/src/parsers/js/transformers/eslint8/codeExample.txt @@ -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({