{
"rules": [
{
"id": "js-best-practices",
"description": "Enforce consistent coding style and best practices.",
"severity": "warning",
"options": {
"camelCase": true,
"useConstLet": true,
"requireJSDoc": true,
"noUnusedVars": true,
"noImplicitAny": true
}
},
{
"id": "error-handling",
"description": "Ensure proper error handling in asynchronous functions.",
"severity": "error",
"options": {
"logErrors": true,
"catchAsyncErrors": true
}
},
{
"id": "dom-manipulation",
"description": "Check for existence of DOM elements before manipulation.",
"severity": "error",
"options": {
"useQuerySelector": true,
"checkElementExistence": true
}
},
{
"id": "performance",
"description": "Encourage performance best practices.",
"severity": "warning",
"options": {
"noSyncXHR": true,
"useRequestAnimationFrame": true,
"optimizeLoops": true
}
},
{
"id": "security",
"description": "Ensure user input is sanitized.",
"severity": "error",
"options": {
"sanitizeInput": true,
"validateInput": true
}
},
{
"id": "code-complexity",
"description": "Set maximum cyclomatic complexity.",
"severity": "warning",
"options": {
"maxComplexity": 10
}
},
{
"id": "testing",
"description": "Require unit tests for functions.",
"severity": "error",
"options": {
"requireUnitTests": true,
"coverageThreshold": 80
}
},
{
"id": "chrome-extension",
"description": "Specific rules for Chrome extension development.",
"severity": "warning",
"options": {
"useManifestV3": true,
"avoidInlineScripts": true
}
}
]
} css
html
javascript
First Time Repository
LinkedIn Contact Scrapper and push to HubSpot
JavaScript
Languages:
CSS: 2.5KB
HTML: 5.1KB
JavaScript: 19.2KB
Created: 3/2/2024
Updated: 1/20/2025
All Repositories (1)
LinkedIn Contact Scrapper and push to HubSpot