Skip to content

Commit

Permalink
Make eslint rules not require yield for generators, and added functio…
Browse files Browse the repository at this point in the history
…n naming standards
  • Loading branch information
CMCDragonkai committed May 11, 2022
1 parent ce8e08a commit 758a9d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"no-constant-condition": 0,
"no-useless-escape": 0,
"no-console": "error",
"require-yield": 0,
"eqeqeq": ["error", "smart"],
"spaced-comment": [
"warn",
Expand Down Expand Up @@ -113,6 +114,12 @@
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "function",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
Expand Down

0 comments on commit 758a9d2

Please sign in to comment.