2023-01-20 19:04:25 +03:00
|
|
|
{
|
2023-01-24 01:20:35 +03:00
|
|
|
"eslint.validate": ["json"],
|
2023-01-26 02:59:34 +03:00
|
|
|
"cSpell.words": ["clsx", "hasura", "citus"],
|
2023-01-24 01:20:35 +03:00
|
|
|
"tailwindCSS.experimental.classRegex": [
|
2023-02-09 22:52:07 +03:00
|
|
|
// detects in simple variables like const twFoo = `pt-2`;
|
2023-01-24 01:20:35 +03:00
|
|
|
"tw\\w+ ?= ?`([^`]*)`",
|
2023-02-09 22:52:07 +03:00
|
|
|
// detects tw strings in clsx function calls like: clsx('pt-2', 'relative');
|
|
|
|
["clsx\\(([^)]*)\\)", "(?:'|\"|`)([^`]*)(?:'|\"|`)"],
|
|
|
|
// detects strings in objects and nested objects. Just prefix variable name with tw like so: const twStyleObject = {};
|
|
|
|
["tw\\w+ = {\\s+([^;]+)\\s+};", "(?:'|\"|`)([^`]*)(?:'|\"|`)"]
|
2023-01-24 01:20:35 +03:00
|
|
|
],
|
2023-02-28 10:14:59 +03:00
|
|
|
"tailwindCSS.rootFontSize": 14,
|
|
|
|
|
|
|
|
// adding this setting per this discussion on github:
|
|
|
|
// https://github.com/nrwl/nx/issues/9465#issuecomment-1080093295
|
|
|
|
"typescript.preferences.importModuleSpecifier": "project-relative"
|
2023-01-20 19:04:25 +03:00
|
|
|
}
|