From af818442511c4d11ff1b6a6806fbeda0f0d02898 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Tue, 28 Sep 2021 12:34:08 -0600 Subject: [PATCH] chore: Synced local '.eslintrc.json' with remote 'sync-files/js/.eslintrc.json' (#312) --- .eslintrc.json | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9ac3763..c2ad041 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -16,16 +16,18 @@ "@typescript-eslint/ban-ts-comment": 0, "@typescript-eslint/ban-types": 1, "@typescript-eslint/no-empty-function": 1, - // disable the rule for all files - "@typescript-eslint/explicit-member-accessibility": "off" - }, + "@typescript-eslint/member-ordering": 1, + // disable the rule for all files + "@typescript-eslint/explicit-member-accessibility": "off" + }, "overrides": [ { - // enable the rule specifically for TypeScript files - "files": ["*.ts", "*.tsx"], - "rules": { - "@typescript-eslint/explicit-member-accessibility": [ - 1, { + // enable the rule specifically for TypeScript files + "files": ["*.ts", "*.tsx"], + "rules": { + "@typescript-eslint/explicit-member-accessibility": [ + 1, + { "accessibility": "explicit", "overrides": { "accessors": "explicit", @@ -33,9 +35,12 @@ "methods": "explicit", "properties": "explicit", "parameterProperties": "explicit" - }}] - } - }], + } + } + ] + } + } + ], "env": { "browser": true, "node": true,