Skip to content

Commit 3bfb19b

Browse files
committed
Refactor config files and update documentation for {{name}}
Migrated JSON config files to .cjs format for ESLint, Prettier, Stylelint, Jest, and npm-package-json-lint. Updated documentation and templates to use the {{name}} variable instead of {{projectName}}. Enhanced GitHub Actions workflow with a security audit job. Improved pre-commit hook to include npm audit. Added new documentation files and reorganized docs for clarity. Updated references and dynamic links across markdown files. Removed deprecated JSON config files.
1 parent d706efd commit 3bfb19b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+7199
-979
lines changed

.eslint.config.cjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
extends: [ '@wordpress/eslint-plugin/recommended' ],
3+
env: {
4+
browser: true,
5+
es6: true,
6+
node: true,
7+
jquery: true,
8+
},
9+
globals: {
10+
wp: 'readonly',
11+
wpApiSettings: 'readonly',
12+
ajaxurl: 'readonly',
13+
},
14+
rules: {
15+
'no-console': 'warn',
16+
'no-debugger': 'error',
17+
},
18+
overrides: [
19+
{
20+
files: [ '*.test.js', '*.spec.js' ],
21+
env: {
22+
jest: true,
23+
},
24+
},
25+
],
26+
};

.github/agents/agent.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ This file documents the primary automation agent(s) for this repository, their p
1212
- [Global AI Rules (AGENTS.md)](../../AGENTS.md) — org-wide agent rules, coding standards, and cross-references
1313
- [WP Block Build Agent Spec](./wp-block-build.agent.md) — detailed build agent spec for single block plugin
1414

15+
**Dynamic References:**
16+
17+
- All instruction files: [`*.instructions.md`](../instructions/)
18+
- All agent files: [`*.agent.md`](../agents/) and [`*.agent.js`](../agents/) (current directory)
19+
- All prompt files: [`*.prompt.md`](../prompts/)
20+
- All chatmode files: [`*.md`](../chatmodes/)
21+
1522
---
1623

1724
## Primary Agents

0 commit comments

Comments
 (0)