Skip to content

Commit

Permalink
fix(eslint-config): update rules (#543)
Browse files Browse the repository at this point in the history
* fix(eslint-config): update rules

* add changeset
  • Loading branch information
yusukebe authored May 25, 2024
1 parent 5477712 commit ee6569d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-walls-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hono/eslint-config': patch
---

fix: update rules
24 changes: 17 additions & 7 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = defineConfig({
quotes: ['error', 'single'],
semi: ['error', 'never'],
'no-debugger': ['error'],
'no-duplicate-imports': 'error',
'no-empty': ['warn', { allowEmptyCatch: true }],
'no-process-exit': 'off',
'no-useless-escape': 'off',
Expand All @@ -34,17 +35,17 @@ module.exports = defineConfig({
destructuring: 'all',
},
],
'@typescript-eslint/ban-types': [
'sort-imports': [
'error',
{
types: {
Function: false,
'{}': false,
},
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
},
],
'sort-imports': 0,
'import/order': [2, { alphabetize: { order: 'asc' } }],

'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],

'node/no-missing-import': 'off',
'node/no-missing-require': 'off',
Expand All @@ -53,6 +54,15 @@ module.exports = defineConfig({
'node/no-unpublished-require': 'off',
'node/no-unsupported-features/es-syntax': 'off',

'@typescript-eslint/ban-types': [
'error',
{
types: {
Function: false,
'{}': false,
},
},
],
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
Expand Down

0 comments on commit ee6569d

Please sign in to comment.