From edd3cdeb623f0b6b1f0e650a1a8a0a7c0b151dd8 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 23 May 2020 12:51:55 -0400 Subject: [PATCH] Fix ESLint --- src/main/ts/.eslintrc.json | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/main/ts/.eslintrc.json b/src/main/ts/.eslintrc.json index 2a0cf42..61858ad 100644 --- a/src/main/ts/.eslintrc.json +++ b/src/main/ts/.eslintrc.json @@ -11,7 +11,6 @@ ], "extends": [ "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking" ], @@ -34,7 +33,25 @@ "no-unneeded-ternary": "error", "block-spacing": "error", "camelcase": "off", - "@typescript-eslint/camelcase": "error", + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "default", + "format": ["camelCase"] + }, + { + "selector": "variable", + "format": ["camelCase", "UPPER_CASE"] + }, + { + "selector": "parameter", + "format": ["camelCase"] + }, + { + "selector": "typeLike", + "format": ["PascalCase"] + } + ], "comma-dangle": ["error", "never"], "func-call-spacing": "off", "@typescript-eslint/func-call-spacing": ["error", "never"],