Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move gjs/gts parser to ember-eslint-parser library #2028

Merged
merged 11 commits into from
Dec 22, 2023
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ learn more [here](https://github.com/ember-template-imports/ember-template-impor
> [!NOTE]
> special care should be used when setting up parsers, since they cannot be overwritten. thus they should be used in override only and specific to file types

gjs/gts support is provided by the [ember-eslint-parser](https://github.com/NullVoxPopuli/ember-eslint-parser)

```js
// .eslintrc.js
module.exports = {
Expand All @@ -81,7 +83,7 @@ module.exports = {
},
{
files: ['**/*.gts'],
parser: 'eslint-plugin-ember/gjs-gts-parser',
parser: 'ember-eslint-parser',
NullVoxPopuli marked this conversation as resolved.
Show resolved Hide resolved
NullVoxPopuli marked this conversation as resolved.
Show resolved Hide resolved
plugins: ['ember'],
extends: [
'eslint:recommended',
Expand All @@ -91,7 +93,7 @@ module.exports = {
},
{
files: ['**/*.gjs'],
parser: 'eslint-plugin-ember/gjs-gts-parser',
parser: 'ember-eslint-parser',
plugins: ['ember'],
extends: [
'eslint:recommended',
Expand Down
2 changes: 1 addition & 1 deletion lib/config-legacy/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
*/
{
files: ['**/*.{gts,gjs}'],
parser: 'eslint-plugin-ember/gjs-gts-parser',
parser: 'ember-eslint-parser',
processor: 'ember/<noop>',
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = [
*/
{
files: ['**/*.{gts,gjs}'],
parser: 'eslint-plugin-ember/gjs-gts-parser',
parser: 'ember-eslint-parser',
processor: 'ember/<noop>',
NullVoxPopuli marked this conversation as resolved.
Show resolved Hide resolved
},
];
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const requireIndex = require('requireindex');
const noop = require('./preprocessors/noop');
const noop = require('ember-eslint-parser/noop');
const pkg = require('../package.json'); // eslint-disable-line import/extensions

module.exports = {
Expand Down
59 changes: 0 additions & 59 deletions lib/parsers/gjs-gts-parser.js

This file was deleted.

Loading