From 637585aee4afafe6d34ee528dc59e9ad4bc8013d Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Wed, 14 Feb 2024 10:16:44 -0500 Subject: [PATCH] fix: fix flat config for gts/gjs and noop parser name --- lib/config-legacy/base.js | 2 +- lib/config/base.js | 7 +++++-- lib/index.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/config-legacy/base.js b/lib/config-legacy/base.js index 42d33e6ffb..d27a5e8806 100644 --- a/lib/config-legacy/base.js +++ b/lib/config-legacy/base.js @@ -21,7 +21,7 @@ module.exports = { { files: ['**/*.{gts,gjs}'], parser: 'ember-eslint-parser', - processor: 'ember/', + processor: 'ember/noop', }, ], }; diff --git a/lib/config/base.js b/lib/config/base.js index 2fa33ccd33..c6bdf52381 100644 --- a/lib/config/base.js +++ b/lib/config/base.js @@ -1,4 +1,5 @@ const plugin = require('../index'); +const emberEslintParser = require('ember-eslint-parser'); module.exports = [ { @@ -11,7 +12,9 @@ module.exports = [ */ { files: ['**/*.{gts,gjs}'], - parser: 'ember-eslint-parser', - processor: 'ember/', + languageOptions: { + parser: emberEslintParser, + }, + processor: 'ember/noop', }, ]; diff --git a/lib/index.js b/lib/index.js index 60b5c227a8..bfb49a4471 100644 --- a/lib/index.js +++ b/lib/index.js @@ -16,6 +16,6 @@ module.exports = { }, processors: { // https://eslint.org/docs/developer-guide/working-with-plugins#file-extension-named-processor - '': noop, + noop, }, };