Fix code quality violations and rename select input components
Move small tasks from wishlist to todo, update npm packages Replace #[Auth] attributes with manual auth checks and code quality rule Remove on_jqhtml_ready lifecycle method from framework Complete ACL system with 100-based role indexing and /dev/acl tester WIP: ACL system implementation with debug instrumentation Convert rsx:check JS linting to RPC socket server Clean up docs and fix $id→$sid in man pages, remove SSR/FPC feature Reorganize wishlists: priority order, mark sublayouts complete, add email Update model_fetch docs: mark MVP complete, fix enum docs, reorganize Comprehensive documentation overhaul: clarity, compression, and critical rules Convert Contacts/Projects CRUD to Model.fetch() and add fetch_or_null() Add JS ORM relationship lazy-loading and fetch array handling Add JS ORM relationship fetching and CRUD documentation Fix ORM hydration and add IDE resolution for Base_* model stubs Rename Json_Tree_Component to JS_Tree_Debug_Component and move to framework Enhance JS ORM infrastructure and add Json_Tree class name badges 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* JavaScript Syntax Linter for Code Quality Checks
|
||||
*
|
||||
* 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
|
||||
* 1 - Syntax error found
|
||||
*/
|
||||
|
||||
const fs = require('fs');
|
||||
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];
|
||||
|
||||
if (!inputFile) {
|
||||
console.error('Usage: node js-linter.js <input-file>');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
try {
|
||||
const code = fs.readFileSync(inputFile, 'utf8');
|
||||
|
||||
// Parse the code to check for syntax errors
|
||||
// Babel parser supports decorators natively
|
||||
babelParser.parse(code, {
|
||||
sourceType: 'module',
|
||||
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);
|
||||
if (error.loc) {
|
||||
console.error('Line: ' + error.loc.line);
|
||||
console.error('Column: ' + error.loc.column);
|
||||
}
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user