Skip to content

Commit

Permalink
Some organization
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 18, 2024
1 parent f79557b commit db19149
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions lib/recommended.mjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
import plugin from './index.js';
import emberPlugin from './index.js';
import gjsRules from './recommended-rules-gjs.js';
import gtsRules from './recommended-rules-gts.js';
import parser from 'ember-eslint-parser';
import emberParser from 'ember-eslint-parser';

export const plugin = emberPlugin;
export const parser = emberParser;

export const base = {
plugins: { ember: plugin },
plugins: { ember: emberPlugin },
};

export const gjs = {
plugins: { ember: plugin },
plugins: { ember: emberPlugin },
files: ['**/*.gjs'],
languageOptions: {
parser,
parser: emberParser,
},
processor: 'ember/noop',
rules: gjsRules,
};

export const gts = {
plugins: { ember: plugin },
plugins: { ember: emberPlugin },
files: ['**/*.gts'],
languageOptions: {
parser,
parser: emberParser,
},
processor: 'ember/noop',
rules: gtsRules,
};

export default {
// Helpful utility exports
plugin,
parser,
// Recommended config sets
base,
gjs,
gts,
};

0 comments on commit db19149

Please sign in to comment.