Files
movie-advisor/.eslintrc.json
T
2024-10-28 17:20:05 +02:00

43 lines
1.0 KiB
JSON

{
"extends": ["next/core-web-vitals", "plugin:tailwindcss/recommended", "prettier"],
"plugins": ["prettier", "simple-import-sort", "tailwindcss"],
"rules": {
"@next/next/no-img-element": "off",
"tailwindcss/classnames-order": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"quotes": ["error", "single"],
"prettier/prettier": [
"warn",
{
"endOfLine": "auto"
}
]
},
"settings": {
"tailwindcss": {
"config": "./tailwind.config.js"
}
},
"overrides": [
{
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"],
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
["^react", "^@?\\w"],
["^(@|components)(/.*|$)"],
["^\\u0000"],
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
["^.+\\.?(css)$"]
]
}
]
}
}
]
}