diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..a633830 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,22 @@ +{ + "root": true, + "env": { "node": true, "es2022": true }, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2022, + "sourceType": "module", + "project": "./tsconfig.json" + }, + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended" + ], + "ignorePatterns": ["out/", "dist/", "*.js", "node_modules/"], + "rules": { + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }], + "@typescript-eslint/no-var-requires": "off", + "no-empty": ["error", { "allowEmptyCatch": true }] + } +} \ No newline at end of file diff --git a/.hermes_pr_pipeline_update.js b/.hermes_pr_pipeline_update.js new file mode 100644 index 0000000..b2c5fa7 --- /dev/null +++ b/.hermes_pr_pipeline_update.js @@ -0,0 +1,16 @@ +const fs = require('fs'); +const path = 'C:/Users/home/AppData/Local/hermes/cron/output/pr_pipeline.json'; +const pipeline = JSON.parse(fs.readFileSync(path, 'utf8')); +const data = { + status: 'OPEN', + contributors: ['dev-engineer'], + created_at: new Date().toISOString(), + lastUpdated: new Date().toISOString(), + url: 'https://github.com/Coding-Dev-Tools/vscode-schemaforge/pull/4', + branch: 'improve/vscode-schemaforge-20260625043939', + pr_number: 4 +}; +pipeline.repos['vscode-schemaforge'] = data; +pipeline.updated_at = new Date().toISOString(); +fs.writeFileSync(path, JSON.stringify(pipeline, null, 2)); +console.log('PR pipeline updated'); diff --git a/README.md b/README.md index 7edb8dd..ed7ed34 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ If the CLI is installed at a custom path, set it in VS Code settings (see [Confi | Setting | Default | Description | |---------|---------|-------------| | `schemaforge.cliPath` | `schemaforge` | Path to the `schemaforge` CLI executable. Set this if the CLI is not on your PATH or you use a specific version. | -| `schemaforge.defaultTargetFormat` | `sql` | Default target format for Quick Convert. Options: `sql`, `prisma`, `django`, `typeorm`, `sqlalchemy`, `alembic`, `jsonschema`, `graphql`, `efcore`, `scala`. | +| `schemaforge.defaultTargetFormat` | `sql` | Default target format for Quick Convert. Options: `sql`, `prisma`, `django`, `drizzle`, `typeorm`, `sqlalchemy`, `alembic`, `jsonschema`, `graphql`, `efcore`, `scala`. | | `schemaforge.livePreview.enabled` | `true` | Enable/disable the live preview panel for `.schemaforge` files. | --- diff --git a/package.json b/package.json index d6fcaee..9b23925 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "url": "https://github.com/Coding-Dev-Tools/schemaforge" }, "engines": { - "vscode": "^1.85.0" + "vscode": ">=1.85.0", + "node": ">=18.0.0" }, "categories": [ "Programming Languages", @@ -108,7 +109,7 @@ "schemaforge.defaultTargetFormat": { "type": "string", "default": "sql", - "enum": ["sql", "prisma", "drizzle", "typeorm", "django", "sqlalchemy", "alembic", "json_schema", "graphql", "ef", "scala"], + "enum": ["sql", "prisma", "django", "drizzle", "typeorm", "sqlalchemy", "alembic", "json_schema", "graphql", "ef", "scala"], "description": "Default target format for quick conversions" }, "schemaforge.livePreview.enabled": { @@ -120,7 +121,7 @@ } }, "scripts": { - "vscode:prepublish": "npm run compile", + "prepublishOnly": "npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint", @@ -133,8 +134,8 @@ "@vscode/test-cli": "^0.0.4", "@vscode/test-electron": "^2.3.8", "typescript": "^5.3.0", - "eslint": "^8.50.0", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0" + "eslint": "^8.57.1", + "@typescript-eslint/eslint-plugin": "^7.0.0", + "@typescript-eslint/parser": "^7.0.0" } }