From ea133bb8435dacc7a2629a8286e8636d7ebe00f9 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 9 Mar 2022 09:00:40 -0800 Subject: [PATCH] Enable eslint naming-convention rule (#93) --- .changeset/small-beds-lay.md | 5 +++++ .eslintrc.json | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/small-beds-lay.md diff --git a/.changeset/small-beds-lay.md b/.changeset/small-beds-lay.md new file mode 100644 index 00000000..7adf5ef6 --- /dev/null +++ b/.changeset/small-beds-lay.md @@ -0,0 +1,5 @@ +--- +"aws-sdk-js-codemod": patch +--- + +Enable eslint naming-convention rule with camelCase, UPPER_CASE and PascalCase diff --git a/.eslintrc.json b/.eslintrc.json index f3b0082c..f5516799 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,7 +6,15 @@ "rules": { "simple-import-sort/imports": "error", "simple-import-sort/exports": "error", - "@typescript-eslint/array-type": ["error", { "default": "array" }] + "@typescript-eslint/array-type": ["error", { "default": "array" }], + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "default", + "format": ["camelCase", "UPPER_CASE", "PascalCase"], + "leadingUnderscore": "allow" + } + ] }, "ignorePatterns": ["__fixtures__"] }