You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, It would be nice if it would be possible to configure what type of casing that should be used (seen in context with the newly added isTsx option).
An alternative workaround is ofcourse using the name-assets-files-by-pattern parser to enforce casing on the filename, but that would also make the isTsx option dedundant.
Here is my asset configuration for reference and if you have any optimizations or suggestions.
{name: "Assets",path: "packages/core/assets/icons",filter: {types: ["vector"]},parsers: [{name: "replace-string",options: {keys: ["name"],regex: {pattern: "\\d+",},trim: true}},{name: "svgo",options: {svgo: {plugins: [{removeDimensions: true},{removeAttrs: {attrs: "*:(fill|stroke)"}}]}}},{name: "pascalcasify",options: {keys: ["name"]}},{// this part here I would like to omit, but currently need to enforce casingname: "name-assets-files-by-pattern",options: {pattern: "{{name}}.tsx"}},{name: "svg-to-jsx",options: {prepend: "import React from 'react';",variableFormat: "pascalCase",//filenameFormat: "pascalCase" <-- my initial suggestionwrapper: {"tag": "div","className": "rds-icon"},formatConfig: {isTsx: true,}}}],}
-- David
The text was updated successfully, but these errors were encountered:
parsers/parsers/svg-to-jsx/svg-to-jsx.parser.ts
Line 161 in 4de22b3
Hi, It would be nice if it would be possible to configure what type of casing that should be used (seen in context with the newly added isTsx option).
An alternative workaround is ofcourse using the
name-assets-files-by-pattern
parser to enforce casing on the filename, but that would also make theisTsx
option dedundant.Here is my asset configuration for reference and if you have any optimizations or suggestions.
-- David
The text was updated successfully, but these errors were encountered: