fix: order of tailwind classes

This commit is contained in:
ner committed 2024-10-05 17:23:37 +03:00
1 parent 5528a84ee7
commit 3b03df3ff5
33 files changed
+135 -1250

No files matched your search

+16 -38
View File
@@ -1,54 +1,32 @@
{
"extends": "next/core-web-vitals",
"plugins": [
"simple-import-sort"
],
"extends": ["next/core-web-vitals", "plugin:tailwindcss/recommended"],
"plugins": ["simple-import-sort", "tailwindcss"],
"rules": {
"tailwindcss/classnames-order": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"quotes": ["error", "single"]
},
"settings": {
"tailwindcss": {
// Tailwind config path, relative to the project root
"config": "./tailwind.config.js"
}
},
"overrides": [
{
"files": [
"*.js",
"*.jsx",
"*.ts",
"*.tsx"
],
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"],
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
// Packages `react` related packages come first.
[
"^react",
"^@?\\w"
],
// Internal packages.
[
"^(@|components)(/.*|$)"
],
// Side effect imports.
[
"^\\u0000"
],
// Parent imports. Put `..` last.
[
"^\\.\\.(?!/?$)",
"^\\.\\./?$"
],
// Other relative imports. Put same-folder imports and `.` last.
[
"^\\./(?=.*/)(?!/?$)",
"^\\.(?!/?$)",
"^\\./?$"
],
// Style imports.
[
"^.+\\.?(css)$"
]
["^react", "^@?\\w"],
["^(@|components)(/.*|$)"],
["^\\u0000"],
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
["^.+\\.?(css)$"]
]
}
]