Skip to content

Commit

Permalink
add plugin to recommended config
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Aug 1, 2023
1 parent f324294 commit d933b54
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-onions-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/eslint-plugin": patch
---

add plugin to recommended config
2 changes: 1 addition & 1 deletion src/configs/recommended.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"

export default {
extends: [],
plugins: ["@effect"],
rules: {
...disableConflictRules.rules,
"@effect/dprint": "error",
Expand Down
13 changes: 6 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { dprint } from "@effect/eslint-plugin/rules/dprint"
import recommended from "./configs/recommended"

export default {
configs: {
recommended,
},
rules: {
dprint,
},
export const configs = {
recommended,
}

export const rules = {
dprint,
}
6 changes: 3 additions & 3 deletions src/rules/dprint.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createFromBuffer } from "@dprint/formatter"
import { getPath } from "@dprint/typescript"
import { ConfigSchema } from "@effect/eslint-plugin/Dprint"
import * as RegularExpression from "@effect/eslint-plugin//RegularExpression"
import type { Addition, Removal, Replacement } from "@effect/eslint-plugin/Diff"
import { DiffIterator } from "@effect/eslint-plugin/DiffIterator"
import * as RegularExpression from "@effect/eslint-plugin//RegularExpression"
import { ConfigSchema } from "@effect/eslint-plugin/Dprint"
import { createRule } from "@effect/eslint-plugin/utils/eslint"
import * as Fs from "fs"
import * as path from "path"
import { createRule } from "@effect/eslint-plugin/utils/eslint"

const formatter = createFromBuffer(Fs.readFileSync(getPath()))

Expand Down

0 comments on commit d933b54

Please sign in to comment.