Skip to content

Instantly share code, notes, and snippets.

@dingo-d
Created August 23, 2024 07:12
Show Gist options
  • Save dingo-d/a6de7ff965fa229ac0e70239b75227c5 to your computer and use it in GitHub Desktop.
Save dingo-d/a6de7ff965fa229ac0e70239b75227c5 to your computer and use it in GitHub Desktop.
Tailwind phpstorm config - used for work with es tailwind frontend libs
{
"includeLanguages": {
"ftl": "html",
"jinja": "html",
"jinja2": "html",
"smarty": "html",
"tmpl": "gohtml",
"cshtml": "html",
"vbhtml": "html",
"razor": "html",
"json": "html",
"js": "javascript",
"plaintext": "html"
},
"files": {
"exclude": [
"**/.git/**",
"**/node_modules/**",
"**/.hg/**",
"**/.svn/**"
]
},
"emmetCompletions": true,
"classAttributes": [
"class",
"className",
"ngClass",
".*Class",
".*ClassName",
"additionalClass"
],
"colorDecorators": true,
"showPixelEquivalents": true,
"rootFontSize": 16,
"hovers": true,
"suggestions": true,
"codeActions": true,
"validate": true,
"lint": {
"invalidScreen": "error",
"invalidVariant": "error",
"invalidTailwindDirective": "error",
"invalidApply": "error",
"invalidConfigPath": "error",
"cssConflict": "warning",
"recommendedVariantOrder": "warning"
},
"experimental": {
"configFile": null,
"classRegex": [
"\"twClasses\\w*\":\\s\"(.*)\"",
[
"\"twClasses\\w*\":\\s{([^}]*)}",
"\":\\s\"(.*)\""
],
"getTwClasses\\(attributes, manifest, '(.*)'\\)",
"getTwPart\\(.+, manifest, '(.*)'\\)",
"className:\\s[\"'](.*)[\"']",
"\\w+ClassName:\\s[\"'](.*)[\"']",
"\\additionalClass\\w*:\\s[\"'](.*)[\"']"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment