From 6b07d2f8764b6a38dc7d4ff88fa36f66897f28ce Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 28 Feb 2024 17:56:58 +0100 Subject: [PATCH] Move ecmaFeatures to parserOptions in eslintrc --- .eslintrc | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.eslintrc b/.eslintrc index c6235dea8..c2f5eb8e8 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,7 +3,25 @@ "parserOptions": { "babelOptions": { "configFile": "./.babelrc.json" - } + }, + "ecmaFeatures": { + "arrowFunctions": true, + "blockBindings": true, + "classes": true, + "defaultParams": true, + "destructuring": true, + "forOf": true, + "generators": false, + "modules": true, + "objectLiteralComputedProperties": true, + "objectLiteralDuplicateProperties": false, + "objectLiteralShorthandMethods": true, + "objectLiteralShorthandProperties": true, + "spread": true, + "superInFunctions": true, + "templateStrings": true, + "jsx": true + }, }, "plugins": [ "react" // https://github.com/yannickcr/eslint-plugin-react @@ -27,24 +45,6 @@ "afterEach" : false, "__DEVTOOLS__": false }, - "ecmaFeatures": { - "arrowFunctions": true, - "blockBindings": true, - "classes": true, - "defaultParams": true, - "destructuring": true, - "forOf": true, - "generators": false, - "modules": true, - "objectLiteralComputedProperties": true, - "objectLiteralDuplicateProperties": false, - "objectLiteralShorthandMethods": true, - "objectLiteralShorthandProperties": true, - "spread": true, - "superInFunctions": true, - "templateStrings": true, - "jsx": true - }, "rules": { /** * Strict mode