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

Make the use case more clear in the Readme #2

Open
kobelobster opened this issue Apr 11, 2016 · 1 comment
Open

Make the use case more clear in the Readme #2

kobelobster opened this issue Apr 11, 2016 · 1 comment

Comments

@kobelobster
Copy link

Hello,

I'm a backend developer, so I'm always looking for libraries which help me be more professional in the frontend. I stumbled upon this library but have some questions about the use case.

Is this library only for HTML files? Or does it also go through JavaScript and check if I somewhere apply a class via JS to a module? Also, what about php files? Let's say I'm building my class like this

$className = 'class-' . rand(0, 10);

This creates a "random" class name. What if I never use the class directly in HTML/JS but only in the php files. Will this be able to do this?

So in short: What files does the library check?

HTML ?
JS ?
PHP ?

Would be awesome if you could put this type of information somewhere.

@komachi
Copy link
Owner

komachi commented Apr 11, 2016

For now it's check only HTML files. Parsing JS will be probably supported in future, PHP is very unlikely, but you can use ignore or ignoreRegexp options. So with your example ignoreRegexp: [/class-.*/] does the trick.

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

2 participants