From 85e35d7dd219377eded4605fbfb7ca248f84b2da Mon Sep 17 00:00:00 2001 From: NullVoxPopuli Date: Tue, 25 Oct 2022 09:42:36 -0400 Subject: [PATCH] Add comment explaining overrides and gjs/gts options --- lib/config/recommended.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/config/recommended.js b/lib/config/recommended.js index ddac14554d..e45976c2ef 100644 --- a/lib/config/recommended.js +++ b/lib/config/recommended.js @@ -19,6 +19,15 @@ module.exports = { rules, overrides: [ + /** + * We don't want to *always* have the preprocessor active, + * it's only relevant on gjs and gts files. + * + * Additionally, we need to declare a global (which is private API) + * so that ESLint doesn't report errors about the variable being undefined. + * While this is true, it's a temporary thing for babel to do further processing + * on -- and isn't relevant to user-land code. + */ { files: ['**/*.gjs', '**/*.gts'], processor: 'ember/