Skip to content

Commit

Permalink
🔧 FlatConfigに
Browse files Browse the repository at this point in the history
  • Loading branch information
arrow2nd committed Dec 19, 2024
1 parent 4ff6f1d commit c04a69d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

14 changes: 14 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { fixupConfigRules } = require('@eslint/compat')
const { FlatCompat } = require('@eslint/eslintrc')
const prettier = require('eslint-config-prettier')

const flatCompat = new FlatCompat()

module.exports = [
...fixupConfigRules(
flatCompat.extends('next/core-web-vitals'),
flatCompat.extends('next/typescript')
),
prettier
]

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"use-media": "^1.5.0"
},
"devDependencies": {
"@eslint/compat": "^1.2.4",
"@eslint/eslintrc": "^3.2.0",
"@playwright/test": "^1.42.1",
"@tailwindcss/forms": "^0.5.7",
"@testing-library/jest-dom": "^6.4.2",
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c04a69d

Please sign in to comment.