fix(eslint-config): update rules (#543)
* fix(eslint-config): update rules * add changesetpull/544/head
parent
54777128b8
commit
ee6569d62b
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/eslint-config': patch
|
||||
---
|
||||
|
||||
fix: update rules
|
|
@ -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',
|
||||
|
@ -34,6 +35,25 @@ module.exports = defineConfig({
|
|||
destructuring: 'all',
|
||||
},
|
||||
],
|
||||
'sort-imports': [
|
||||
'error',
|
||||
{
|
||||
ignoreCase: false,
|
||||
ignoreDeclarationSort: true,
|
||||
ignoreMemberSort: false,
|
||||
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
|
||||
},
|
||||
],
|
||||
|
||||
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
|
||||
|
||||
'node/no-missing-import': 'off',
|
||||
'node/no-missing-require': 'off',
|
||||
'node/no-deprecated-api': 'off',
|
||||
'node/no-unpublished-import': 'off',
|
||||
'node/no-unpublished-require': 'off',
|
||||
'node/no-unsupported-features/es-syntax': 'off',
|
||||
|
||||
'@typescript-eslint/ban-types': [
|
||||
'error',
|
||||
{
|
||||
|
@ -43,16 +63,6 @@ module.exports = defineConfig({
|
|||
},
|
||||
},
|
||||
],
|
||||
'sort-imports': 0,
|
||||
'import/order': [2, { alphabetize: { order: 'asc' } }],
|
||||
|
||||
'node/no-missing-import': 'off',
|
||||
'node/no-missing-require': 'off',
|
||||
'node/no-deprecated-api': 'off',
|
||||
'node/no-unpublished-import': 'off',
|
||||
'node/no-unpublished-require': 'off',
|
||||
'node/no-unsupported-features/es-syntax': 'off',
|
||||
|
||||
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
|
||||
'@typescript-eslint/no-empty-interface': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
|
|
Loading…
Reference in New Issue