diff --git a/cli/config-manage.ts b/cli/config-manage.ts index 408b8ed..eff97da 100644 --- a/cli/config-manage.ts +++ b/cli/config-manage.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-constant-condition */ import * as fs from 'fs' import { type DeployConfig } from '../lib/shared/common/deploy-config' import { formatText } from './consts' diff --git a/lib/shared/api/API.ts b/lib/shared/api/API.ts index 78a2f51..1d24b2f 100644 --- a/lib/shared/api/API.ts +++ b/lib/shared/api/API.ts @@ -1,4 +1,5 @@ /* tslint:disable */ +/* eslint-disable */ // This file was automatically generated and should not be edited. export type CreateDataFeedInput = { diff --git a/package-lock.json b/package-lock.json index f4505e4..ce99c6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,9 +44,6 @@ "typescript-eslint": "^7.9.0", "uuid": "^9.0.1" }, - "bin": { - "genai-newsletter-app": "bin/genai-newsletter-app.js" - }, "devDependencies": { "@aws-amplify/cli": "^12.10.1", "@aws-appsync/utils": "^1.7.0", @@ -93,6 +90,7 @@ "ts-node": "^10.9.2", "typescript": "5.3", "vite": "^5.0.12", + "vite-plugin-eslint": "^1.8.1", "vitepress": "^1.1.4" } }, @@ -15038,6 +15036,19 @@ "integrity": "sha512-Javneu5lsuhwNCryN+pXH93VPQ8g0dBX7wItHFgYiwQmzE1sVdg5tWHiOgHywzL2W21XQopa7IwIEnNbmeUJYA==", "dev": true }, + "node_modules/@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "dependencies": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.17.2", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.17.2.tgz", @@ -16934,6 +16945,16 @@ "@types/node": "*" } }, + "node_modules/@types/eslint": { + "version": "8.56.10", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz", + "integrity": "sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", @@ -16992,6 +17013,12 @@ "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", "dev": true }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, "node_modules/@types/linkify-it": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", @@ -27714,6 +27741,36 @@ } } }, + "node_modules/vite-plugin-eslint": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/vite-plugin-eslint/-/vite-plugin-eslint-1.8.1.tgz", + "integrity": "sha512-PqdMf3Y2fLO9FsNPmMX+//2BF5SF8nEWspZdgl4kSt7UvHDRHVVfHvxsD7ULYzZrJDGRxR81Nq7TOFgwMnUang==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^4.2.1", + "@types/eslint": "^8.4.5", + "rollup": "^2.77.2" + }, + "peerDependencies": { + "eslint": ">=7", + "vite": ">=2" + } + }, + "node_modules/vite-plugin-eslint/node_modules/rollup": { + "version": "2.79.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", + "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/vite/node_modules/@esbuild/aix-ppc64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", diff --git a/package.json b/package.json index ed88031..d9a1431 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build:ui": "cd lib/user-interface/genai-newsletter-ui/ && vite build", "build:appsync": "ts-node ./lib/api/functions/bundle.ts", "watch": "tsc -w", - "lint": "eslint . --fix --ext .ts,.tsx --report-unused-disable-directives", + "lint": "eslint . --config .eslintrc.json --ext .js,.jsx,.ts,.tsx --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif --fix", "prettier": "prettier --write \"**/*.{ts,tsx}\"", "format": "npm run prettier && npm run lint", "test": "jest", @@ -70,6 +70,7 @@ "ts-node": "^10.9.2", "typescript": "5.3", "vite": "^5.0.12", + "vite-plugin-eslint": "^1.8.1", "vitepress": "^1.1.4" }, "dependencies": {