aboutsummaryrefslogtreecommitdiff
path: root/src/main/webui/eslint.config.js
blob: d25c771e2e86963fec181e455e2d93aa9e02bc1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import js from "@eslint/js";
import prettier from "eslint-plugin-prettier/recommended";
import pluginReact from "eslint-plugin-react";
import tseslint from "typescript-eslint";

/** @type {import('eslint').Linter.Config[]} */
export default [
  {
    files: ["**/*.{js,ts,jsx,tsx}"],
    settings: {
      react: {
        version: "19.0",
        defaultVersion: "19.0",
      },
    },
  },
  {
    ignores: [".yarn/"],
  },
  js.configs.recommended,
  ...tseslint.configs.recommended,
  pluginReact.configs.flat.recommended,
  prettier,
];