Skip to content

Commit

Permalink
Merge pull request #671 from NullVoxPopuli/expose-embers-config-builder
Browse files Browse the repository at this point in the history
Expose ember's config builder
  • Loading branch information
NullVoxPopuli authored Nov 1, 2024
2 parents b6a710a + 90ed921 commit cf477db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion configs/ember.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { configBuilder: nodeConfigBuilder } = require('./node');
* @param {import('./types').Options} [options]
* @returns {import('eslint').Linter.Config}
*/
module.exports = (options = {}) => {
const ember = (options = {}) => {
let config = configBuilder(options);

return configFor([
Expand Down Expand Up @@ -175,3 +175,8 @@ function configBuilder(options = {}) {

return configBuilder;
}

module.exports = {
configBuilder,
ember,
};
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
* @returns {import('eslint').Linter.Config}
*/
ember(options = {}) {
return require('./configs/ember')(options);
return require('./configs/ember').ember(options);
},
/**
* @param {import('./configs/types').Options} [ options ]
Expand Down

0 comments on commit cf477db

Please sign in to comment.