Skip to content

Commit 88be842

Browse files
committed
Adding 'docs', and a cursor rules file
1 parent 9a533e4 commit 88be842

3 files changed

Lines changed: 1246 additions & 0 deletions

File tree

.cursor/rules/javascript.mdc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
description: JavaScript module
3+
globs:
4+
alwaysApply: true
5+
---
6+
7+
- Use JSDoc standard for creating docblocks of functions and classes.
8+
- Always use camelCase for function names.
9+
- Always use upper-case snake_case for constants.
10+
- Create integration tests in 'tests/integration' that use node-assert, which run with mocha.
11+
- Create unit tests in 'tests/unit' that use node-assert, which run with mocha.
12+
- Use node.js community "Best Practices".
13+
- Adhere to DRY, KISS, YAGNI, & SOLID principles
14+
- Adhere to OWASP security guidance

0 commit comments

Comments
 (0)