diff --git a/.eslintrc.json b/.eslintrc.json index 8583d020fa..b15c9c2cf8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,7 @@ "node": true }, "parserOptions": { - "ecmaVersion": 2019, + "ecmaVersion": 2020, "sourceType": "module" }, "extends": "eslint:recommended", diff --git a/package.json b/package.json index 3338d22345..853e7ec86b 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "release-version": "node build/bump-version.js", "netlify": "cross-env-shell HUGO_BASEURL=$DEPLOY_PRIME_URL npm-run-all icons docs-build", "test:fusv": "fusv docs/assets/scss/", - "test:eslint": "eslint --cache --cache-location .cache/.eslintcache --report-unused-disable-directives .", + "test:eslint": "eslint --cache --cache-location .cache/.eslintcache --report-unused-disable-directives --ext .js,.mjs .", "test:stylelint": "stylelint docs/assets/scss/ --cache --cache-location .cache/.stylelintcache", "test:lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json", "test:check-icons": "node build/check-icons.mjs",