38 lines
805 B
JSON
38 lines
805 B
JSON
{
|
|
"extends": [
|
|
"next/core-web-vitals"
|
|
],
|
|
"plugins": [
|
|
"validate-filename"
|
|
],
|
|
"rules": {
|
|
"validate-filename/naming-rules": [
|
|
"error",
|
|
{
|
|
"rules": [
|
|
{
|
|
"case": "kebab",
|
|
"target": "**/components/**",
|
|
"patterns": "^[a-z0-9-]+.tsx$"
|
|
},
|
|
{
|
|
"case": "kebab",
|
|
"target": "**/app/**",
|
|
"patterns": "^(default|page|layout|loading|error|not-found|route|template).(tsx|ts)$"
|
|
},
|
|
{
|
|
"case": "camel",
|
|
"target": "**/hooks/**",
|
|
"patterns": "^use"
|
|
},
|
|
{
|
|
"case": "camel",
|
|
"target": "**/providers/**",
|
|
"patterns": "^[a-zA-Z]*Provider"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|