From 6b1da9c5a6f44fca0f4361a230227b1994078ac6 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 23 May 2020 13:20:20 -0400 Subject: [PATCH] Fix ESLint --- src/main/ts/.eslintrc.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/ts/.eslintrc.json b/src/main/ts/.eslintrc.json index 61858ad..01df83a 100644 --- a/src/main/ts/.eslintrc.json +++ b/src/main/ts/.eslintrc.json @@ -6,6 +6,9 @@ "project": ["./tsconfig.json"], "sourceType": "module" }, + "env": { + "es2020": true + }, "plugins": [ "@typescript-eslint" ], @@ -43,6 +46,14 @@ "selector": "variable", "format": ["camelCase", "UPPER_CASE"] }, + { + "selector": "property", + "format": ["camelCase", "UPPER_CASE"] + }, + { + "selector": "enumMember", + "format": ["UPPER_CASE"] + }, { "selector": "parameter", "format": ["camelCase"] @@ -70,6 +81,8 @@ "@typescript-eslint/dot-notation": "error", "no-extra-semi": "off", "@typescript-eslint/no-extra-semi": "error", - "@typescript-eslint/explicit-function-return-type": "error" + "@typescript-eslint/explicit-function-return-type": "error", + "no-dupe-class-members": "off", + "@typescript-eslint/no-dupe-class-members": "error" } } \ No newline at end of file