From e35a8737ac8eb078892ebe9ab3c211418def9660 Mon Sep 17 00:00:00 2001 From: Christian Vuerings Date: Sun, 15 Oct 2023 19:42:02 -0700 Subject: [PATCH] 0.0.6 - fix rule.create is not a function --- .npmignore | 2 +- CHANGELOG.md | 4 ++++ package.json | 2 +- src/index.ts | 2 +- tsconfig.json | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.npmignore b/.npmignore index f465928..817879b 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1 @@ -src/tests +dist/tests diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ade420..e5a20dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.0.6 + +- Use `module.exports` to fix `rule.create is not a function` + # 0.0.5 - Convert to CommonJS for compatibility diff --git a/package.json b/package.json index 281d12b..47f16b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-no-re-export", - "version": "0.0.5", + "version": "0.0.6", "description": "ESLint plugin to disallow re-exporting in TypeScript/JavaScript", "main": "dist/index.js", "repository": { diff --git a/src/index.ts b/src/index.ts index d2a913b..b72aa8a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import noReExport from "./rules/no-re-export"; -export default { +module.exports = { rules: { "no-re-export": noReExport, }, diff --git a/tsconfig.json b/tsconfig.json index 15422d9..a0c768b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "target": "ES2021", + "target": "ES2015", "typeRoots": ["node_modules/@types"] }, "include": ["src"],