Skip to content

Enable some typescript-eslint recommended rules#500

Open
ikeyan wants to merge 1 commit intoobsidianmd:masterfrom
ikeyan:no-unsafe-function-type
Open

Enable some typescript-eslint recommended rules#500
ikeyan wants to merge 1 commit intoobsidianmd:masterfrom
ikeyan:no-unsafe-function-type

Conversation

@ikeyan
Copy link
Copy Markdown
Contributor

@ikeyan ikeyan commented Feb 7, 2026

Enabled these rules:

  • @typescript-eslint/no-unsafe-function-type
  • @typescript-eslint/no-this-alias
  • @typescript-eslint/prefer-as-const

- @typescript-eslint/no-unsafe-function-type
- @typescript-eslint/no-this-alias
- @typescript-eslint/prefer-as-const
},

rules: {
'@typescript-eslint/interface-name-prefix': 'off',
Copy link
Copy Markdown
Contributor Author

@ikeyan ikeyan Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rule was removed and its alternative is @typescript-eslint/naming-convention, which is not recommended.

'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
// '@typescript-eslint/no-use-before-define': ['error', { 'functions': false, 'classes': false }],
'@typescript-eslint/no-empty-function': 'off',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@typescript-eslint/no-empty-function is not recommended now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant