Skip to content

Commit

Permalink
fix: fix flat config for gts/gjs and noop parser name
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Feb 14, 2024
1 parent 181a53e commit de1a980
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': noop,

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 18.x)

Replace `'noop'` with `noop`

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 18.x)

Expected property shorthand

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 20.x)

Replace `'noop'` with `noop`

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 20.x)

Expected property shorthand

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 21.x)

Replace `'noop'` with `noop`

Check failure on line 19 in lib/index.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 21.x)

Expected property shorthand
},
};

0 comments on commit de1a980

Please sign in to comment.