v10.16.3
npm 6.12.0
6.6.0
10.0.3
const linter = new CLIEngine({
fix: program.fix,
ignorePattern: [],
useEslintrc: false,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
cwd: process.cwd(),
env: ['browser'],
plugins: [
'html'
],
rules,
});
.eslintrc.js
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
plugins: [
'html'
],
'rules': {}
};
Run your own frame to run
Failed to load parser 'babel-eslint' declared in 'CLIOptions': Cannot find module 'babel-eslint'
Sorry, English is not good.
It's hard to triage what's going on with the limited information we have here. Could you also include the following (and any other info you think would be helpful!):
Thanks!
@qianzhangsheng solved on my end with downgrading eslint to v4.x:
npm -g i eslint@4
Thanks @dr-dimitru the same here I had to downgrade eslint.
@aeciolevy I'm still on [email protected], while latest is v7
Wonder why they won't make it compatible 馃
@dr-dimitru that's super weird. This has been pointed out 6 months ago. :(
Thank you for the PR. Now that @babel/eslint-parser has been released, we are making this repository read-only. If this is a change you would still like to advocate for, please reopen this in the babel/babel monorepo.