welcome! We are very happy that you are here and look forward to your interest in participating in Luckysheet contributions. Of course, before you participate in the Luckysheet contribution, please make sure to read the following full text:
We promise to respect all those who participated in the contribution, not limited to those who raised questions, contributed documents and code, resolved bugs and other contributions;
We are obliged to abide by local laws and regulations, and we reject all behaviors with legal risks;
We oppose any participant's derogatory comments, personal attacks, harassment or insult to others, and other non-professional behaviors;
We have the right and responsibility to delete or edit content that does not comply with this code of conduct, not limited to code, issues, wikis, documents and others. Participants who do not comply with the code of conduct may be removed from the team;
We accept the supervision of anyone, and anyone can report to us the facts that are found to be inconsistent with this code of conduct through problem feedback.
Before you submit features/improvements, you should pay attention to the following points:
Specific steps:
In Luckysheet's Issues list, there are many issues created by others that have not been repaired. If you are interested, you can claim these issues. The steps to claim are as follows:
Go to the Github page of Luckysheet, and click the Fork button in the upper right corner to proceed.
git clone https://github.com/<your_github_name>/Luckysheet.git
cd Luckysheet
gitremote add upstream https://github.com/mengshukeji/Luckysheet.git
git checkout -b dev
git add.
npm run commit
git push origin dev
git fetch upstream
git rebase upstream/master
git status # View conflict files and modify conflicts
git add.
git rebase --continue
When submitting the git rebase --continue command, if vim prompts to edit the commit information, you can add your changes, then save and exit
For vim commands, please refer to the vim
git push origin dev
If you are prompted to pull first, you can pull it before submitting
git pull origin dev
git push origin dev
If the vim prompt to edit the commit information pops up, you can exit directly through the vim command
For vim commands, please refer to vim
General code specification example
if (variable) { for (const item of items) {} } else if (variable2) { // Do something here }
// INCORRECT if (comparison) { if (variable) {
for (const item in items) {}
} else if (variable2) {
// Do something here
} } else { return }
* Do not use operands for chain comparison
```js
// CORRECT
if (cb) cb()
if (!cb || (cb === fn)) cb()
// INCORRECT
cb && cb()
(!cb || (cb === fn)) && cb()
All variables should be declared at the beginning of the block in alphabetical order ```js // CORRECT function foo () { const foo ='bar' const bar ='foo'
if (conditional) {}
...
return foo }
// INCORRECT
function foo () { const foo ='bar'
if (conditional) {}
const bar ='foo'
...
return foo }
* Return as soon as possible
```js
// CORRECT
if (condition) return'foo'
if (condition2) return'bar'
// Return must have a blank line above
return'fizz'
// INCORRECT
const variable =''
if (condition) {
variable ='foo'
} else if (condition2) {
variable ='bar'
} else {
variable ='fizz'
}
return variable
As long as anyone contributes to the Luckysheet project, you are the officially recognized Contributor of the Luckysheet project. There is no exact standard for growing from Contributor to Committer, and there is no expected timetable, but Committer candidates are generally A long-term active contributor, becoming Committer does not require a huge architectural improvement contribution, or how many lines of code contributions, contributing code, contributing documents, participating in mailing list discussions, helping to answer questions, etc., are all ways to increase their influence .
List of potential contributions (in no particular order):