Functions (camelCase)
function handleClick(...) {}
function getProjectStatus(...) {}
// TODO: look into common function naming conventions ("getX", "generateX", "displayX", "convertX")
Variables - immutable constants (UPPER_CASE)
For "testing" variables (fixtures/mock data), prepend FX_
:
const FX_PROJECTS: TDocBE[] = [...]
Types/Interfaces (PascalCase)
Component prop types:
interface Props {...}
main component (props are not exported)
interface ComponentProps {...}
when main component's props are exported, prepend component name
local components (multiple components per file)
Function parameter/argument types (when not typed inline):
interface Params {...}
main function (params are not exported)
interface FunctionParams {...}
when main function's params are exported, prepend function name
local functions (multiple components per file)
All other types -- start with "T":
type TProjectStatus = 'x' | 'y' | 'z'