From b3c31a418818cdd17c0d4b5e20f0d8ee120f9118 Mon Sep 17 00:00:00 2001 From: Xymorot Date: Sun, 9 Feb 2020 19:55:37 +0100 Subject: [PATCH] meta: add array-type rule to eslint This forces array typings to be more consistent and readable. --- .eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5ccbf1a..7e00937 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -109,7 +109,8 @@ "@typescript-eslint/ban-ts-ignore": "off", "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }], - "@typescript-eslint/member-ordering": "error" + "@typescript-eslint/member-ordering": "error", + "@typescript-eslint/array-type": ["error", { "default": "array-simple" }] } }, {