From 2f2581298b9bbc119e6f78112d741ca5a773a62a Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Mon, 13 Aug 2018 13:13:27 +0200 Subject: [PATCH] fix(eslint): ovveride test rules in root .eslintrc file --- frontend/.eslintrc | 8 +++++++- frontend/src/__tests__/.eslintrc | 5 ----- frontend/src/component/api/__tests__/.eslintrc | 5 ----- frontend/src/component/application/__tests__/.eslintrc | 5 ----- .../src/component/client-instance/__tests__/.eslintrc | 5 ----- frontend/src/component/common/__tests__/.eslintrc | 5 ----- frontend/src/component/feature/__tests__/.eslintrc | 5 ----- frontend/src/component/menu/__tests__/.eslintrc | 5 ----- frontend/src/store/api/__tests__/.eslintrc | 5 ----- 9 files changed, 7 insertions(+), 41 deletions(-) delete mode 100644 frontend/src/__tests__/.eslintrc delete mode 100644 frontend/src/component/api/__tests__/.eslintrc delete mode 100644 frontend/src/component/application/__tests__/.eslintrc delete mode 100644 frontend/src/component/client-instance/__tests__/.eslintrc delete mode 100644 frontend/src/component/common/__tests__/.eslintrc delete mode 100644 frontend/src/component/feature/__tests__/.eslintrc delete mode 100644 frontend/src/component/menu/__tests__/.eslintrc delete mode 100644 frontend/src/store/api/__tests__/.eslintrc diff --git a/frontend/.eslintrc b/frontend/.eslintrc index 3f3e372e9e..196241c50d 100644 --- a/frontend/.eslintrc +++ b/frontend/.eslintrc @@ -15,5 +15,11 @@ "printWidth": 120 } ] - } + }, + "overrides": [ + { + "files": ["**/__tests__/*"], + "env": { "jest": true } + } + ] } diff --git a/frontend/src/__tests__/.eslintrc b/frontend/src/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -} diff --git a/frontend/src/component/api/__tests__/.eslintrc b/frontend/src/component/api/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/component/api/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -} diff --git a/frontend/src/component/application/__tests__/.eslintrc b/frontend/src/component/application/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/component/application/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -} diff --git a/frontend/src/component/client-instance/__tests__/.eslintrc b/frontend/src/component/client-instance/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/component/client-instance/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -} diff --git a/frontend/src/component/common/__tests__/.eslintrc b/frontend/src/component/common/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/component/common/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -} diff --git a/frontend/src/component/feature/__tests__/.eslintrc b/frontend/src/component/feature/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/component/feature/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -} diff --git a/frontend/src/component/menu/__tests__/.eslintrc b/frontend/src/component/menu/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/component/menu/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -} diff --git a/frontend/src/store/api/__tests__/.eslintrc b/frontend/src/store/api/__tests__/.eslintrc deleted file mode 100644 index eba2077219..0000000000 --- a/frontend/src/store/api/__tests__/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "env": { - "jest": true - } -}