Files
zeekay 1b367e2b62 chore: rebase the tree onto upstream master
The tree was a debranded snapshot of upstream taken around 2026-02-20, and
upstream has moved about five months since. This replaces it with upstream
master, mechanically re-derived: bin/debrand does the rename, and the
pipeline and squashed migrations are restored from the shipped tree.

Not a merge. The previous import replaced the tree wholesale in a single
commit, so there is no shared content history to merge against. Reproducing
the rename on the new tree is what actually converges.

What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints,
compose files, LLM.md, and insights/migrations. The squashed initial
migration is load-bearing — the live database records it by name, so
upstream's ~918 individual migrations cannot come back.

Nine products are dropped as unreferenced. Twenty-one more that we do not run
are kept anyway because the core app still imports them; unpicking those is a
refactor and does not belong in a rebase.

This base does not build yet, and the reasons are not in the rename:
upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against
our 4.2, and the dependency manifests still name upstream packages that we
republish under our own names. Those are decisions, not renames.
2026-08-01 15:44:40 -07:00

131 lines
5.0 KiB
JavaScript

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json'],
},
plugins: ['@typescript-eslint', 'no-only-tests'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@eslint-community/eslint-comments/recommended',
'prettier',
],
ignorePatterns: [
'bin',
'dist',
'node_modules',
'src/common/config/idl',
// Standalone package with its own oxlint config; not part of the plugin-server eslint pass.
'src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub-sidecar',
'**/dev/**',
],
rules: {
'no-restricted-syntax': [
'error',
{
selector: 'CallExpression[callee.object.name="JSON"][callee.property.name="parse"]',
message: 'Use parseJSON from src/common/utils/json-parse instead of JSON.parse for better performance',
},
],
'no-only-tests/no-only-tests': 'error',
'no-constant-binary-expression': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'require-await': 'off',
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
'@typescript-eslint/no-empty-object-type': ['error', { allowInterfaces: 'with-single-extends' }],
curly: 'error',
'no-fallthrough': 'warn',
'no-restricted-globals': [
'error',
{
name: 'fetch',
message: 'Use the request util from ~/common/utils/request instead of the global fetch',
},
],
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'node-fetch',
message: 'Use the request util from ~/common/utils/request instead of node-fetch',
},
{
name: 'undici',
message: 'Use the request util from ~/common/utils/request instead of undici',
},
],
patterns: [
{
group: ['fetch'],
message: 'Use the request util from ~/common/utils/request instead of importing fetch directly',
},
],
},
],
},
overrides: [
{
files: ['**/tests/**/*.ts', 'src/celery/**/*.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
},
},
{
// Ingestion is standardized on the ~/ alias. Ban parent-relative
// (../) imports so the structure stays codemod-friendly through future moves; keep ./ siblings.
// Overrides replace rule options, so the global fetch/node-fetch/undici bans are repeated here.
files: ['src/ingestion/**/*.ts'],
rules: {
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'node-fetch',
message: 'Use the request util from ~/common/utils/request instead of node-fetch',
},
{
name: 'undici',
message: 'Use the request util from ~/common/utils/request instead of undici',
},
],
patterns: [
{
group: ['fetch'],
message:
'Use the request util from ~/common/utils/request instead of importing fetch directly',
},
{
group: ['../*', '../**'],
message:
'Within src/ingestion, import via the ~/ alias instead of parent-relative (../) paths.',
},
],
},
],
},
},
],
root: true,
reportUnusedDisableDirectives: true,
}