Skip to content

Commit

Permalink
Move to ecma2020
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Aug 24, 2022
1 parent ebac1f6 commit 554671c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.back.js
Expand Up @@ -2,6 +2,9 @@

module.exports = {
extends: '@strapi/eslint-config/back',
parserOptions: {
ecmaVersion: 2020,
},
globals: {
strapi: false,
},
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -9,7 +9,7 @@ const frontPaths = [

module.exports = {
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 2020,
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -71,7 +71,7 @@
"@babel/core": "7.18.10",
"@babel/eslint-parser": "7.18.9",
"@babel/preset-react": "7.18.6",
"@strapi/eslint-config": "0.1.1",
"@strapi/eslint-config": "0.1.2",
"@swc/core": "1.2.224",
"@swc/jest": "0.2.22",
"babel-eslint": "10.1.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -5288,10 +5288,10 @@
compute-scroll-into-view "^1.0.17"
prop-types "^15.7.2"

"@strapi/eslint-config@0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@strapi/eslint-config/-/eslint-config-0.1.1.tgz#0020d5724edc6dc7453f26917ed2d1dff434c814"
integrity sha512-/aokDkPVxX9vS8oRQnmR6EYOy2O6Xd/zxus3I8yC4yKiF/uEflzsNeLUCRPt4BCbm6X5d0K+NzVesHUPERLRrQ==
"@strapi/eslint-config@0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@strapi/eslint-config/-/eslint-config-0.1.2.tgz#e8327169eccce78b5f9e1589cb243c0f84343caf"
integrity sha512-8Pf0xNhEK77tLWzUL3/FSeGJipkmFjx8LqmwTouXgTVgtiXbF+p3iNOxmkkZWB92cDoA4BXkIB17Fus+6qXEkQ==
dependencies:
"@babel/eslint-parser" "^7.18.9"
"@typescript-eslint/eslint-plugin" "^5.14.0"
Expand Down

0 comments on commit 554671c

Please sign in to comment.