1
0
Fork 0

[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:
Fabien Basmaison 2021-04-06 16:17:20 +02:00
parent 5d3d00f694
commit 52d2f0e331
3 changed files with 132 additions and 37 deletions

View file

@ -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",
{