Files
sencho/backend/eslint.config.mjs
Anso e5b1c7b22b refactor(backend): collapse entitlement provider abstraction back to LicenseService (#889)
Removes backend/src/entitlements/ (registry, loadProvider,
CommunityEntitlementProvider, types, headers, normalize) and the two
abstraction-only tests. Relocates headers/normalize/types to
services/license-*.ts. Swaps 22 consumer call sites from
getEntitlementProvider() to LicenseService.getInstance(). Drops the
Dockerfile install step plus PRO_PACKAGE_VERSION build-arg and
github_token BuildKit secret in docker-publish.yml. Removes the now
stale no-restricted-imports rule in backend/eslint.config.mjs.

Net: 37 files changed, ~700 lines removed, no behavior change. Local
dev no longer requires GitHub Packages auth to start the backend.

Rationale and revisit conditions in
docs/internal/adrs/2026-05-02-collapse-entitlement-provider.md.
2026-05-02 23:45:44 -04:00

31 lines
1.1 KiB
JavaScript

import js from '@eslint/js'
import tseslint from 'typescript-eslint'
export default tseslint.config(
{ ignores: ['dist'] },
{
files: ['src/**/*.ts'],
extends: [js.configs.recommended, ...tseslint.configs.recommended],
languageOptions: { ecmaVersion: 2022 },
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
// Allow unused catch-clause vars (catch (error) { ... }) and _-prefixed intentional ignores
'@typescript-eslint/no-unused-vars': ['error', {
caughtErrors: 'none',
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
}],
// Pre-existing patterns - warn rather than error until addressed
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-namespace': 'warn',
'no-empty': 'warn',
// Terminal output processing intentionally uses control characters in regexes
'no-control-regex': 'off',
'no-console': 'off',
// New in ESLint 10 recommended - existing patterns, suppress until addressed
'no-useless-assignment': 'warn',
'preserve-caught-error': 'warn',
},
},
)