From 7cbbdd4dba08fd98dbbb9667417da74c520cba7a Mon Sep 17 00:00:00 2001
From: "P. Laroche" <pierre.laroche@univ-lorraine.fr>
Date: Tue, 1 Feb 2022 08:25:36 +0100
Subject: [PATCH] =?UTF-8?q?Ajout=20des=20fichiers=20cach=C3=A9s=20qui=20av?=
 =?UTF-8?q?aient=20=C3=A9t=C3=A9=20oubli=C3=A9s?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .eslintrc             | 31 +++++++++++++++++++++++++++++++
 .vscode/settings.json |  7 +++++++
 2 files changed, 38 insertions(+)
 create mode 100644 .eslintrc
 create mode 100644 .vscode/settings.json

diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 0000000..4500037
--- /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 0000000..39b5036
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,7 @@
+{
+  "code-runner.executorMap": {
+    "javascript": "node",
+    "typescript": "npx ts-node"
+  },
+  "code-runner.runInTerminal": true
+}
-- 
GitLab