Replace deprecated babel-eslint with @babel/eslint-parser

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-11-15 01:33:11 +01:00
parent 929cd8a60d
commit 721a28bef4
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -8,7 +8,7 @@
const Module = require('module') const Module = require('module')
const hacks = [ const hacks = [
'babel-eslint', '@babel/eslint-parser',
'eslint-plugin-vue', 'eslint-plugin-vue',
] ]
@ -42,9 +42,10 @@ module.exports = {
process: true, process: true,
}, },
parser: '@babel/eslint-parser',
parserOptions: { parserOptions: {
ecmaVersion: 2020, ecmaVersion: 2020,
parser: 'babel-eslint', requireConfigFile: false,
}, },
plugins: [ plugins: [