I've got a project and the auto-format on line width is driving me insane. I tried setting it to 999
characters as some recommended, but then it FORCES all of my lines that I want to be broken up into one line.
I set "printWidth": 999
in my .prettierrc
and I set 'max-len': 'off'
in .eslintrc.cjs
and it now formats long lines in one line but it
Still yells at me saying to replace the spaces with newlines (
eslint(prettier/prettier)
) andIf I want to make a new line it forces me to put it back to one when I format...
How can I tell ESLint and Prettier to just leave me alone in terms of line length?
I don't want my lines forcibly reformatted and always underlined in red or orange. Also setting print width to Infinity
and false
does not work.
Related questions:
ESLint / Prettier -- enforce max-len / printWidth, but don't require it?
disable printWidth on prettier
https://github.com/prettier/prettier/issues/3468
https://prettier.io/docs/en/options.html
How to disable eslint rule max line length for paragraph in <template> of vue.js? (I'm not using Vue but still)