fix(eslint-config): `no-explicit-any` as `warn` (#304)

* fix(eslint-config): `no-explicit-any` as `warn`

* changeset
pull/305/head
Yusuke Wada 2023-12-13 19:15:00 +09:00 committed by GitHub
parent cdc93d61dd
commit 6f236ce823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/eslint-config': patch
---
fix: `no-explicit-any` as `warn`

View File

@ -54,6 +54,7 @@ module.exports = defineConfig({
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],

View File

@ -6,7 +6,7 @@ describe('SwaggerUIOption Rendering', () => {
renderSwaggerUIOptions({
configUrl: 'https://petstore3.swagger.io/api/v3/openapi.json',
})
).toEqual("configUrl: 'https://petstore3.swagger.io/api/v3/openapi.json'")
).toEqual('configUrl: \'https://petstore3.swagger.io/api/v3/openapi.json\'')
})
it('renders correctly with presets', () => {
@ -59,7 +59,7 @@ describe('SwaggerUIOption Rendering', () => {
renderSwaggerUIOptions({
url: 'https://petstore3.swagger.io/api/v3/openapi.json',
})
).toEqual("url: 'https://petstore3.swagger.io/api/v3/openapi.json'")
).toEqual('url: \'https://petstore3.swagger.io/api/v3/openapi.json\'')
})
it('renders correctly with urls', () => {
@ -82,7 +82,7 @@ describe('SwaggerUIOption Rendering', () => {
renderSwaggerUIOptions({
layout: 'StandaloneLayout',
})
).toEqual("layout: 'StandaloneLayout'")
).toEqual('layout: \'StandaloneLayout\'')
})
it('renders correctly with docExpansion', () => {
@ -90,7 +90,7 @@ describe('SwaggerUIOption Rendering', () => {
renderSwaggerUIOptions({
docExpansion: 'list',
})
).toEqual("docExpansion: 'list'")
).toEqual('docExpansion: \'list\'')
})
it('renders correctly with maxDisplayedTags', () => {