File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ # AI Agent Rules
2+
3+ When working in a specific directory, apply the rules from that directory and all parent directories up to the root.
4+
5+ ## While working on ` . `
6+
7+ * Source: ` AGENTS.md ` *
8+
191 . Write performant code. Always prefer performance over other things.
2102 . Write comments and documentations in English.
3113 . Do not use unstable, nightly only features of rustc.
6146 . When instructed to fix tests, do not remove or modify existing tests.
7157 . Write documentation for your code.
8168 . Run ` cargo fmt --all ` before commiting files.
17+
18+
19+ ---
20+
21+ ## While working on ` crates/swc_ecma_minifier `
22+
23+ * Source: ` crates/swc_ecma_minifier/AGENTS.md ` *
24+
25+ 1 . You can run execution tests by doing ` ./scripts/exec.sh ` to see if your changes are working.
26+ 2 . If an execution test fails, you are wrong.
27+ 3 . Always run execution tests after making changes.
28+ 4 . You can run fixture tests by doing ` ./scripts/test.sh ` , and you can do ` UPDATE=1 ./scripts/test.sh ` to update fixtures.
You can’t perform that action at this time.
0 commit comments