Collection of React portal based components
This is raw doc (mostly garbage).
add linter: doc- Add Readme
- Add Dropdown component
- Add Tooltip component
- Add Popover component
- Add Modal component
- Automatically update
gh-pages
Add dependency to specific package:
lerna add react packages/portal --peer
Add dependency to root of monorepo:
yarn add prettier --dev -W
typescript-lint (useful links):
- typescript-eslint/typescript-eslint#111
- https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md
To setup your editor to automatically run ESLint's automatic fix command (i.e. eslint --fix) whenever a file is saved set following option in settings.json
in VSCode:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
Project uses husky
and lint-staged
to lint code before commit
Docs have written using nextjs
.
We use aliases to packages
using tsconfig.json
paths
property:
// docs/tsconfig.json
{
"compilerOptions": {
"baseUrl": "../",
"paths": {
"@teleport/*": [
"packages/*/src"
]
}
},
}
It allows us to write imports in following format:
import { usePortal } from '@teleport/portal'