Skip to content
Snippets Groups Projects
Commit 15d36012 authored by michael.minelli's avatar michael.minelli
Browse files

Package => Update eslint

parent 7375f7f0
Branches
Tags
No related merge requests found
dist
node_modules
.gitlab-ci
\ No newline at end of file
{
"root" : true,
"parser" : "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
]
}
\ No newline at end of file
// @ts-check
// @formatter:off
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config({
ignores: [ 'dist/*', 'node_modules/*', '.gitlab-ci.yml', 'eslint.config.mjs' ]
}, eslint.configs.recommended, ...tseslint.configs.recommendedTypeChecked, {
languageOptions: {
parserOptions: {
project: true, tsconfigRootDir: import.meta.dirname
}
}
}, {
plugins: {
'@typescript-eslint': tseslint.plugin
}, rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
}
});
\ No newline at end of file
This diff is collapsed.
......@@ -49,18 +49,18 @@
"zod-validation-error": "^3.0.0"
},
"devDependencies": {
"@types/fs-extra" : "^11.0.4",
"@types/js-yaml" : "^4.0.9",
"@types/node" : "^18.19.8",
"@types/tar-stream" : "^3.1.3",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser" : "^6.19.0",
"dotenv-vault" : "^1.25.0",
"genversion" : "^3.2.0",
"pkg" : "^5.8.1",
"tiny-typed-emitter" : "^2.1.0",
"tsx" : "^4.7.1",
"ts-node" : "^10.9.2",
"typescript" : "^5.4.3"
"@types/fs-extra" : "^11.0.4",
"@types/js-yaml" : "^4.0.9",
"@types/node" : "^18.19.8",
"@types/tar-stream" : "^3.1.3",
"dotenv-vault" : "^1.25.0",
"eslint" : "^8.57.0",
"genversion" : "^3.2.0",
"pkg" : "^5.8.1",
"tiny-typed-emitter": "^2.1.0",
"tsx" : "^4.7.2",
"ts-node" : "^10.9.2",
"typescript" : "^5.4.5",
"typescript-eslint" : "^7.7.0"
}
}
......@@ -167,7 +167,7 @@ async function displayResults() {
}
(async () => {
void (async () => {
HttpManager.registerAxiosInterceptor();
console.log(Styles.APP_NAME(`${ Config.appName } (version {{VERSION}})`));
......
......@@ -39,7 +39,7 @@ class HttpManager {
if ( config.url && (config.url.indexOf(ClientsSharedConfig.apiURL) !== -1) ) {
config.headers['Accept-Encoding'] = 'gzip';
if ( config.data && Object.keys(config.data).length > 0 ) {
if ( config.data && Object.keys(config.data as { [key: string]: unknown }).length > 0 ) {
config.headers['Content-Type'] = 'multipart/form-data';
}
......@@ -60,10 +60,10 @@ class HttpManager {
const data: DojoBackendResponse<void> = error.response.data;
switch ( data.code ) {
case DojoStatusCode.CLIENT_NOT_SUPPORTED:
case DojoStatusCode.CLIENT_NOT_SUPPORTED.valueOf():
this.requestError('Client not recognized by the server. Please contact the administrator.');
break;
case DojoStatusCode.CLIENT_VERSION_NOT_SUPPORTED:
case DojoStatusCode.CLIENT_VERSION_NOT_SUPPORTED.valueOf():
this.requestError(`ExerciseChecker version not supported by the server.\nPlease check that the CI/CD pipeline use the "${ Config.dockerhub.repositories.exerciseChecker }:latest" image.\nIf yes, try again later and if the problem persists, please contact the administrator.`);
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment