0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Removed @babel/eslint-parser, set ecmaVersion instead

refs: 3a1c51672c

- @babel/eslint-parser was added to enable support for static members on classes but this causes other problems as it fails on eslint ugprades etc
- a better solution is to set ecmaVersion to 2022, as our default is 2018 which does not support static, yet 2022 does
This commit is contained in:
Hannah Wolfe 2022-02-15 12:03:44 +00:00
parent 7c43b14f18
commit fbdbd7fd43
6 changed files with 3 additions and 9 deletions

View file

@ -1,7 +1,6 @@
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false
ecmaVersion: 2022
},
plugins: ['ghost'],
extends: [

View file

@ -20,7 +20,6 @@
"access": "public"
},
"devDependencies": {
"@babel/eslint-parser": "7.16.5",
"c8": "7.11.0",
"mocha": "9.1.3",
"should": "13.2.3",

View file

@ -1,7 +1,6 @@
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false
ecmaVersion: 2022
},
plugins: ['ghost'],
extends: [

View file

@ -19,7 +19,6 @@
"access": "public"
},
"devDependencies": {
"@babel/eslint-parser": "7.16.5",
"c8": "7.11.0",
"mocha": "9.1.3",
"should": "13.2.3",

View file

@ -1,7 +1,6 @@
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false
ecmaVersion: 2022
},
plugins: ['ghost'],
extends: [

View file

@ -19,7 +19,6 @@
"access": "public"
},
"devDependencies": {
"@babel/eslint-parser": "7.16.5",
"c8": "7.11.0",
"mocha": "9.1.3",
"rewire": "^6.0.0",