Skip to content
Myr

Merge lint/ignore-config-folder into main

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by oscabriel · committed by oscabriel · parents 87cbd15, daf9063 · Browse files · 3 files+26 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+26 added−1 removed

  • tests:+15 added−0 removed
  • other:+11 added−1 removed

3 files+26 added−1 removed

modified:packages/brand/src/leaks.ts+8 added-1 removed
modified:packages/brand/test/leaks.test.ts+15 added
74 unmodified lines
7576 expect(findLeaks([{ content, path }])).toStrictEqual([]);77 });7879 it("allows this repo's own config folder, at its root alone", () => {80 const content = `import { project } from "${Brand.cliPackage}/rules";`;8182 expect(83 findLeaks([84 { content, path: `${Brand.configDir}/project.ts` },85 { content, path: `${Brand.configDir}/asks/a.ask.ts` },86 { content, path: `apps/cli/${Brand.configDir}/project.ts` },87 ]).map((leak) => [leak.path, leak.line])88 ).toStrictEqual([89 [`apps/cli/${Brand.configDir}/project.ts`, 0],90 [`apps/cli/${Brand.configDir}/project.ts`, 1],91 ]);92 });9394 it("allows the config folder of an example's layer, at the layer repo's root", () => {95 const content = `import { layerManifest } from "${Brand.npmScope}/cli/rules";`;9697 expect(
65 unmodified lines
modified:oxlint.config.ts+3 added
1import { Brand } from "@repo/brand";2import { defineConfig } from "oxlint";3import core from "ultracite/oxlint/core";4import react from "ultracite/oxlint/react";5import tanstack from "ultracite/oxlint/tanstack";
10 unmodified lines
16 ".codex/**",17 "tools/oxlint/anti-slop/**",18 "**/worker-configuration.d.ts",19 "examples/**",20 // Imports the published rules package, which this repo never installs; the platform checks it.21 `${Brand.configDir}/**`,22 "apps/web/src/components/ui/**",23 "apps/web/src/routeTree.gen.ts",24 ],25 jsPlugins: [
116 unmodified lines