newdrive/web/eslint.config.js
Elijah f24e96efa7
All checks were successful
CI / Backend (push) Successful in 29s
CI / Frontend (push) Successful in 9m27s
CI / Contracts and repository policy (push) Successful in 7s
CI / Container (push) Successful in 18s
Harden CI and switch release builds to tagged immutable images
2026-07-15 19:21:07 -07:00

32 lines
1 KiB
JavaScript

import eslint from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import tseslint from "typescript-eslint";
export default tseslint.config(
{ ignores: ["dist", "coverage", "src/api/generated", "eslint.config.js"] },
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
reactHooks.configs.flat.recommended,
{
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2023,
globals: globals.browser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname
}
},
rules: {
"max-lines": ["error", { "max": 350, "skipBlankLines": true, "skipComments": true }],
"max-lines-per-function": ["error", { "max": 100, "skipBlankLines": true, "skipComments": true }],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-floating-promises": "error"
}
},
{
files: ["**/*.test.{ts,tsx}"],
languageOptions: { globals: globals.node }
}
);