Files
wehub-resource-sync e904b667c6
Build/Publish Develop Docs / deploy (push) Failing after 1s
PaddleOCR Code Style Check / check-code-style (push) Failing after 1s
PaddleOCR PR Tests GPU / detect-changes (push) Failing after 1s
PaddleOCR PR Tests / detect-changes (push) Failing after 1s
PaddleOCR PR Tests GPU / test-pr-gpu (push) Has been cancelled
PaddleOCR PR Tests / test-pr (push) Has been cancelled
PaddleOCR PR Tests GPU / test-pr-gpu-impl (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.13) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.8) (push) Has been cancelled
PaddleOCR PR Tests / test-pr-python (3.9) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:59:26 +08:00

50 lines
1.5 KiB
JavaScript

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import globals from "globals";
export default tseslint.config(
{
ignores: ["**/dist", "**/node_modules", "**/coverage", "**/.cache"]
},
eslint.configs.recommended,
{
files: ["packages/**/src/**/*.ts", "apps/**/src/**/*.ts"],
extends: [...tseslint.configs.strictTypeChecked],
languageOptions: {
globals: { ...globals.browser },
parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: import.meta.dirname
}
}
},
{
files: ["packages/**/test/**/*.ts"],
extends: [...tseslint.configs.recommendedTypeChecked],
languageOptions: {
globals: { ...globals.browser },
parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: import.meta.dirname
}
},
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/unbound-method": "off"
}
},
{
files: ["apps/**/*.js", "*.config.{js,ts}", "packages/**/*.config.*"],
languageOptions: {
globals: { ...globals.browser, ...globals.node }
}
}
);