Skip to content

Commit

Permalink
fix: disable unicorn/no-await-expression-member
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Nov 21, 2021
1 parent 3e606f4 commit 5b35805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cfg/eslint-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,5 +370,6 @@ module.exports = {
'@typescript-eslint/unbound-method': 0,
'@typescript-eslint/no-unsafe-argument': 0, // prevents "legit" use of `any`
'unicorn/prefer-export-from': 0, // breaks auto-imports in IntelliJ Idea
'unicorn/no-await-expression-member': 0, // some cases are better as-is
},
}
2 changes: 1 addition & 1 deletion src/bin/lint-staged-def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runScript(async () => {
// lint-staged is ESM since 12.0
// const lintStaged = await import('lint-staged')
// eslint-disable-next-line no-eval
const lintStaged = (await eval(`import('lint-staged')`)).default
const { default: lintStaged } = await eval(`import('lint-staged')`)
const success = await lintStaged({
configPath: config,
})
Expand Down

0 comments on commit 5b35805

Please sign in to comment.