Skip to content

Commit e470aae

Browse files
authored
Update .editorconfig and bump dev dependencies (#1833)
* Update .editorconfig and bump dev dependencies Rework .editorconfig ordering and add file-specific rules for minified files, SVGs and CNAME; enable insert_final_newline and trim_trailing_whitespace by default. Update package.json and package-lock.json (including website/) to bump numerous dev dependencies and transitive packages — notable bumps include Jest (30.2.0 → 30.3.0), many @babel packages (to 7.28.x/7.29.x), @sinonjs/fake-timers, @emnapi, and @sinclair/typebox. These are routine minor/patch updates to address bugs, security notices and keep the toolchain current. * Update AGENTS.md
1 parent 563c82d commit e470aae

File tree

10 files changed

+696
-812
lines changed

10 files changed

+696
-812
lines changed

.cursor/rules/general.mdc

Lines changed: 0 additions & 23 deletions
This file was deleted.

.editorconfig

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# EditorConfig helps developers define and maintain consistent
2-
# coding styles between different editors and IDEs
3-
# editorconfig.org
1+
# https://editorconfig.org
42

53
root = true
64

7-
# Apply for all files
85
[*]
96
charset = utf-8
10-
indent_style = space
11-
indent_size = 2
127
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
1310
insert_final_newline = true
1411
trim_trailing_whitespace = true
1512

16-
# Apply for markdown files
17-
[*.md]
13+
[*.min.*]
14+
insert_final_newline = false
15+
16+
[*.svg]
17+
insert_final_newline = false
1818

19-
max_line_length = off
20-
trim_trailing_whitespace = false
19+
[CNAME]
20+
insert_final_newline = false

.gemini/config.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/AGENTS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Agents
2+
3+
<!-- https://agents.md -->
4+
5+
## GitHub Actions
6+
7+
- The GitHub Actions workflows should be placed in the .github/workflows directory.
8+
- The workflows should be named `<workflow-name>.yml`.
9+
- All GitHub Actions should be pinned versions to avoid breaking changes (SHA-1).
10+
- If using actions/checkout, it should have `persist-credentials: false` set.
11+
12+
## Dependabot
13+
14+
- GitHub Actions updates should be grouped and updated monthly.
15+
- npm packages should be grouped and updated monthly.
16+
- Dependabot config should be formatted with Prettier.

.github/copilot-instructions.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

AGENTS.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
22

33
<!-- https://agents.md -->
44

5+
## General
6+
7+
- This project is for HTMLHint, a static code analysis tool for HTML.
8+
- All code and comments should be in US English.
9+
- The website is built with Astro Starlight.
10+
- All code should be formatted with Prettier.
11+
- Use ESLint to check for JavaScript errors.
12+
- Rollup is used for building the project.
13+
- Node.js 20 or newer is required; Volta pins the repo to Node 20 LTS in `package.json`.
14+
- Core code is in TypeScript v5.4.5.
15+
- All new rules for HTMLHint should be placed in the rules directory.
16+
- Tests for new rules should be added in rules and follow the naming pattern `<rule-name>.spec.js`.
17+
- Do not use deprecated TypeScript features.
18+
- All user-facing messages and documentation should use clear, concise US English.
19+
- Keep dependencies up to date and avoid unnecessary packages.
20+
- All website content should be placed in the website directory and follow Astro Starlight conventions.
21+
- Rules in the rules directory should always be documented in the website/src/content/docs/rules directory.
22+
- Rules in src/core/core.ts should be listed alphabetically.
23+
- Use the provided code snippets as examples for rule documentation.
24+
- Newly added rules pages for the website should have the frontmatter: sidebar: hidden: true badge: New
25+
- Always run `npm run build` before running tests or committing changes.
26+
- When adding a new rule to website ensure that it has the frontmatter: `pagefind: false sidebar: badge: New hidden: true`.
27+
- Always run `npm run lint` before declaring that a task is complete (if you've changed any files).
28+
- Always use lf for line endings.
29+
- As a general rule, rules should be listed alphabetically.
30+
531
## Markdown Code Guide
632

733
- Markdown should be formatted with Prettier.
@@ -13,23 +39,11 @@
1339
- YML files should begin with --- on the first line.
1440
- YML should be formatted with Prettier.
1541

16-
## Communication (MANDATORY)
17-
18-
- No apologies - State facts and solutions directly.
19-
- Concise style - Professional, avoid repetition and filler.
20-
- Single chunk edits - All file edits in one operation.
21-
- Real file links only - No placeholder files.
22-
- No unnecessary confirmations - Use available context.
23-
24-
## Quality & Validation (MANDATORY)
42+
## GitHub Commit Messages
2543

26-
- Never assume commands worked without verification.
27-
- 98%+ confidence threshold for definitive claims.
28-
- Immediate re-investigation when findings don't match expectations.
29-
- Cross-tool validation when tools fail.
44+
- If multiple changes are made then list changes using bullet points.
3045

31-
## Code Standards (MANDATORY)
46+
## Documentation
3247

33-
- No emojis in code or documentation.
34-
- Only implement what's requested.
35-
- Preserve existing structures - Don't remove unrelated code.
48+
- All documentation should be written in US English.
49+
- For the 'Why this rule is important' section, always include a link to the relevant documentation and prefer MDN and Google documentation along with official documentation from the W3C.

0 commit comments

Comments
 (0)