Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pug templates in TemplateLiterals #151

Open
ezhlobo opened this issue Apr 19, 2018 · 0 comments
Open

Support pug templates in TemplateLiterals #151

ezhlobo opened this issue Apr 19, 2018 · 0 comments

Comments

@ezhlobo
Copy link
Member

ezhlobo commented Apr 19, 2018

Babel plugin babel-plugin-transform-react-pug becomes more popular and I want to set up linting of its templates as well.

We need to allow custom parsers for this linter or something else. So we can parse .js files, extract pug templates from there and lint only pug.

Example of javascript file:

import React from 'react'

const MyComponent = props => pug`
  div
    p= props.text
`

export default MyComponent

What should be linted in that file:

  div
    p= props.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant