Replace deprecated babel-eslint with @babel/eslint-parser
This commit is contained in:
parent
85297dd1a1
commit
3578d61c0a
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
'max-len': [ 2, { code: 140 } ],
|
||||
'no-console': 1,
|
||||
},
|
||||
parser: 'babel-eslint',
|
||||
parser: '@babel/eslint-parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 8,
|
||||
ecmaFeatures: {
|
||||
|
|
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
'max-len': [ 2, { 'code': 140 } ],
|
||||
'no-console': 1
|
||||
},
|
||||
parser: 'babel-eslint',
|
||||
parser: '@babel/eslint-parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 8,
|
||||
ecmaFeatures: {
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
"devDependencies": {
|
||||
"@babel/cli": "7.12.8",
|
||||
"@babel/core": "7.12.9",
|
||||
"@babel/eslint-parser": "^7.16.5",
|
||||
"@babel/polyfill": "7.12.1",
|
||||
"@babel/preset-env": "7.12.7",
|
||||
"@babel/register": "7.12.1",
|
||||
|
@ -49,7 +50,6 @@
|
|||
"@wordpress/babel-preset-default": "3.0.2",
|
||||
"@wordpress/eslint-plugin": "7.3.0",
|
||||
"autoprefixer": "9.8.6",
|
||||
"babel-eslint": "10.1.0",
|
||||
"chai": "4.2.0",
|
||||
"chai-as-promised": "7.1.1",
|
||||
"config": "3.3.3",
|
||||
|
@ -64,7 +64,6 @@
|
|||
"jest": "^25.1.0",
|
||||
"lint-staged": "9.5.0",
|
||||
"mocha": "7.2.0",
|
||||
"node-sass": "6.0.1",
|
||||
"prettier": "npm:wp-prettier@2.0.5",
|
||||
"stylelint": "^13.8.0",
|
||||
"stylelint-config-wordpress": "17.0.0",
|
||||
|
|
|
@ -215,6 +215,7 @@ importers:
|
|||
jest: ^25.1.0
|
||||
lint-staged: 9.5.0
|
||||
mocha: 7.2.0
|
||||
node-sass: 6.0.1
|
||||
prettier: npm:wp-prettier@2.0.5
|
||||
stylelint: ^13.8.0
|
||||
stylelint-config-wordpress: 17.0.0
|
||||
|
@ -256,6 +257,7 @@ importers:
|
|||
jest: 25.5.4
|
||||
lint-staged: 9.5.0
|
||||
mocha: 7.2.0
|
||||
node-sass: 6.0.1
|
||||
prettier: /wp-prettier/2.0.5
|
||||
stylelint: 13.13.1
|
||||
stylelint-config-wordpress: 17.0.0_stylelint@13.13.1
|
||||
|
@ -8637,7 +8639,7 @@ packages:
|
|||
create-hash: 1.2.0
|
||||
inherits: 2.0.4
|
||||
ripemd160: 2.0.2
|
||||
safe-buffer: 5.1.2
|
||||
safe-buffer: 5.2.1
|
||||
sha.js: 2.4.11
|
||||
|
||||
/create-require/1.1.1:
|
||||
|
|
Loading…
Reference in New Issue