From d03fde15040955cd8651a806a98bfc047778068d Mon Sep 17 00:00:00 2001 From: googlemaps-bot Date: Wed, 27 Oct 2021 19:40:01 +0000 Subject: [PATCH] chore: Synced local '.eslintrc.json' with remote 'sync-files/js/.eslintrc.json' --- .eslintrc.json | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c2ad0416..fbda63ef 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,30 +1,28 @@ { - "extends": [ - "eslint:recommended", - "plugin:prettier/recommended", - "plugin:@typescript-eslint/recommended" - ], - "parser": "@typescript-eslint/parser", + "extends": ["eslint:recommended", "plugin:prettier/recommended"], "parserOptions": { - "ecmaVersion": 11, - "sourceType": "module" + "ecmaVersion": 12, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true + } }, - "plugins": ["@typescript-eslint", "jest"], + "plugins": ["jest"], "rules": { "no-var": 2, - "prefer-arrow-callback": 2, - "@typescript-eslint/ban-ts-comment": 0, - "@typescript-eslint/ban-types": 1, - "@typescript-eslint/no-empty-function": 1, - "@typescript-eslint/member-ordering": 1, - // disable the rule for all files - "@typescript-eslint/explicit-member-accessibility": "off" + "prefer-arrow-callback": 2 }, "overrides": [ { - // enable the rule specifically for TypeScript files "files": ["*.ts", "*.tsx"], + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": ["plugin:@typescript-eslint/recommended"], "rules": { + "@typescript-eslint/ban-ts-comment": 0, + "@typescript-eslint/ban-types": 1, + "@typescript-eslint/no-empty-function": 1, + "@typescript-eslint/member-ordering": 1, "@typescript-eslint/explicit-member-accessibility": [ 1, {