14.64K
total weekly downloads
49 packages
@brutalway/agent-hook
Claude Code PostToolUse hook: lints each file the agent edits with oxlint, runs alint and check-tree when a file is created, and sends the errors back to the agent.
@brutalway/alint-config
alint rules for a repository: category folders hold only their kind, every dependency is pinned (only devDependencies for a published library), doc links and anchors resolve.
@brutalway/check-doc-length
Fails when a Markdown file gets too long, and splits it into a folder along its headings, rewriting the links that point into it.
@brutalway/check-doc-links
Fails when a Markdown doc links to a page that no longer exists, and skips the check when the machine is offline.
@brutalway/check-doc-sources
Warns when a file cited by a Markdown doc changed and the doc did not, so the doc gets read again before it says something false.
@brutalway/check-tree
Checks a source tree: only the folders the layout names, no empty folder, no category folder holding a single child, stylesheets grouped in styles/, no file of a slice of shared/ used by a single feature, no slice whose files never import each other.
@brutalway/dependency-cruiser-config
dependency-cruiser rules for a layered app: app, features, states and shared, with pure presenters and stores in their folder.
@brutalway/eslint-plugin-file-named-after-export
Lint rule for oxlint and ESLint: a file with a single export is named after it.
@brutalway/eslint-plugin-store-layout
Lint rule for oxlint and ESLint: xStore.ts only exports xStore and xActions.
@brutalway/lint-utils
Helpers shared by the @brutalway lint configs and plugins: export listing, file base name, oxlint rule and fixture testers, oklab colors and color token reading.
@brutalway/oxlint-config-fastify
Oxlint config for Fastify APIs with Zod: env read in one place, dependencies passed to factories, async handlers that return, Zod schemas in XSchemas.ts, no route in a shared/.
@brutalway/oxlint-config-i18next
Oxlint config for a React app translated with i18next: no visible text in JSX, in aria-label, aria-description, placeholder, title or alt, nor in a template literal.
@brutalway/oxlint-config-next
Oxlint preset for Next.js App Router apps: the nextjs rules of oxlint, the client and server boundary, route files, built on @brutalway/oxlint-config-react, @brutalway/oxlint-config-zustand and @brutalway/oxlint-config-vitest.
@brutalway/oxlint-config-node
Oxlint config for Node code in TypeScript: the TypeScript base, the #src/ alias instead of relative imports, fetch only in xClient.ts files.
@brutalway/oxlint-config-node-test
Oxlint config for node:test suites: it() inside describe(), both from node:test, and node:assert/strict.
@brutalway/oxlint-config-react
Oxlint config for React with TypeScript: hooks rules and named XProps types for components.
@brutalway/oxlint-config-react-hook-form
Oxlint config for react-hook-form: every useForm validates through zodResolver, and no validation is passed to register or a Controller.
@brutalway/oxlint-config-react-native
Oxlint preset for React Native and Expo apps: styles from the theme only, no inline style, the rules of eslint-plugin-react-native, Expo Router route files and Jest, built on @brutalway/oxlint-config-react and @brutalway/oxlint-config-zustand.
@brutalway/oxlint-config-react-vite
Oxlint preset for React + Vite + zustand + Vitest apps, built on @brutalway/oxlint-config-react, @brutalway/oxlint-config-zustand and @brutalway/oxlint-config-vitest.
@brutalway/oxlint-config-shadcn
Oxlint config for an app built on shadcn/ui primitives vendored in third-party/shadcn/: no raw button, input, select or textarea, and one icon library.
@brutalway/oxlint-config-tailwind
Oxlint config for Tailwind CSS v4: colors only from the @theme tokens, font roles on headings and code, no dark: variant.
@brutalway/oxlint-config-tanstack-query
Oxlint config for TanStack Query: query keys from an xKeys factory, cache windows from named profiles, plus exhaustive-deps and stable-query-client from @tanstack/eslint-plugin-query.
@brutalway/oxlint-config-typescript
Oxlint config for TypeScript projects: no comments, no barrel files, files named after their export, types and constants in dedicated files.
@brutalway/oxlint-config-vitest
Oxlint config for Vitest tests: it() inside describe, test() outside, typed mocks, explicit expectations.
@brutalway/oxlint-config-zustand
Oxlint config for zustand stores: xStore.ts only exports xStore and xActions.