Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
feat: update rules (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnkgrc authored Apr 27, 2021
1 parent 986a7e3 commit 37d92f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rules/prettier.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: ['prettier'],
extends: ['prettier', 'prettier/@typescript-eslint'],
extends: ['prettier'],
rules: {
'prettier/prettier': [
'error',
Expand Down
3 changes: 3 additions & 0 deletions rules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ module.exports = {
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',

// we must disable the base rule as it can report incorrect errors
'no-use-before-define': 'off',

// rules which are not yet released, enable with next update
// '@typescript-eslint/no-unsafe-call': 'error',
// '@typescript-eslint/no-unsafe-member-access': 'error',
Expand Down

0 comments on commit 37d92f1

Please sign in to comment.