diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000000000000000000000000000000000000..45000378dd43bd1c9747b9b07b10dd3e303628dc --- /dev/null +++ b/.eslintrc @@ -0,0 +1,31 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" + ], + "parserOptions": { + "ecmaVersion": 2021, + "sourceType": "module" + }, + "rules": { + "prefer-const": "off", + "no-unused-expressions": 1, + "@typescript-eslint/adjacent-overload-signatures": 0, // Sinon set et get doivent se suivre + "@typescript-eslint/no-inferrable-types": [ + 1, + { + "ignoreParameters": false + } + ], + "@typescript-eslint/no-non-null-assertion": 0, + "@typescript-eslint/no-explicit-any": 2, + "@typescript-eslint/explicit-function-return-type": 2 + } +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000000000000000000000000000000000..39b5036b93bcb3558bbb0cc45adfd80186d2d07c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "code-runner.executorMap": { + "javascript": "node", + "typescript": "npx ts-node" + }, + "code-runner.runInTerminal": true +}