mdx-js / eslint-mdx

ESLint Parser/Plugin for MDX
https://npmjs.org/eslint-plugin-mdx
MIT License
263 stars 32 forks source link

Add no-multi-str to overrides config #27

Closed cdfa closed 5 years ago

cdfa commented 5 years ago

Due to https://github.com/mdx-js/mdx/issues/195, we can't use multi-line template strings in MDX (for use with styled-components for example). Therefore, I think we should disable no-multi-str in the overrides config.

JounQin commented 5 years ago

@cdfa But it does work without empty line:

export default () => `<div>
content
</div>`

I tested it on https://mdxjs.com/playground/

cdfa commented 5 years ago

Hmm, my apologies, it seems to be an issue with another package and not mdx in general.