Skip to content

Commit

Permalink
chore: fix package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Sep 13, 2024
1 parent d9e58f3 commit 837bdb1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
29 changes: 9 additions & 20 deletions apps/site/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { fixupPluginRules } from '@eslint/compat';
import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import importX from 'eslint-plugin-import-x';
Expand All @@ -9,27 +8,16 @@ import storybook from 'eslint-plugin-storybook';
import tseslint from 'typescript-eslint';

const compat = new FlatCompat();
const pluginToPatch = '@next/next';

const compatConfig = compat
.config({
extends: [
// https://github.com/vercel/next.js/discussions/49337
'plugin:@next/eslint-plugin-next/core-web-vitals',

// https://github.com/facebook/react/issues/28313
'plugin:react-hooks/recommended',
],
})
.map(entry => {
if (Object.hasOwn(entry.plugins, pluginToPatch)) {
entry.plugins[pluginToPatch] = fixupPluginRules(
entry.plugins[pluginToPatch]
);
}
const compatConfig = compat.config({
extends: [
// https://github.com/vercel/next.js/discussions/49337
'plugin:@next/eslint-plugin-next/core-web-vitals',

return entry;
});
// https://github.com/facebook/react/issues/28313
'plugin:react-hooks/recommended',
],
});

export default tseslint.config(
{
Expand Down Expand Up @@ -58,6 +46,7 @@ export default tseslint.config(
'no-relative-import-paths': noRelativeImportPaths,
},
rules: {
'@next/next/no-duplicate-head': 'off',
'@typescript-eslint/array-type': ['error', { default: 'generic' }],
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-require-imports': 'off',
Expand Down
2 changes: 1 addition & 1 deletion apps/site/util/getHighlighter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getSingletonHighlighterCore } from '@shikijs/core';
import type { HighlighterCore } from '@shikijs/core';
import { getWasmInstance } from '@shikijs/core/wasm-inlined';
import { default as getWasmInstance } from '@shikijs/core/wasm-inlined';

import { LANGUAGES, DEFAULT_THEME } from '@/shiki.config.mjs';

Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"eslint-import-resolver-typescript": "~3.6.3",
"eslint-plugin-import-x": "~4.2.1",
"typescript": "~5.5.4",
"typescript-eslint": "~8.4.0"
"typescript-eslint": "~8.5.0"
}
}

0 comments on commit 837bdb1

Please sign in to comment.