on-internet
← Community

how to support inline comments when using eslint-prettier/prettier?

Stack Overflow ·

i want to turn off the rule in prettier where it newlines an inline comment. my ESLint rule no-inline-comments is set to off or warn, so that is taken care of and works. turns out Prettier still wants to newline and inline comment: i have a setup in my VSCode where ESLint is handling prettier for JS and the Prettier extension is handling all the other languages. im also using the airbnb-base. here are my relevant configs: .eslintrc.json: { "extends": ["airbnb-base", "plugin:prettier/recommended"], "rules": { "no-console": 0, "no-plusplus": 0, "no-inline-comments": "off", "no-undef": "warn", "n

Comments

Sign in or sign up to comment and upvote.

No comments yet.