Skip to content

Commit

Permalink
review eslint core rules: add some rules for generators
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 15, 2023
1 parent 34d3257 commit 56cd6ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/eslint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ const base = {
'eol-last': [ERROR, ALWAYS],
// disallow space between function identifier and application
'func-call-spacing': ERROR,
// require spacing around the `*` in `function *` expressions
'generator-star-spacing': [ERROR, 'both'],
// enforce the location of arrow function bodies
'implicit-arrow-linebreak': [ERROR, 'beside'],
// enforce consistent indentation
Expand Down Expand Up @@ -365,6 +367,8 @@ const base = {
'template-curly-spacing': [ERROR, ALWAYS],
// require or disallow the Unicode Byte Order Mark
'unicode-bom': [ERROR, NEVER],
// require spacing around the `*` in `yield *` expressions
'yield-star-spacing': [ERROR, 'both'],

// import:
// ensure all imports appear before other statements
Expand Down

0 comments on commit 56cd6ff

Please sign in to comment.