From 97c05b4a90c9cdefa4682705cf7bf89636154a82 Mon Sep 17 00:00:00 2001 From: Piotr Konieczny Date: Mon, 21 Feb 2022 13:52:52 +0100 Subject: [PATCH 1/4] Rename .eslinttc.js to .eslintrc.json to prevent linting of eslint config file itself --- .eslintrc.js => .eslintrc.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .eslintrc.js => .eslintrc.json (94%) diff --git a/.eslintrc.js b/.eslintrc.json similarity index 94% rename from .eslintrc.js rename to .eslintrc.json index bcea7a1..88b65a6 100644 --- a/.eslintrc.js +++ b/.eslintrc.json @@ -1,4 +1,4 @@ -module.exports = { +{ "env": { "browser": true, "es2021": true @@ -19,4 +19,4 @@ module.exports = { ], "rules": { } -}; +} From bd127bd56d0318af7df5fcaf8a9624c7d0496bb0 Mon Sep 17 00:00:00 2001 From: Piotr Konieczny Date: Mon, 21 Feb 2022 13:53:52 +0100 Subject: [PATCH 2/4] Disable react/prop-types rule which is not implemented --- .eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.json b/.eslintrc.json index 88b65a6..fcc3ec6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -18,5 +18,6 @@ "react" ], "rules": { + "react/prop-types": "off" } } From a8cce25f49e43171a621bcffc7400c2a902c27f8 Mon Sep 17 00:00:00 2001 From: Piotr Konieczny Date: Mon, 21 Feb 2022 13:54:58 +0100 Subject: [PATCH 3/4] Specify react version --- .eslintrc.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index fcc3ec6..2291264 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,5 +19,10 @@ ], "rules": { "react/prop-types": "off" + }, + "settings": { + "react": { + "version": "17.0" + } } } From 29f46c4a4fe58dbde4186c6c525ac591160917f5 Mon Sep 17 00:00:00 2001 From: Piotr Konieczny Date: Mon, 21 Feb 2022 13:57:55 +0100 Subject: [PATCH 4/4] Fix indent_size for eslintrc --- .editorconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 8b86fba..8561bc2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,4 +9,7 @@ trim_trailing_whitespace = true [*.md] max_line_length = off -trim_trailing_whitespace = false \ No newline at end of file +trim_trailing_whitespace = false + +[.eslintrc.json] +indent_size = 4