Files
Line: 2: incorrect codeowner organization: goauthentik/backend Line: 2: incorrect codeowner organization: goauthentik/frontend Line: 2: no users/groups matched Line: 4: incorrect codeowner organization: goauthentik/backend Line: 4: no users/groups matched Line: 5: incorrect codeowner organization: goauthentik/backend Line: 5: no users/groups matched Line: 6: incorrect codeowner organization: goauthentik/backend Line: 6: no users/groups matched Line: 7: incorrect codeowner organization: goauthentik/backend Line: 7: no users/groups matched Line: 8: incorrect codeowner organization: goauthentik/backend Line: 8: no users/groups matched Line: 9: incorrect codeowner organization: goauthentik/backend Line: 9: no users/groups matched Line: 10: incorrect codeowner organization: goauthentik/backend Line: 10: no users/groups matched Line: 11: incorrect codeowner organization: goauthentik/backend Line: 11: no users/groups matched Line: 12: incorrect codeowner organization: goauthentik/backend Line: 12: no users/groups matched Line: 13: incorrect codeowner organization: goauthentik/backend Line: 13: no users/groups matched Line: 14: incorrect codeowner organization: goauthentik/backend Line: 14: no users/groups matched Line: 15: incorrect codeowner organization: goauthentik/backend Line: 15: no users/groups matched Line: 16: incorrect codeowner organization: goauthentik/backend Line: 16: no users/groups matched Line: 17: incorrect codeowner organization: goauthentik/backend Line: 17: no users/groups matched Line: 18: incorrect codeowner organization: goauthentik/backend Line: 18: no users/groups matched Line: 19: incorrect codeowner organization: goauthentik/backend Line: 19: no users/groups matched Line: 20: incorrect codeowner organization: goauthentik/backend Line: 20: no users/groups matched Line: 21: incorrect codeowner organization: goauthentik/backend Line: 21: no users/groups matched Line: 23: incorrect codeowner organization: goauthentik/infrastructure Line: 23: no users/groups matched Line: 24: incorrect codeowner organization: goauthentik/infrastructure Line: 24: no users/groups matched Line: 25: incorrect codeowner organization: goauthentik/infrastructure Line: 25: no users/groups matched Line: 26: incorrect codeowner organization: goauthentik/infrastructure Line: 26: no users/groups matched Line: 27: incorrect codeowner organization: goauthentik/infrastructure Line: 27: no users/groups matched Line: 28: incorrect codeowner organization: goauthentik/infrastructure Line: 28: no users/groups matched Line: 29: incorrect codeowner organization: goauthentik/infrastructure Line: 29: no users/groups matched Line: 31: incorrect codeowner organization: goauthentik/backend Line: 31: no users/groups matched Line: 32: incorrect codeowner organization: goauthentik/backend Line: 32: no users/groups matched Line: 33: incorrect codeowner organization: goauthentik/backend Line: 33: no users/groups matched Line: 34: incorrect codeowner organization: goauthentik/backend Line: 34: no users/groups matched Line: 35: incorrect codeowner organization: goauthentik/backend Line: 35: no users/groups matched Line: 37: incorrect codeowner organization: goauthentik/frontend Line: 37: no users/groups matched Line: 38: incorrect codeowner organization: goauthentik/frontend Line: 38: no users/groups matched Line: 39: incorrect codeowner organization: goauthentik/frontend Line: 39: no users/groups matched Line: 40: incorrect codeowner organization: goauthentik/frontend Line: 40: no users/groups matched Line: 41: incorrect codeowner organization: goauthentik/frontend Line: 41: no users/groups matched Line: 42: incorrect codeowner organization: goauthentik/frontend Line: 42: no users/groups matched Line: 43: incorrect codeowner organization: goauthentik/frontend Line: 43: no users/groups matched Line: 44: incorrect codeowner organization: goauthentik/frontend Line: 44: no users/groups matched Line: 45: incorrect codeowner organization: goauthentik/frontend Line: 45: no users/groups matched Line: 46: incorrect codeowner organization: goauthentik/frontend Line: 46: no users/groups matched Line: 47: incorrect codeowner organization: goauthentik/frontend Line: 47: no users/groups matched Line: 48: incorrect codeowner organization: goauthentik/frontend Line: 48: no users/groups matched Line: 49: incorrect codeowner organization: goauthentik/frontend Line: 49: no users/groups matched Line: 50: incorrect codeowner organization: goauthentik/frontend Line: 50: no users/groups matched Line: 51: incorrect codeowner organization: goauthentik/frontend Line: 51: no users/groups matched Line: 52: incorrect codeowner organization: goauthentik/frontend Line: 52: no users/groups matched Line: 54: incorrect codeowner organization: goauthentik/frontend Line: 54: no users/groups matched Line: 56: incorrect codeowner organization: goauthentik/backend Line: 56: incorrect codeowner organization: goauthentik/frontend Line: 56: no users/groups matched Line: 57: incorrect codeowner organization: goauthentik/frontend Line: 57: incorrect codeowner organization: goauthentik/docs Line: 57: no users/groups matched Line: 58: incorrect codeowner organization: goauthentik/backend Line: 58: incorrect codeowner organization: goauthentik/frontend Line: 58: no users/groups matched Line: 60: incorrect codeowner organization: goauthentik/docs Line: 60: no users/groups matched Line: 61: incorrect codeowner organization: goauthentik/docs Line: 61: no users/groups matched Line: 63: incorrect codeowner organization: goauthentik/security Line: 63: incorrect codeowner organization: goauthentik/docs Line: 63: no users/groups matched Line: 64: incorrect codeowner organization: goauthentik/security Line: 64: incorrect codeowner organization: goauthentik/docs Line: 64: no users/groups matched
Teffen Ellis 9c23cb9e45 web: swap eslint and prettier for oxlint and oxfmt (#26061)
* Flesh out Oxlint, Oxfmt

* Flesh out.

* web: finish oxlint/oxfmt activation

- Fix `oxlint.config.ts` to invoke `createOxlintConfig` (it was exporting the
  factory uninvoked, so nothing was linted); enable `lit` + `react`.
- Repair the lint scripts: `lint:fix` referenced a deleted `format` script;
  add `fix:oxfmt`; switch the strict `lint-check` from ESLint to oxlint.
- Drop the now-redundant ESLint/Prettier deps and the `@goauthentik/prettier-config`
  override; lit/wc linting now comes from oxlint via `@goauthentik/oxlint-config`.
- Move the `prettier --write` wireit steps to `oxfmt --write`.
- Remove the orphaned `eslint.config.mjs` and `prettier.config.mjs`.
- Regenerate `package-lock.json`.

* web: apply `oxlint --fix` autofixes

Mechanical autofixes across web/ from `oxlint --fix`: padding-lines blank lines,
object-shorthand, and unicorn's no-useless-spread / prefer-string-starts-ends-with.
Clears 1170 of the 1184 baseline findings; the remaining ~14 need manual attention.

* web: resolve remaining oxlint findings

The ~14 findings `oxlint --fix` could not auto-fix:

- Prefix unused positional params with `_` (9 callbacks/methods).
- Name the empty Playwright fixtures param `_` instead of `{}` (no-empty-pattern).
- Make a stray trailing comment a leading comment so padding-lines is satisfied.
- Disable unicorn/no-thenable on `Route.then()` — an intentional fluent builder.
- Delete two dead, fully-commented, unimported files (no-empty-file).
- Fix a malformed `apple.d.ts` ambient declaration (invalid destructuring-as-type
  and an `async` modifier) that oxlint's parser rejected.

`oxlint --max-warnings=0` now exits clean.

* web: complete prettier removal and sync pnpm lockfiles

Swaps the `@goauthentik/prettier-config-dev` optional dependency for the
oxlint/oxfmt equivalents that web/oxlint.config.ts and web/oxfmt.config.ts
import, and drops the top-level `prettier` key pointing at the deleted
prettier.config.mjs.

Replaces the upstream package-lock.json regeneration, which no longer
applies now that the repo is pnpm-only.

* root, web: drop the last eslint and prettier references

Points the `locales:repair` and `precommit` wireit steps at oxfmt, and
removes the root `prettier` config key and `eslint` dependency now that
nothing consumes them.

* build: bump oxfmt to 0.68.0 and stop greedy JSDoc re-wrapping

oxfmt's JSDoc formatter re-wraps every description by default, and in doing
so deletes the space between an inline code span and the adjacent word:
`\`::part(cell-{idx})\` remains` becomes `\`::part(cell-{idx})\`remains`.
Present in both 0.67.0 and 0.68.0.

`lineWrappingStyle: "balance"" keeps the original line breaks when they
already fit inside the print width, which avoids the re-wrap entirely for
all but a couple of comments.

* web: reformat with oxfmt

Mechanical reformat of web/ under the oxfmt config.

ak-select-table's doc block listed @element and @class ahead of its prose,
so the formatter read the whole body as the tag's description and indented
it under them. Moved the tags below the description, which is the
conventional JSDoc order and keeps the sections intact.

* web/oxlint-config: port the padding rules and a fixture harness

Expands `padding-lines` and adds the two rules that sit beside it, under the
existing `goauthentik/` plugin namespace:

- `padding-lines` — blank line before the statements that end a path or a step
  (`return`, `continue`, `break`, a bare `x++`), before block-like statements,
  and before TS interface/type/enum/module declarations. The old copy covered
  `return` and blocks only, and looked through an `export` wrapper, so
  `export interface Foo {}` was never padded.
- `console-padding` — blank line each side of a `console.*` call, with a run of
  consecutive calls treated as one group.
- `multiline-statement-padding` — blank line each side of a statement spanning
  lines.

All three share `padding-utils.ts`, which anchors every fix to the END of the
earlier statement. That keeps them composable: two rules wanting the same blank
line emit the identical edit, so one applies and the other is a no-op, instead
of each inserting a newline and leaving a gap of two.

Opt-in via `createOxlintConfig({ padding: true })`, and no workspace turns them
on, so this reformats nothing. On `web/` they would be 1217, 1816 and 58 fixes
respectively.

`scripts/verify-fixtures.mjs` asserts each rule fires in its violating fixture
and is silent in the clean one, that each autofix lands the violating fixture
exactly on its clean counterpart with a second pass changing nothing, and that
the rules stay off by default. Runs in CI as the `oxlint-fixtures` job.

`fixtures/` is excluded from this package's own oxlint and oxfmt runs, since
formatting them would insert the blank lines they exist to be missing.

* web: apply the padding rule autofixes

Fallout from enabling `console-padding` and `multiline-statement-padding`
on web via the new `padding` option.

* packages/oxlint-config: fix the misapplied oxfmt ignore

The cherry-picked patch targeted packages/oxlint-config/oxfmt.config.ts,
which does not exist on this branch, so git applied it to client-ts's
identical file — leaving it importing DefaultIgnorePatterns from
@goauthentik/oxfmt-config, which does not export it.

Restores client-ts's config and adds the intended one to oxlint-config,
sourcing DefaultIgnorePatterns from @goauthentik/oxlint-config.

* website: swap eslint and prettier for oxlint and oxfmt

Drops the five eslint configs and .prettierignore, adds the oxlint/oxfmt
configs, and reformats. DefaultIgnorePatterns is imported from
@goauthentik/oxlint-config, which is where it lives.

* packages: swap eslint and prettier for oxlint and oxfmt

Migrates docusaurus-config, esbuild-plugin-live-reload, geo, logger-js and
theme to the shared oxlint/oxfmt configs; fonts is asset-only so it gets
formatting alone. theme's CSS check moves from @eslint/css to stylelint,
matching web.

Deletes packages/eslint-config and packages/prettier-config — nothing
depends on them any more — and drops them from the npm publish matrix and
the three workspace manifests.

* root, web/sfe: drop the last prettier ignores and scripts

Removes the orphaned .prettierignore files and points sfe's formatting
scripts at oxfmt.

oxfmt honours .prettierignore, so web's and website's exclusions move into
their oxfmt configs — without them the minified vendored assets, the
generated locale-codes.ts and the pnpm manifests get reformatted.

* packages/oxfmt-config: export a createOxfmtConfig builder

Mirrors createOxlintConfig: takes ignorePatterns and an overrides escape
hatch, appending per-file overrides to the shared ones rather than
replacing them. Every consumer was hand-spreading authentikOxfmtConfig and
cross-importing DefaultIgnorePatterns from oxlint-config; that constant is
now exported here too.

Also sets capitalizeDescriptions: false. oxfmt capitalises the first letter
of every JSDoc description, which rewrote `authentik` to `Authentik` in
eight files — the product name is always lowercase.

* root, web, website, packages: make `lint` cover formatting everywhere

website ran oxlint only; it now checks formatting too, matching web and the
packages. The two config packages shipped an oxlint.config.ts with no script
to run it, and fonts had no aggregate script at all.

Declares npm-run-all in the eight manifests that call run-s, and restores
eslint-plugin-lit/wc in web — oxlint resolves jsPlugins relative to the
config, not to @goauthentik/oxlint-config, so web has to see them itself.

* Flesh out playwright reports.

* Fix alignment on smaller viewports.

* Reorder.

* Fix issues surrounding alignment, ARIA labels, mouse behavior, etc.

* Clean up nav tab alignment.

* Fix timing issue where license mixin does not consistently trigger updates.

* Remove unused.

* Fix warning.

* Fix config.

* Fix types.

* Clean up scripts.

* Format generated.

* Retire eslint and prettier from dependency tooling.

The dependabot `eslint` groups matched packages no longer in the tree.
Replace them with an `oxc` group for oxlint/oxfmt and a `lint` group for
what survived the swap: eslint-plugin-lit and eslint-plugin-wc, whose
rules oxlint loads through `jsPlugins`, plus stylelint, which picked up
CSS linting and had no group at all.

Cover packages/{fonts,geo,theme} in the NPM Packages block. All three are
workspace members with oxlint/oxfmt devDependencies, but no npm block
listed them, so dependabot was never updating them.

Drop the dead eslint/typescript-eslint catalog entries and the overrides
keyed on them, along with the prettier entries website/ still carried. No
manifest referenced any of them, and pnpm had recorded none of them in a
lockfile's `catalogs:` section. eslint itself stays in the tree as a
type-only peer of the two plugins.

* web: realign the user-switcher e2e locators, fix an invalid ARIA attribute

The navigation header rework renamed the switcher toggle's accessible name
from "Switch user" to "Toggle user navigation menu" and gave each account
entry an `aria-label` of `Switch to user "<display name>"`. Three locators
still targeted the old markup, across two fixtures and one test, which broke
the remember-me, passkey and user-switching specs.

The entry locator matches rendered text rather than the accessible name: the
new aria-label omits the email, which is what identifies an account under any
UserDisplay setting.

The menu also carried `aria-labelled`, which is not an ARIA attribute and so
named nothing. It is passed a string rather than an ID, so it wants
`aria-label`.
2026-09-16 08:37:34 +00:00

65 lines
3.6 KiB
Plaintext

# Fallback
* @goauthentik/backend @goauthentik/frontend
# Backend
/authentik/ @goauthentik/backend
/blueprints/ @goauthentik/backend
/src/ @goauthentik/backend
/cmd/ @goauthentik/backend
/internal/ @goauthentik/backend
/lifecycle/ @goauthentik/backend
/schemas/ @goauthentik/backend
/scripts/ @goauthentik/backend
/tests/ @goauthentik/backend
pyproject.toml @goauthentik/backend
uv.lock @goauthentik/backend
Cargo.toml @goauthentik/backend
Cargo.lock @goauthentik/backend
build.rs @goauthentik/backend
go.mod @goauthentik/backend
go.sum @goauthentik/backend
.cargo/ @goauthentik/backend
rust-toolchain.toml @goauthentik/backend
# Infrastructure
.github/ @goauthentik/infrastructure
/lifecycle/aws/ @goauthentik/infrastructure
/lifecycle/container/ @goauthentik/infrastructure
.dockerignore @goauthentik/infrastructure
Makefile @goauthentik/infrastructure
.editorconfig @goauthentik/infrastructure
CODEOWNERS @goauthentik/infrastructure
# Backend packages
/packages/ak-* @goauthentik/backend
/packages/client-rust @goauthentik/backend
/packages/django-channels-postgres @goauthentik/backend
/packages/django-postgres-cache @goauthentik/backend
/packages/django-dramatiq-postgres @goauthentik/backend
# Web packages
.npmrc @goauthentik/frontend
.nvmrc @goauthentik/frontend
tsconfig.json @goauthentik/frontend
package.json @goauthentik/frontend
package-lock.json @goauthentik/frontend
pnpm-lock.yaml @goauthentik/frontend
pnpm-workspace.yaml @goauthentik/frontend
/packages/client-ts @goauthentik/frontend
/packages/docusaurus-config @goauthentik/frontend
/packages/esbuild-plugin-live-reload @goauthentik/frontend
/packages/oxlint-config @goauthentik/frontend
/packages/oxfmt-config @goauthentik/frontend
/packages/fonts @goauthentik/frontend
/packages/logger-js @goauthentik/frontend
/packages/theme @goauthentik/frontend
/packages/tsconfig @goauthentik/frontend
# Web
/web/ @goauthentik/frontend
# Locale
/locale/ @goauthentik/backend @goauthentik/frontend
/locale/*/dictionaries @goauthentik/frontend @goauthentik/docs
/web/xliff/ @goauthentik/backend @goauthentik/frontend
# Docs
/website/ @goauthentik/docs
CODE_OF_CONDUCT.md @goauthentik/docs
# Security
SECURITY.md @goauthentik/security @goauthentik/docs
/website/security/ @goauthentik/security @goauthentik/docs