Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion template-biome/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

### Biome

- Run `{{ packageManager }} run lint` to lint your code
- Run `{{ packageManager }} run check` to lint your code
- Run `{{ packageManager }} run format` to format your code
8 changes: 4 additions & 4 deletions template-rslint/AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Tools

## Docs

- Rslint: https://rslint.rs/llms.txt

### Rslint

- Run `{{ packageManager }} run lint` to lint your code

## Docs

- Rslint: https://rslint.rs/llms.txt
63 changes: 62 additions & 1 deletion test/agents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ test('should generate AGENTS.md with single tool selected', async () => {

### Biome

- Run \`pnpm run lint\` to lint your code
- Run \`pnpm run check\` to lint your code
- Run \`pnpm run format\` to format your code

## Template Info
Expand All @@ -131,6 +131,67 @@ test('should generate AGENTS.md with single tool selected', async () => {
`);
});

test('should generate AGENTS.md with rslint tool selected', async () => {
const projectDir = path.join(testDir, 'rslint-tool');

await create({
name: 'test',
root: fixturesDir,
templates: ['vanilla'],
getTemplateName: async () => 'vanilla',
argv: [
'node',
'test',
'--dir',
projectDir,
'--template',
'vanilla',
'--tools',
'rslint',
],
});

const content = fs.readFileSync(path.join(projectDir, 'AGENTS.md'), 'utf-8');
expect(content).toMatchInlineSnapshot(`
"# Project Overview

This section provides common guidance for all templates.

## Development

### Common Development

- Common development instructions
- Available in all templates

## Tools

### Common Tools

- Tools that apply to all templates

### Rstest

- Run \`pnpm run test\` to test your code

### Rslint

- Run \`pnpm run lint\` to lint your code

## Template Info

### Vanilla Template

- This is vanilla template specific content
- Only available in vanilla template

## Docs

- Rslint: https://rslint.rs/llms.txt
"
`);
});

test('should generate AGENTS.md with eslint tool and template mapping', async () => {
const projectDir = path.join(testDir, 'eslint-tool');

Expand Down