From cfcf004453d5ba1670f49f4369b5d414defc0dfc Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Fri, 26 Dec 2025 14:00:50 +0530 Subject: [PATCH 1/2] feat: add disclaimer --- README.md | 3 +++ src/index.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index fddab214..ba765986 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # TradeTrust (CLI) +> ⚠️ This CLI is for development work only. It is not recommended for production use. +> For production, please integrate the TrustVC library. + This CLI tool in the [TradeTrust CLI](https://github.com/TradeTrust/tradetrust-cli) repository turns .json documents into any TradeTrust verifiable documents. It applies the OpenAttestation algorithm to produce a hash of the json document and then creates a file with the data and proof of integrity. ## Installation diff --git a/src/index.ts b/src/index.ts index 1f394040..075f1267 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,12 @@ #!/usr/bin/env node import yargs from "yargs"; +import chalk from "chalk"; import { versionCheck } from "./implementations/utils/github-version"; +// Display development warning +console.warn(chalk.yellow("\n⚠️ This CLI is for development work only. It is not recommended for production use.")); +console.warn(chalk.yellow("For production, please integrate the TrustVC library.\n")); + yargs .scriptName("tradetrust") .commandDir("commands", { extensions: ["ts", "js"] }) From 41dabcd3bafc76f9914fea0ddcce483dc66c58ff Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Fri, 26 Dec 2025 14:25:48 +0530 Subject: [PATCH 2/2] fix: lint config update --- package.json | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 8054bd89..3fbec937 100644 --- a/package.json +++ b/package.json @@ -118,25 +118,15 @@ "eslintConfig": { "parser": "@typescript-eslint/parser", "env": { - "browser": true, - "jest": true + "browser": true }, "extends": [ "plugin:@typescript-eslint/recommended", - "plugin:jest/all", "plugin:prettier/recommended" ], "parserOptions": { "ecmaVersion": 2018, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true - } - }, - "settings": { - "react": { - "version": "detect" - } + "sourceType": "module" }, "rules": { "@typescript-eslint/explicit-function-return-type": [ @@ -148,11 +138,28 @@ ], "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-empty-function": "off", - "jest/prefer-expect-assertions": "off", - "jest/no-hooks": "off", - "jest/prefer-strict-equal": "off", "array-callback-return": "error" - } + }, + "overrides": [ + { + "files": [ + "**/*.test.ts", + "**/*.spec.ts", + "**/__tests__/**/*.ts" + ], + "env": { + "jest": true + }, + "extends": [ + "plugin:jest/all" + ], + "rules": { + "jest/prefer-expect-assertions": "off", + "jest/no-hooks": "off", + "jest/prefer-strict-equal": "off" + } + } + ] }, "prettier": { "printWidth": 120