Fix code quality violations and enhance ROUTE-EXISTS-01 rule

Implement JQHTML function cache ID system and fix bundle compilation
Implement underscore prefix for system tables
Fix JS syntax linter to support decorators and grant exception to Task system
SPA: Update planning docs and wishlists with remaining features
SPA: Document Navigation API abandonment and future enhancements
Implement SPA browser integration with History API (Phase 1)
Convert contacts view page to SPA action
Convert clients pages to SPA actions and document conversion procedure
SPA: Merge GET parameters and update documentation
Implement SPA route URL generation in JavaScript and PHP
Implement SPA bootstrap controller architecture
Add SPA routing manual page (rsx:man spa)
Add SPA routing documentation to CLAUDE.md
Phase 4 Complete: Client-side SPA routing implementation
Update get_routes() consumers for unified route structure
Complete SPA Phase 3: PHP-side route type detection and is_spa flag
Restore unified routes structure and Manifest_Query class
Refactor route indexing and add SPA infrastructure
Phase 3 Complete: SPA route registration in manifest
Implement SPA Phase 2: Extract router code and test decorators
Rename Jqhtml_Component to Component and complete SPA foundation setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-19 17:48:15 +00:00
parent 77b4d10af8
commit 9ebcc359ae
4360 changed files with 37751 additions and 18578 deletions

View File

@@ -2,9 +2,10 @@
/**
* JavaScript Syntax Linter for Code Quality Checks
*
* This script checks JavaScript files for syntax errors using acorn parser.
*
*
* This script checks JavaScript files for syntax errors using Babel parser
* with support for decorators and modern JavaScript features.
*
* Usage: node js-linter.js <input-file>
* Exit codes:
* 0 - No syntax errors
@@ -12,7 +13,11 @@
*/
const fs = require('fs');
const acorn = require('acorn');
const path = require('path');
// Resolve to system/node_modules since that's where packages are installed
const systemDir = path.resolve(__dirname, '..');
const babelParser = require(path.join(systemDir, 'node_modules', '@babel', 'parser'));
// Get input file from command line arguments
const inputFile = process.argv[2];
@@ -24,21 +29,31 @@ if (!inputFile) {
try {
const code = fs.readFileSync(inputFile, 'utf8');
// Parse the code to check for syntax errors
acorn.parse(code, {
ecmaVersion: 'latest',
// Babel parser supports decorators natively
babelParser.parse(code, {
sourceType: 'module',
allowReturnOutsideFunction: true,
allowImportExportEverywhere: true,
allowAwaitOutsideFunction: true,
allowSuperOutsideMethod: true,
allowHashBang: true
plugins: [
'decorators-legacy', // Support for @decorator syntax
'classProperties',
'classPrivateProperties',
'classPrivateMethods',
'optionalChaining',
'nullishCoalescingOperator',
'asyncGenerators',
'bigInt',
'dynamicImport',
'exportDefaultFrom',
'exportNamespaceFrom',
'objectRestSpread',
'topLevelAwait'
]
});
// Silent success - no output when no errors
process.exit(0);
} catch (error) {
// Output error information
console.error('Syntax error: ' + error.message);