Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit ec9cf53

Browse files
authored
feat: add ESM version (#144)
1 parent 746fcae commit ec9cf53

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.7.0",
44
"description": "Provide a defineConfig function for .eslintrc.js files",
55
"main": "src/index.js",
6+
"module": "src/index.mjs",
67
"scripts": {
78
"clean": "rm -Rf dist pnpm-lock.yaml node_modules",
89
"check": "tsc",

src/index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* Define an eslint config.
3+
*
4+
* @param config Eslint config.
5+
* @returns Eslint config.
6+
*/
7+
export function defineConfig(config) {
8+
return config;
9+
}

0 commit comments

Comments
 (0)