- Add package.json with ESLint configuration for JS code quality checks - Configure ESLint with browser environment and ES2021 features - Add npm install and lint steps to CI workflow - Fix unused parameter warnings in ideogram4_prompt_builder_enhanced.js and utility.js - Update .gitignore to exclude node_modules, Python cache, and build artifacts Co-authored-by: Cursor Agent <cursoragent@cursor.com>
42 lines
997 B
JSON
42 lines
997 B
JSON
{
|
|
"name": "comfyui-byae-ideogramtools",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "ComfyUI custom node for Ideogram 4 prompt building",
|
|
"scripts": {
|
|
"lint": "eslint web/js/*.js"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.57.0"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
"no-undef": "error",
|
|
"no-constant-condition": "warn"
|
|
},
|
|
"globals": {
|
|
"window": "readonly",
|
|
"console": "readonly",
|
|
"document": "readonly",
|
|
"navigator": "readonly",
|
|
"alert": "readonly",
|
|
"Image": "readonly",
|
|
"requestAnimationFrame": "readonly",
|
|
"setTimeout": "readonly",
|
|
"clearTimeout": "readonly",
|
|
"WheelEvent": "readonly",
|
|
"AbortSignal": "readonly"
|
|
}
|
|
}
|
|
}
|