From 3afe1aa5e6b8e2d97d493861ac0dc65da2cc9587 Mon Sep 17 00:00:00 2001 From: William Swanson Date: Thu, 17 Sep 2020 10:37:14 -0700 Subject: [PATCH] Prefer simpler array syntax --- .eslintrc.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 5b3d71dd7b4..add227b05a6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,6 +14,8 @@ "plugins": ["react-native", "react", "simple-import-sort"], "rules": { "camelcase": "warn", + "flowtype/array-style-complex-type": ["error", "verbose"], + "flowtype/array-style-simple-type": ["error", "shorthand"], "flowtype/require-valid-file-annotation": [2, "always"], "no-var": "error", "react-native/no-inline-styles": 0,