Skip to content

Commit db19149

Browse files
committed
Some organization
1 parent f79557b commit db19149

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

lib/recommended.mjs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,41 @@
1-
import plugin from './index.js';
1+
import emberPlugin from './index.js';
22
import gjsRules from './recommended-rules-gjs.js';
33
import gtsRules from './recommended-rules-gts.js';
4-
import parser from 'ember-eslint-parser';
4+
import emberParser from 'ember-eslint-parser';
5+
6+
export const plugin = emberPlugin;
7+
export const parser = emberParser;
58

69
export const base = {
7-
plugins: { ember: plugin },
10+
plugins: { ember: emberPlugin },
811
};
912

1013
export const gjs = {
11-
plugins: { ember: plugin },
14+
plugins: { ember: emberPlugin },
1215
files: ['**/*.gjs'],
1316
languageOptions: {
14-
parser,
17+
parser: emberParser,
1518
},
1619
processor: 'ember/noop',
1720
rules: gjsRules,
1821
};
1922

2023
export const gts = {
21-
plugins: { ember: plugin },
24+
plugins: { ember: emberPlugin },
2225
files: ['**/*.gts'],
2326
languageOptions: {
24-
parser,
27+
parser: emberParser,
2528
},
2629
processor: 'ember/noop',
2730
rules: gtsRules,
2831
};
32+
33+
export default {
34+
// Helpful utility exports
35+
plugin,
36+
parser,
37+
// Recommended config sets
38+
base,
39+
gjs,
40+
gts,
41+
};

0 commit comments

Comments
 (0)