From 3f78e2686e500bbf40a9becaeb44cfd7f4c73e22 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Tue, 9 Jun 2020 13:54:58 +1000 Subject: [PATCH] Allow lowercase characters in static methods. The following changes just makes it so functions can --- tslint.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tslint.json b/tslint.json index 84c0bb5c3..f9428ed5e 100644 --- a/tslint.json +++ b/tslint.json @@ -82,7 +82,6 @@ // Modifying: // React components and namespaces are Pascal case - "variable-name": [true, "allow-pascal-case"], "variable-name": [ true, "check-format", @@ -90,7 +89,16 @@ "allow-pascal-case" ], - "function-name": [true, { "function-regex": "^_?[a-z][\\w\\d]+$" }], + "function-name": [ + true, + { + "function-regex": "^[a-z][\\w\\d]+$", + "method-regex": "^[a-z][\\w\\d]+$", + "private-method-regex": "^[a-z][\\w\\d]+$", + "protected-method-regex": "^[a-z][\\w\\d]+$", + "static-method-regex": "^[a-zA-Z][\\w\\d]+$" + } + ], // Adding select dev dependencies here for now, may turn on all in the future "no-implicit-dependencies": [true, ["dashdash", "electron"]],