Skip to content

Commit

Permalink
Fix flat config for gts/gjs and noop parser name (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Feb 15, 2024
1 parent 2cbf929 commit eeffaa8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/config-legacy/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
{
files: ['**/*.{gts,gjs}'],
parser: 'ember-eslint-parser',
processor: 'ember/<noop>',
processor: 'ember/noop',
},
],
};
7 changes: 5 additions & 2 deletions lib/config/base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const plugin = require('../index');
const emberEslintParser = require('ember-eslint-parser');

module.exports = [
{
Expand All @@ -11,7 +12,9 @@ module.exports = [
*/
{
files: ['**/*.{gts,gjs}'],
parser: 'ember-eslint-parser',
processor: 'ember/<noop>',
languageOptions: {
parser: emberEslintParser,
},
processor: 'ember/noop',
},
];
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ module.exports = {
},
processors: {
// https://eslint.org/docs/developer-guide/working-with-plugins#file-extension-named-processor
'<noop>': noop,
noop,
},
};

0 comments on commit eeffaa8

Please sign in to comment.