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

How to change jsx className behavior for css-modules #533

Closed
midgethoen opened this issue Mar 29, 2018 · 8 comments
Closed

How to change jsx className behavior for css-modules #533

midgethoen opened this issue Mar 29, 2018 · 8 comments

Comments

@midgethoen
Copy link

I'm trying to alter the behavior of emmet for classes in jsx to use a css module rather than a string:

abr current desired
div.a <div className="a"></div> <div className={styles.a}></div>

However, I can't seem to figure out how to achieve this. as for as I understand I need a custom filter to do this. and I'm not even sure if custom filters are possible.

Is somebody able to point me in the right direction?

@midgethoen
Copy link
Author

so I overlooked this sentence in the docs:

Each .js file located in extensions folder will be loaded and executed on plugin start-up. Use js files to create your own filters or actions: you can use Emmet modules and bindings to script your editor with JavaScript.

I'm now trying to get this to work

@midgethoen
Copy link
Author

So I'm using emmet as part of vscode. And although it does support configuring an extensionPath.
it only loads snippets.json and syntaxProfiles.json ..

Which took me a while to figure out 😕

so I guess im moving on to trying to understand how emmet integration works in vscode specifically

@kebot
Copy link

kebot commented Jun 25, 2018

Any update for this? I just moved from Atom, and in Atom you have that plugin: https://github.com/ambethia/emmet-jsx-css-modules

@mohammedgqudah
Copy link

Any updates?

@sergeche
Copy link
Member

sergeche commented Jul 1, 2019

Will try to add this feature in updated Emmet version

@wunnle
Copy link

wunnle commented Jul 31, 2019

Any updates on this?

@sergeche
Copy link
Member

Since I’m finishing Emmet 2 implementation, let’s continue discussion here: #589

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

6 participants
@sergeche @kebot @wunnle @midgethoen @mohammedgqudah and others