Skip to content

Commit

Permalink
chore: update version and config
Browse files Browse the repository at this point in the history
  • Loading branch information
eunnbi committed Dec 22, 2024
1 parent 7382f69 commit 0aaeece
Show file tree
Hide file tree
Showing 3 changed files with 319 additions and 208 deletions.
21 changes: 12 additions & 9 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { fixupConfigRules } from '@eslint/compat'
import { FlatCompat } from '@eslint/eslintrc'
import eslintJS from '@eslint/js'
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended'
Expand All @@ -13,10 +12,6 @@ const flatCompat = new FlatCompat({
baseDirectory: __dirname
})

const patchedNextLintConfig = fixupConfigRules(
flatCompat.extends('next/core-web-vitals')
)

export default eslintTS.config(
{
ignores: [
Expand All @@ -37,7 +32,11 @@ export default eslintTS.config(
eslintJS.configs.recommended,
...eslintTS.configs.recommended,
{
plugins: {
'@typescript-eslint': tseslint.plugin
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: true,
emitDecoratorMetadata: true,
Expand Down Expand Up @@ -122,10 +121,14 @@ export default eslintTS.config(
},

/* Frontend configuration */
...patchedNextLintConfig.map((config) => ({
...config,
files: ['apps/frontend/**/*']
})),
...flatCompat
.config({
extends: ['next/core-web-vitals']
})
.map((config) => ({
...config,
files: ['apps/frontend/**/*']
})),
{
files: ['apps/frontend/**/*'],
languageOptions: {
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,22 @@
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/types": "^19.5.0",
"@eslint/compat": "^1.2.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@tsconfig/recommended": "^1.0.8",
"eslint": "^9.12.0",
"eslint-config-next": "^14.2.17",
"eslint": "^9.17.0",
"eslint-config-next": "^15.1.2",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.11.0",
"globals": "^15.14.0",
"knip": "^5.36.7",
"lefthook": "^1.8.2",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"ts-node": "^10.9.2",
"typescript": "5.6.3",
"typescript-eslint": "^8.8.1"
"typescript-eslint": "^8.18.1"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 0aaeece

Please sign in to comment.