From 6bc732ba5f26048999a697a4ec95820d9b3b197e Mon Sep 17 00:00:00 2001 From: Heliozoa Date: Wed, 11 Sep 2024 19:13:53 +0300 Subject: [PATCH] Add linting override for .js and improve Welcome page changelog formatting --- .eslintrc.js | 6 ++++++ bin/runTests.js | 2 +- bin/validateRelease.sh | 2 +- package.json | 2 -- webview-ui/src/panels/Welcome.svelte | 4 ++-- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5dfccae8..fecaca7d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -136,5 +136,11 @@ module.exports = { "@typescript-eslint/no-unused-expressions": "off", }, }, + { + files: ["*.js"], + rules: { + "@typescript-eslint/no-require-imports": "off", + }, + }, ], }; diff --git a/bin/runTests.js b/bin/runTests.js index 31980934..7a95bc8a 100644 --- a/bin/runTests.js +++ b/bin/runTests.js @@ -31,7 +31,7 @@ async function main() { extensionTestsEnv, platform, }); - } catch (err) { + } catch (_err) { console.error("Failed to run tests"); exitCode = 1; } diff --git a/bin/validateRelease.sh b/bin/validateRelease.sh index 5ba6f767..6b1d33c7 100755 --- a/bin/validateRelease.sh +++ b/bin/validateRelease.sh @@ -36,7 +36,7 @@ fi # Welcome panel must have entry matching

[X.Y.Z]

# Count the number of matches -changelogEntry=$(grep -Ec "

\[$tagVersion\] - [0-9]{4}(-[0-9]{2}){2}

" webview-ui/src/panels/Welcome.svelte) +changelogEntry=$(grep -Ec "

$tagVersion - [0-9]{4}(-[0-9]{2}){2}

" webview-ui/src/panels/Welcome.svelte) if [[ $changelogEntry != 1 ]] then echo "Error: Version entry for '${tagVersion}' in the Welcome panel changelog (./webview-ui/src/panels/Welcome.svelte) is either missing or not formatted properly." diff --git a/package.json b/package.json index f1895466..f0c475b6 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,6 @@ "eslint-check": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts", "postinstall": "babel node_modules/ts-results --out-dir node_modules/ts-results --plugins=@babel/plugin-transform-modules-commonjs", "install:all": "npm install && cd backend && npm install && cd ../webview-ui && npm install", - "lint": "ESLINT_USE_FLAT_CONFIG=false eslint src --ext ts", - "lint-check": "npm run eslint-check && npm run prettier-check", "playwright-test": "npm run webview:build && npm run webpack && xvfb-maybe playwright test", "playwright-test-debug": "npm run webview:build && npm run webpack && xvfb-maybe playwright test --debug", "prepare": "ts-patch install && typia patch && husky", diff --git a/webview-ui/src/panels/Welcome.svelte b/webview-ui/src/panels/Welcome.svelte index 5248a413..c533863b 100644 --- a/webview-ui/src/panels/Welcome.svelte +++ b/webview-ui/src/panels/Welcome.svelte @@ -72,7 +72,7 @@
-

3.0.4

+

3.0.4 - 2024-08-29

.csproj files are no longer included when submitting C# exercises

Previously, it was possible to modify and submit .csproj files which would cause @@ -90,7 +90,7 @@

-

3.0.3

+

3.0.3 - 2024-02-26

Fixed missing "Send solution to server" button when tests are ran successfully

This button existed in the old UI but was accidentally omitted from the new one.

Fixed running tests for exam exercises not working correctly