question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`camelCase` option is not working

See original GitHub issue

Describe the bug As title, the generated definition is {}

To Reproduce Steps to reproduce the behavior:

{
  "plugins": [
      {
        "name": "typescript-plugin-css-modules",
        "options": {
          "camelCase": "camelCase",
          "customMatcher": "\\.m\\.less$"
        }
      }
    ]
}

I’ve already have:

declare module '*.less' {
  const styles: Record<string, string>;
  export = styles;
}

and

// workspace `settings.json`
{
  "settings": {
    "typescript.tsdk": "node_modules/typescript/lib"
  }
}

Expected behavior No error

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

  • OS: macOS Catalina

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JounQincommented, Oct 20, 2019

@mrmckeb In the release page, it’s named localsConvention?

1reaction
mrmckebcommented, Oct 20, 2019

Hi @JounQin, we’ve just released v2.0.0 which resolves this issue (the rule is now renamed to classnameTransform).

Release notes and migration steps can be found here: https://github.com/mrmckeb/typescript-plugin-css-modules/releases/tag/v2.0.0

Please let me know if you have any other issues or feedback! And thanks for your patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CamelCase not working in net core 6 web api - Stack Overflow
After many tries I solved this problem. In latest version there is no default issue with "BaseController" but same issue with ...
Read more >
camelcase-keys - npm
Convert object keys to camel case. ... Start using camelcase-keys in your project by running `npm i ... camelcaseKeys(input, options?)
Read more >
Grid property display issues in .NET Core 6.0 application ...
Grid property display issues in .NET Core 6.0 application (suspect camel case problem - but JSON Serialization tips don't work!)
Read more >
CamelCase should be a page-level option | Confluence ... - Jira
CamelCasing should be able to be turned off for a whole block of text, not just one or two words. We have thousands...
Read more >
camelcase - ESLint - Pluggable JavaScript Linter
This rule has an object option: "properties": "always" (default) enforces camelcase style for property names; "properties": "never" does not check property ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found