From ee5df896e3543673f287790cc7fb5c2cc55c6d06 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 3 Sep 2020 10:36:40 +0200 Subject: [PATCH] chore: Upgrade ESLint configuration to support ES2019 syntax --- lib/plugins/aws/customResources/.eslintrc.js | 5 ----- package.json | 16 +++------------ test/.eslintrc.js | 21 -------------------- 3 files changed, 3 insertions(+), 39 deletions(-) delete mode 100644 lib/plugins/aws/customResources/.eslintrc.js delete mode 100644 test/.eslintrc.js diff --git a/lib/plugins/aws/customResources/.eslintrc.js b/lib/plugins/aws/customResources/.eslintrc.js deleted file mode 100644 index 6fea3835bdc..00000000000 --- a/lib/plugins/aws/customResources/.eslintrc.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = { - parserOptions: { ecmaVersion: 2017 }, -}; diff --git a/package.json b/package.json index 45b6dc7d880..d640e399e2c 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ }, "devDependencies": { "@commitlint/cli": "^9.1.2", - "@serverless/eslint-config": "^2.2.0", + "@serverless/eslint-config": "^3.0.0", "@serverless/test": "^4.8.0", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", @@ -110,18 +110,8 @@ "xml2js": "^0.4.23" }, "eslintConfig": { - "extends": "@serverless/eslint-config/node/6", - "root": true, - "overrides": [ - { - "files": [ - "scripts/pkg/**" - ], - "parserOptions": { - "ecmaVersion": 2018 - } - } - ] + "extends": "@serverless/eslint-config/node", + "root": true }, "eslintIgnore": [ "!/.github", diff --git a/test/.eslintrc.js b/test/.eslintrc.js deleted file mode 100644 index ac7fb3d1d5a..00000000000 --- a/test/.eslintrc.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -module.exports = { - parserOptions: { - ecmaVersion: 2017, - }, - overrides: [ - { - files: ['utils/**.js'], - parserOptions: { - ecmaVersion: 2015, - }, - }, - { - files: ['utils/aws-cleanup.js', 'utils/integration.js'], - parserOptions: { - ecmaVersion: 2017, - }, - }, - ], -};