Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions configs/ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ export default defineConfig([
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-deprecated': 'warn',
// ----
// TypeScript reports all of these rules as part of normal type checking,
// and the plugin re-parses the whole import graph to do it.
// https://typescript-eslint.io/troubleshooting/typed-linting/performance#eslint-plugin-import
// Note: import/no-unresolved stays on, since tsc accepts any path matched by a
// wildcard (e.g. Next's '*.module.css') without checking that the file exists.
'import/named': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default-member': 'off',
// ----
'import/order': [
'error',
{
Expand Down