From c7264c5030cb554332a8fffdbc119f7371e5ed3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Tue, 16 Feb 2021 16:35:33 +0100
Subject: [PATCH] Met d'aplomb le formatage.

---
 .editorconfig  | 30 ++++++++++--------------------
 .eslintrc.js   | 25 ++++++++++++-------------
 .prettierrc.js |  8 +++-----
 composer.json  |  8 ++++++--
 4 files changed, 31 insertions(+), 40 deletions(-)

diff --git a/.editorconfig b/.editorconfig
index 8dfe89a..fb96226 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,26 +1,16 @@
-# editorconfig.org
-root=true
+root = true
 
 [*]
-charset=utf-8
-end_of_line=lf
-indent_size=4
-indent_style=space
-insert_final_newline=true
-tab_width=4
-trim_trailing_whitespace=true
-
-[*.{js,yml,json,ts}]
-indent_size=2
-tab_width=2
-
-[*.{js,yml,json,ts}.twig]
-indent_size=2
-tab_width=2
-
-[Makefile]
-indent_style=tab
+charset = utf-8
+end_of_line = lf
+indent_size = 4
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
 
 [*.md]
 max_line_length = off
 trim_trailing_whitespace = false
+
+[*.{json,yml}]
+indent_size = 2
diff --git a/.eslintrc.js b/.eslintrc.js
index e80a21f..3dfa577 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,15 +1,14 @@
 module.exports = {
-  parser: "@typescript-eslint/parser",
-  parserOptions: {
-    ecmaVersion: 2020,
-    sourceType: "module",
-  },
-  extends: [
-    "plugin:@typescript-eslint/recommended",
-    "prettier/@typescript-eslint",
-    // Doit rester en dernier :
-    "plugin:prettier/recommended"
-  ],
-  rules: {
-  }
+    parser: '@typescript-eslint/parser',
+    parserOptions: {
+        ecmaVersion: 2018,
+        sourceType: 'module',
+    },
+    extends: [
+        'plugin:@typescript-eslint/recommended',
+        'prettier/@typescript-eslint',
+        // Doit rester en dernier :
+        'plugin:prettier/recommended',
+    ],
+    rules: {},
 };
diff --git a/.prettierrc.js b/.prettierrc.js
index 2c66e64..fa56f36 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -1,7 +1,5 @@
 module.exports = {
-  semi: true,
-  trailingComma: "all",
-  singleQuote: true,
-  printWidth: 120,
-  tabWidth: 4
+    semi: true,
+    trailingComma: 'all',
+    singleQuote: true,
 };
diff --git a/composer.json b/composer.json
index 7ae6046..8b13e70 100644
--- a/composer.json
+++ b/composer.json
@@ -87,10 +87,14 @@
     "test:generate": "@php tests/Fixtures/console ng-model:generate -o output >/dev/null"
   },
   "autoload": {
-        "psr-4": { "Irstea\\NgModelGeneratorBundle\\": "src/php/" }
+    "psr-4": {
+      "Irstea\\NgModelGeneratorBundle\\": "src/php/"
+    }
   },
   "autoload-dev": {
-        "psr-4": { "Irstea\\NgModelGeneratorBundle\\Tests\\": "tests/" }
+    "psr-4": {
+      "Irstea\\NgModelGeneratorBundle\\Tests\\": "tests/"
+    }
   },
   "config": {
     "sort-packages": true,
-- 
GitLab