From f792208d9f283f88b2324144524d73971bd34cfa Mon Sep 17 00:00:00 2001 From: coliff Date: Tue, 20 May 2025 11:36:07 +0900 Subject: [PATCH] Add CoPilot Instructions --- .cspell.json | 5 +++++ .github/copilot-instructions.md | 6 ++++++ .vscode/settings.json | 10 ++++++++++ README.md | 4 ++-- htmlhint/.vscodeignore | 5 +++++ package-lock.json | 27 ++++++++++++++++----------- package.json | 3 ++- 7 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 .github/copilot-instructions.md create mode 100644 .vscode/settings.json diff --git a/.cspell.json b/.cspell.json index 3b09cfd..3f53b7b 100644 --- a/.cspell.json +++ b/.cspell.json @@ -7,10 +7,15 @@ "htmlhint", "htmlhintrc", "mylang", + "nvmrc", "ruleset", "tagname", "VSIX" ], + "flagWords": [ + "hte" + ], + "allowCompoundWords": true, "language": "en,en-US", "ignorePaths": [ ".cspell.json" diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..3cf4ef4 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,6 @@ +# Copilot Instructions + +- This project is the HTMLHint Visual Studio Code extension. It is a linter for HTML files that helps developers write clean and error-free HTML code. The extension provides real-time feedback and suggestions for improving HTML code quality. +- Code is linted with ESLint v8.57.1 +- All code is formatted with Prettier +- All code and comments are in US English diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8f327ad --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.renderWhitespace": "all", + "editor.trimAutoWhitespace": true, + "files.trimTrailingWhitespace": true +} diff --git a/README.md b/README.md index 1c79ff5..0950aa2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# HTMLHint - VS Code Extension +# HTMLHint - Visual Studio Code Extension VS Code extension to support HTMLHint, an HTML linter. @@ -22,7 +22,7 @@ Install through VS Code extensions. Search for `HTMLHint` and install the extens Alternatively, launch VS Code Quick Open (`Ctrl`+`P`), paste the following command, and press enter. -``` +```txt ext install HTMLHint.vscode-htmlhint ``` diff --git a/htmlhint/.vscodeignore b/htmlhint/.vscodeignore index c5baef1..e60c8db 100644 --- a/htmlhint/.vscodeignore +++ b/htmlhint/.vscodeignore @@ -1,15 +1,20 @@ .vscode/** +**/coverage/** **/example/** **/examples/** **/test/** **/tests/** +**/.DS_Store **/.editorconfig +**/.eslintignore **/.eslintrc.* **/.gitattributes **/.gitconfig **/.github **/.gitignore **/.gitkeep +**/.history/** +**/.idea/** **/.npmignore **/.npmrc **/.nvmrc diff --git a/package-lock.json b/package-lock.json index 923860a..341154e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@typescript-eslint/eslint-plugin": "6.7.0", "@typescript-eslint/parser": "6.7.0", "eslint": "8.57.1", - "eslint-config-prettier": "10.1.2", + "eslint-config-prettier": "10.1.5", "prettier": "3.5.3" }, "engines": { @@ -518,10 +518,11 @@ "dev": true }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -646,14 +647,17 @@ } }, "node_modules/eslint-config-prettier": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.2.tgz", - "integrity": "sha512-Epgp/EofAUeEpIdZkW60MHKvPyru1ruQJxPL+WIycnaPApuseK0Zpkrh/FwL9oIpQvIhJwV7ptOy0DWUjTlCiA==", + "version": "10.1.5", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.5.tgz", + "integrity": "sha512-zc1UmCpNltmVY34vuLRV61r1K27sWuX39E+uyUnY8xS2Bex88VV9cugG+UZbRSRGtGyFboj+D8JODyme1plMpw==", "dev": true, "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, + "funding": { + "url": "https://opencollective.com/eslint-config-prettier" + }, "peerDependencies": { "eslint": ">=7.0.0" } @@ -1122,12 +1126,13 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, + "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { diff --git a/package.json b/package.json index 84d59f8..9efd2e7 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,14 @@ "scripts": { "lint": "eslint -c .eslintrc.js --ext .ts .", "prettier": "prettier --write \"**/*.{js,md,ts,yml}\"", + "spellcheck": "npx cspell \"**/*.{html,js,json,md,ts,yml}\"", "test": "npm run prettier && npm run lint && cd htmlhint && npm i && cd ../htmlhint-server && npm i && npm run compile" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "6.7.0", "@typescript-eslint/parser": "6.7.0", "eslint": "8.57.1", - "eslint-config-prettier": "10.1.2", + "eslint-config-prettier": "10.1.5", "prettier": "3.5.3" }, "engines": {