Skip to content

Commit 6f3f65d

Browse files
committed
chore: remove .cursorrules and use .cursor/rules
1 parent 5f3d86d commit 6f3f65d

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

.cursorrules renamed to .cursor/rules/general.mdc

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: General Rules
3+
globs:
4+
---
15

26
## General
37

@@ -22,10 +26,7 @@
2226
## Code Style
2327

2428
- Use TypeScript.
25-
- Make sure the created files are ending with a new line at the end of the file.
2629
- File names should be in lowercase with dash separators.
27-
- Do not use specifiers for `fs` and `path` modules.
28-
- Do use `pathe` instead of `path` module for windows compatibility.
29-
- Test. 1) Use vitest for test cases, not jest. 2) Test cases should be in the same file as the code that is being tested. e.g. `foo.test.ts` for `foo.ts`. 3) Do use `test()` instead of `describe() + it()` for test cases.
30-
- Use `printWidth: 80, singleQuote: true, trailingComma: all, indent_style: space, indent_width: 2` for code formatting.
3130
- Api, commands and config in README.md should be ordered alphabetically.
31+
- Test. 1) Use vitest for test cases, not jest. 2) Test cases should be in the same file as the code that is being tested. e.g. `foo.test.ts` for `foo.ts`.
32+

.cursor/rules/test.mdc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
description: Rules for test files
3+
globs: *.test.ts, *.test.tsx, *.test.js, *.test.jsx
4+
---
5+
6+
# Your rule content
7+
8+
- Do use `test()` instead of `describe() + it()` for test cases.

.cursor/rules/typescript.mdc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
description: Rules for TypeScript files
3+
globs: *.ts, *.tsx, *.js, *.jsx
4+
---
5+
6+
# Your rule content
7+
8+
- Files are ending with a new line at the end of the file.
9+
- Do not use specifiers for `fs` and `path` modules.
10+
- Do use `pathe` instead of `path` module for windows compatibility.
11+
- Use `printWidth: 80, singleQuote: true, trailingComma: all, indent_style: space, indent_width: 2` for code formatting.

0 commit comments

Comments
 (0)