-
-
Notifications
You must be signed in to change notification settings - Fork 94
prettier-atom failed: CLIEngine is not a constructor (aka what about eslint v8+ support) #1210
Comments
@M1CK431 are you using prettier-eslint with prettier-atom? This should already be working fine if you are not. If you are, the error you are getting is because prettier-eslint is not eslint 8 compatible (yet). See: prettier/prettier-eslint#656 I would highly recommend, however, that you drop using prettier-eslint in your projects and instead use https://github.com/prettier/eslint-config-prettier and https://github.com/prettier/eslint-plugin-prettier to just have eslint run your formatting. |
Hi @robwise, sorry for my late reply. Here is my dev dependencies (from {
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0-rc.1",
"@vue/cli-plugin-eslint": "~5.0.0-rc.1",
"@vue/cli-plugin-router": "~5.0.0-rc.1",
"@vue/cli-service": "~5.0.0-rc.1",
"autoprefixer": "^10.4.0",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"naive-ui": "^2.21.4",
"postcss": "^8.4.4",
"prettier": "^2.4.1",
"tailwindcss": "^3.0.0"
}
} As you can see, there isn't ls -l node_modules/prettier-eslint
ls: cannot access 'node_modules/prettier-eslint': No such file or directory In addition, In Atom, I'm using EDIT: here is my module.exports = {
root: true,
env: { node: true },
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"plugin:prettier/recommended"
],
parserOptions: { parser: "@babel/eslint-parser" },
rules: {
"prettier/prettier": [
"warn",
{ trailingComma: "none", arrowParens: "avoid" }
],
"vue/multi-word-component-names": "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
}
}; Any idea? 🥺 |
up! @robwise 🙏 🙃 |
Sharing in case it helps. I created a brand new folder with nothing in it and ran I then added a module.exports = {
arrowParens: 'always',
semi: false,
singleQuote: true,
trailingComma: 'es5',
} Making any modification that would trigger one of the formatting rules would cause I then added a module.exports = {
extends: []
} Making simple formatting changes to this file caused I then added I then attempted to make a formatting change to both of the above files and each time was presented with a Downgrading This is with
|
@robwise premature close. prettier-eslint was updated and this issue still occurs. |
Also getting this issue with eslint However, if I uncheck |
After upgrading eslint to v8+:

Eslint v8 is out since about 2 months now. Is there any plan to support it soon?
The text was updated successfully, but these errors were encountered: