My personal site
cherry.computer
htmx
tailwind
axum
askama
1import eslint from "@eslint/js";
2import eslintConfigPrettier from "eslint-config-prettier";
3import globals from "globals";
4import tseslint from "typescript-eslint";
5
6export default tseslint.config(
7 eslint.configs.recommended,
8 tseslint.configs.recommendedTypeChecked,
9 eslintConfigPrettier,
10 {
11 ignores: ["build/"],
12 },
13 {
14 languageOptions: {
15 parserOptions: {
16 projectService: true,
17 tsconfigRootDir: import.meta.dirname,
18 },
19 },
20 },
21 {
22 files: ["**/*.js"],
23 extends: [tseslint.configs.disableTypeChecked],
24 },
25 {
26 files: ["esbuild.js"],
27 languageOptions: {
28 globals: globals.node,
29 },
30 },
31 {
32 files: ["**/*.ts"],
33 rules: {
34 "@typescript-eslint/no-unsafe-assignment": "off",
35 },
36 },
37);