From a3fa1fd8342fdf4cb2b9f9ecda0dfed7933ba700 Mon Sep 17 00:00:00 2001 From: yoannchb-pro <71560747+yoannchb-pro@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:23:09 -0500 Subject: [PATCH] eslint and prettier --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c6d1ae..24603de 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "1.0.4", "description": "This extension allows you to hide CHAT-GPT in a Moodle quiz.", "scripts": { - "build": "rollup -c" + "build": "rollup -c", + "lint": "eslint . --ext .ts", + "prettier": "prettier --write ." }, "repository": { "type": "git", @@ -25,6 +27,11 @@ "devDependencies": { "@rollup/plugin-terser": "^0.4.3", "@types/chrome": "^0.0.246", + "@typescript-eslint/eslint-plugin": "^7.1.0", + "@typescript-eslint/parser": "^7.1.0", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", + "prettier": "^3.2.5", "rollup": "^3.20.0", "rollup-plugin-ts": "^3.2.0", "typescript": "^5.0.2"