Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor esm circularity #23

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/configs/recommended.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import disableConflictRules from "@effect/eslint-plugin/configs/disable-conflict-rules"
import plugin from "@effect/eslint-plugin/plugin"
import * as plugin from "@effect/eslint-plugin/plugin"

const recommended = [
...disableConflictRules,
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import plugin from "@effect/eslint-plugin/plugin"
import * as plugin from "@effect/eslint-plugin/plugin"
import "@effect/eslint-plugin/configs/recommended"

export * from "@effect/eslint-plugin/plugin"
export default plugin
21 changes: 10 additions & 11 deletions src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { dprint } from "@effect/eslint-plugin/rules/dprint"

export const meta = {
name: "@effect/eslint-plugin",
}

export const rules = {
dprint,
}

// NOTE: unfortunately plugins needs a self-reference inside configs,
// so in this file we only stub out known configs
// but they actually get injected in their respective file

export default {
meta: {
name: "@effect/eslint-plugin",
},
rules: {
dprint,
},
configs: {
recommended: [] as Array<any>,
},
export const configs = {
recommended: [] as Array<any>,
}