Skip to content

Commit

Permalink
fix/eslint import extension (#49)
Browse files Browse the repository at this point in the history
* fix: add extension for react recommended config

* chore: changeset

* fix: use latest preset in dev
  • Loading branch information
sushichan044 authored Apr 22, 2024
1 parent 0ce181e commit a67ed3d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-garlics-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@virtual-live-lab/eslint-config": patch
---

add extension for react recommended config import
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//@ts-check
export { default } from "@virtual-live-lab/eslint-config/ts"
export { default } from "@virtual-live-lab/eslint-config/presets/ts"
2 changes: 1 addition & 1 deletion packages/eslint-config/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//@ts-check
export { default } from "@virtual-live-lab/eslint-config/ts"
export { default } from "@virtual-live-lab/eslint-config/presets/ts"
2 changes: 1 addition & 1 deletion packages/eslint-config/src/base/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Linter } from "eslint"
//@ts-expect-error no types
import react from "eslint-plugin-react"
//@ts-expect-error no types
import reactRecommended from "eslint-plugin-react/configs/recommended"
import reactRecommended from "eslint-plugin-react/configs/recommended.js"
import globals from "globals"

import { compat } from "../lib/compat"
Expand Down
3 changes: 2 additions & 1 deletion packages/prettier-config/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default } from "@virtual-live-lab/eslint-config/ts"
//@ts-check
export { default } from "@virtual-live-lab/eslint-config/presets/ts"
3 changes: 2 additions & 1 deletion packages/stylelint-config/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default } from "@virtual-live-lab/eslint-config/ts"
//@ts-check
export { default } from "@virtual-live-lab/eslint-config/presets/ts"

0 comments on commit a67ed3d

Please sign in to comment.