Skip to content

Commit fc9bcfc

Browse files
committed
major package bumps + script to update lockfiles
1 parent fe4a69e commit fc9bcfc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+18900
-16569
lines changed

client/.eslintrc.cjs

Lines changed: 0 additions & 21 deletions
This file was deleted.

client/eslint.config.mjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import { fixupConfigRules } from "@eslint/compat";
3+
import reactRefresh from "eslint-plugin-react-refresh";
4+
import globals from "globals";
5+
import tsParser from "@typescript-eslint/parser";
6+
import path from "node:path";
7+
import { fileURLToPath } from "node:url";
8+
import js from "@eslint/js";
9+
import { FlatCompat } from "@eslint/eslintrc";
10+
11+
const __filename = fileURLToPath(import.meta.url);
12+
const __dirname = path.dirname(__filename);
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
export default defineConfig([globalIgnores(["**/dist", "**/.eslintrc.cjs"]), {
20+
extends: fixupConfigRules(compat.extends(
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
"plugin:react/recommended",
24+
"plugin:react/jsx-runtime",
25+
"plugin:react-hooks/recommended",
26+
"prettier",
27+
)),
28+
settings: {
29+
react: {
30+
version: "detect",
31+
}
32+
},
33+
plugins: {
34+
"react-refresh": reactRefresh,
35+
},
36+
37+
languageOptions: {
38+
globals: {
39+
...globals.browser,
40+
},
41+
42+
parser: tsParser,
43+
},
44+
45+
rules: {
46+
"react-refresh/only-export-components": ["warn", {
47+
allowConstantExport: true,
48+
}],
49+
},
50+
}]);

0 commit comments

Comments
 (0)