[assets] Document functions and variables:
- Use expressive names for variables. - Add docblocks for each function. - Add ESLint rules for comments.
This commit is contained in:
parent
5d3d00f694
commit
52d2f0e331
3 changed files with 132 additions and 37 deletions
18
.eslintrc.js
18
.eslintrc.js
|
@ -29,7 +29,25 @@ module.exports = {
|
|||
|
||||
// Stylistic Issues
|
||||
"arrow-spacing": "error",
|
||||
"capitalized-comments": [
|
||||
"warn",
|
||||
"always",
|
||||
{
|
||||
"ignoreConsecutiveComments": true
|
||||
},
|
||||
],
|
||||
"keyword-spacing": "error",
|
||||
"lines-around-comment": [
|
||||
"error",
|
||||
{
|
||||
"beforeBlockComment": true,
|
||||
"beforeLineComment": true,
|
||||
"allowBlockStart": true,
|
||||
"allowClassStart": true,
|
||||
"allowObjectStart": true,
|
||||
"allowArrayStart": true,
|
||||
},
|
||||
],
|
||||
"no-multiple-empty-lines": [
|
||||
"error",
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue