diff --git a/js/.eslintrc.cjs b/js/.eslintrc.cjs new file mode 100644 index 00000000..740dc0ce --- /dev/null +++ b/js/.eslintrc.cjs @@ -0,0 +1,16 @@ +module.exports = { + extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], + parser: "@typescript-eslint/parser", + parserOptions: { project: ["./tsconfig.json"] }, + plugins: ["@typescript-eslint"], + rules: { + "@typescript-eslint/strict-boolean-expressions": [ + 2, + { + allowString: false, + allowNumber: false, + }, + ], + }, + ignorePatterns: ["src/**/*.test.ts", "src/frontend/generated/*"], +}; diff --git a/js/.eslintrc.json b/js/.eslintrc.json deleted file mode 100644 index 6ebb9ccc..00000000 --- a/js/.eslintrc.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { "project": ["./tsconfig.json"] }, - "plugins": [ - "@typescript-eslint" - ], - "rules": { - "@typescript-eslint/strict-boolean-expressions": [ - 2, - { - "allowString" : false, - "allowNumber" : false - } - ] - }, - "ignorePatterns": ["src/**/*.test.ts", "src/frontend/generated/*"] -} diff --git a/js/package.json b/js/package.json index fa07fd9f..e6b324c8 100644 --- a/js/package.json +++ b/js/package.json @@ -1,35 +1,16 @@ { "name": "@schematichq/schematic-js", + "version": "1.0.0-rc.0", "main": "dist/schematic.cjs.js", "module": "dist/schematic.esm.js", - "author": "Ben Papillon ", - "dependencies": { - "cross-fetch": "^4.0.0", - "uuid": "^9.0.0" - }, - "devDependencies": { - "@microsoft/api-extractor": "^7.38.3", - "@types/jest": "^29.5.11", - "@types/uuid": "^9.0.2", - "@typescript-eslint/eslint-plugin": "^6.13.2", - "@typescript-eslint/parser": "^6.13.2", - "esbuild": "^0.19.9", - "esbuild-jest": "^0.5.0", - "eslint": "^8.55.0", - "jest": "^29.7.0", - "jest-environment-jsdom": "^29.7.0", - "jest-esbuild": "^0.3.0", - "jest-fetch-mock": "^3.0.3", - "prettier": "^3.3.1", - "ts-jest": "^29.1.1", - "typescript": "^5.0.2" - }, + "types": "dist/schematic.d.ts", "files": [ "dist/schematic.cjs.js", "dist/schematic.esm.js", "dist/schematic.browser.js", "dist/schematic.d.ts" ], + "author": "Schematic ", "license": "MIT", "repository": { "type": "git", @@ -46,7 +27,26 @@ "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --fix", "test": "jest --config jest.config.js" }, - "types": "dist/schematic.d.ts", - "version": "0.1.14", + "dependencies": { + "cross-fetch": "^4.0.0", + "uuid": "^10.0.0" + }, + "devDependencies": { + "@microsoft/api-extractor": "^7.47.9", + "@types/jest": "^29.5.13", + "@types/uuid": "^10.0.0", + "@typescript-eslint/eslint-plugin": "^8.7.0", + "@typescript-eslint/parser": "^8.7.0", + "esbuild": "^0.24.0", + "esbuild-jest": "^0.5.0", + "eslint": "^8.57.1", + "jest": "^29.7.0", + "jest-environment-jsdom": "^29.7.0", + "jest-esbuild": "^0.3.0", + "jest-fetch-mock": "^3.0.3", + "prettier": "^3.3.3", + "ts-jest": "^29.2.5", + "typescript": "^5.6.2" + }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/react/package.json b/react/package.json index 42f1ce52..117737f1 100644 --- a/react/package.json +++ b/react/package.json @@ -1,6 +1,6 @@ { "name": "@schematichq/schematic-react", - "version": "0.2.0-rc.10", + "version": "1.0.0-rc.0", "main": "dist/schematic-react.cjs.js", "module": "dist/schematic-react.esm.js", "types": "dist/schematic-react.d.ts", @@ -9,7 +9,7 @@ "dist/schematic-react.esm.js", "dist/schematic-react.d.ts" ], - "author": "Ben Papillon ", + "author": "Schematic ", "license": "MIT", "repository": { "type": "git", @@ -32,15 +32,15 @@ "@schematichq/schematic-js": "^0.1.14" }, "devDependencies": { - "@microsoft/api-extractor": "^7.47.7", - "@openapitools/openapi-generator-cli": "^2.13.5", - "@types/jest": "^29.5.12", - "@types/react": "^18.2.79", - "@typescript-eslint/eslint-plugin": "^6.19.1", - "@typescript-eslint/parser": "^6.13.2", - "esbuild": "^0.23.1", + "@microsoft/api-extractor": "^7.47.9", + "@openapitools/openapi-generator-cli": "^2.13.9", + "@types/jest": "^29.5.13", + "@types/react": "^18.3.9", + "@typescript-eslint/eslint-plugin": "^8.7.0", + "@typescript-eslint/parser": "^8.7.0", + "esbuild": "^0.24.0", "esbuild-jest": "^0.5.0", - "eslint": "^8.57.0", + "eslint": "^8.57.1", "eslint-plugin-import": "^2.30.0", "eslint-plugin-react-hooks": "^4.6.2", "jest": "^29.7.0", @@ -48,9 +48,9 @@ "jest-esbuild": "^0.3.0", "jest-fetch-mock": "^3.0.3", "prettier": "^3.3.3", - "react": "^18.2.0", + "react": "^18.3.1", "ts-jest": "^29.2.5", - "typescript": "^5.5.4" + "typescript": "^5.6.2" }, "peerDependencies": { "react": ">=18"