Skip to content

Commit

Permalink
Rename previous "recommended" config to "dprint" (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiamanzati authored Feb 5, 2025
1 parent 66b66b2 commit 2f0baac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-pianos-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/eslint-plugin": minor
---

Rename previous "recommended" config to "dprint"
5 changes: 1 addition & 4 deletions src/configs/recommended.ts → src/configs/dprint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import disableConflictRules from "@effect/eslint-plugin/configs/disable-conflict-rules"
import * as plugin from "@effect/eslint-plugin/plugin"

const recommended = [
export default plugin.configs.dprint = [
...disableConflictRules,
{
plugins: {
Expand All @@ -12,6 +12,3 @@ const recommended = [
},
},
]

plugin.configs.recommended = recommended
export default recommended
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as plugin from "@effect/eslint-plugin/plugin"
import "@effect/eslint-plugin/configs/recommended"
import "@effect/eslint-plugin/configs/dprint"

export * from "@effect/eslint-plugin/plugin"
export default plugin
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export const rules = {
// so in this file we only stub out known configs
// but they actually get injected in their respective file
export const configs = {
recommended: [] as Array<any>,
dprint: [] as Array<any>,
}

0 comments on commit 2f0baac

Please sign in to comment.