Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// linting via projectService. Same three strictTypeChecked relaxations as the consumers so
// re-exported / moved source stays lint-consistent across the fleet.
import baseConfig from '@hono/eslint-config';
import rdlabo from '@rdlabo/eslint-plugin-rules';
import tseslint from 'typescript-eslint';

export default tseslint.config(
Expand All @@ -20,10 +21,22 @@ export default tseslint.config(
},
},
{
plugins: {
'@rdlabo/rules': rdlabo,
},
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/require-await': 'off',
'@rdlabo/rules/restrict-try-block': [
'error',
{
allowPromise: false,
allowRxjs: false,
allowInSignal: false,
maxLines: 3,
},
],
// 相対 import には明示拡張子(.js)を必須化する。source は bundler 前提
// (module:ESNext / moduleResolution:Bundler)で書くが、tsc は specifier を
// そのまま emit するため、拡張子が無いと dist が Node ESM で読めなくなり、
Expand Down
Loading
Loading