Skip to content

Commit

Permalink
fix: fix module import
Browse files Browse the repository at this point in the history
  • Loading branch information
ASafaeirad committed Oct 17, 2024
1 parent add8db4 commit 29b45db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"pre-commit": "npm run test && lint-staged"
},
"main": "src/index.js",
"module": "src/index.js",
"type": "module",
"dependencies": {
"@eslint-react/eslint-plugin": "1.15.0",
Expand Down
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const defaultOptions = {
* @param {...(import('eslint').Linter.Config)} extend
* @returns {import('eslint').Linter.Config[]}
*/
function init(initOptions, ...extend) {
export function init(initOptions, ...extend) {
const options = merge(defaultOptions, initOptions);
if (options.typescript === true) {
options.typescript = {};
Expand Down Expand Up @@ -82,6 +82,3 @@ function init(initOptions, ...extend) {

return rules.concat(extend);
}

const _init = init;
export { _init as init };

0 comments on commit 29b45db

Please sign in to comment.