Skip to content

Commit

Permalink
Tweaked the eslint config.
Browse files Browse the repository at this point in the history
Refs #156
  • Loading branch information
The4thLaw committed Mar 27, 2024
1 parent a1a916c commit 07c7e4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/demyo-vue-frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const compat = new FlatCompat({
})

const commonRules = {
// Note: require-await is off because TypeScript offers a better alternative

// Possible errors
// Logging to the console is OK in some cases
'no-console': 'off',
Expand Down Expand Up @@ -49,7 +51,6 @@ const commonRules = {
'no-useless-return': 'error',
'operator-linebreak': ['error', 'before'],
radix: 'warn',
'require-await': 'error',
'wrap-iife': 'error',
// Used to explicitely mark promises as not awaited
'no-void': ['error', { allowAsStatement: true }],
Expand Down

0 comments on commit 07c7e4d

Please sign in to comment.