chore: codify React component style
This commit is contained in:
+26
-2
@@ -15,7 +15,31 @@
|
||||
},
|
||||
"linter": {
|
||||
"rules": {
|
||||
"preset": "recommended"
|
||||
"preset": "recommended",
|
||||
"nursery": {
|
||||
"useReactFunctionComponentDefinition": {
|
||||
"level": "error",
|
||||
"options": {
|
||||
"namedComponents": "arrowFunction"
|
||||
}
|
||||
}
|
||||
},
|
||||
"style": {
|
||||
"noDefaultExport": "error",
|
||||
"useExportsLast": "error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"includes": ["vite.config.ts", "vitest.config.ts"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noDefaultExport": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user