Thanks for wanting to contribute! To add a tip, follow these three easy steps.
There’re two kinds of tips:
- “✅ Safe to use by default” one and
- “⚠ Use with caution” one
“✅ Safe to use by default” is applicable when a reader can apply the tip without additional thinking. For example, the babel-plugin-lodash
tip is safe to use because a reader can just turn it on, and it won’t break anything.
“⚠ Use with caution” is applicable when using the tip requires additional thinking. For example, the lodash-webpack-plugin
tip should be used with caution because blindly turning it on might break the app.
If you’re in doubt, ask us!
All tips should follow a template. This helps readers extract the necessary information faster.
Usually, tips have the following template:
### TIP NAME
> TIP KIND / HOW TO ENABLE / Added by [AUTHOR](AUTHOR LINK)
TIP TEXT
Here’s what each part means:
TIP NAME
is, well, the tip name. Fill it as you like.TIP KIND
is either “✅ Safe to use by default” or “⚠ Use with caution”HOW TO ENABLE
is either:[How to enable](LINK)
– a link to a page that describes how to enable the tip (e.g. a link to webpack plugin docs that describe enabling the plugin) orHow to enable is ↓
if there’re no corresponding docs (in this case, describe the necessary steps in the text)
AUTHOR
andAUTHOR LINK
is your name, twitter username, or whatever.TIP TEXT
is the text of the tip.
- Format the code to follow Google JavaScript style guide (specifically: use 2 spaces for indentation, add trailing commas, use camel space naming)