Skip to content

Support `CallExpression`

Compare
Choose a tag to compare
@francoismassart francoismassart released this 15 Apr 20:47
· 345 commits to master since this release

You can parse TemplateLiteral string used as argument in a CallExpression.
The callee's name must be whitelisted, the default config accepts ctl aka the tiny utility classnames-template-literals from netlify.

You can specify one or more callee names by setting the callees option which expects an array of strings.

Only works for the classnames-order rule for now

FIXES

  • [BUG] Single quotes are replaced by double quotes #4

MINOR

  • Formatted code using Prettier
  • Refact
  • schema meta