mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-18 13:50:50 +02:00
* perf: bound request work and resource usage * fix: address performance review regressions * fix: guard content expiration and dashboard state * fix: tolerate cache outages and retire derived paths * fix: revalidate expiration claims and status pagination * fix: retry interrupted repository metadata cleanup * fix: retire obsolete content cache storage * fix: activate tree metadata and recheck expiration claims * fix: fence cache publication across expiration * fix: recover staged trees and enforce cache lifecycle cleanup * fix: prune expired transforms during database outages * fix: finish conference removals and reload expiration candidates
62 lines
1.6 KiB
JavaScript
62 lines
1.6 KiB
JavaScript
import eslint from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
ignores: ["db_backups/", "esdata/", "repositories/", "build/", "public/", "gulpfile.js", "healthcheck.js", "opentelemetry.js"],
|
|
},
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
"no-empty": "warn",
|
|
},
|
|
},
|
|
{
|
|
files: ["test/**/*.js"],
|
|
languageOptions: {
|
|
sourceType: "commonjs",
|
|
globals: {
|
|
describe: "readonly",
|
|
it: "readonly",
|
|
before: "readonly",
|
|
after: "readonly",
|
|
beforeEach: "readonly",
|
|
afterEach: "readonly",
|
|
__dirname: "readonly",
|
|
console: "readonly",
|
|
Buffer: "readonly",
|
|
process: "readonly",
|
|
AbortController: "readonly",
|
|
},
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
"no-redeclare": ["error", { builtinGlobals: false }],
|
|
},
|
|
},
|
|
{
|
|
files: ["scripts/**/*.js"],
|
|
languageOptions: {
|
|
sourceType: "commonjs",
|
|
globals: {
|
|
require: "readonly",
|
|
module: "readonly",
|
|
process: "readonly",
|
|
__dirname: "readonly",
|
|
__filename: "readonly",
|
|
console: "readonly",
|
|
Buffer: "readonly",
|
|
URL: "readonly",
|
|
},
|
|
},
|
|
}
|
|
);
|