fix(eslint-config): `no-explicit-any` as `warn` (#304)
* fix(eslint-config): `no-explicit-any` as `warn` * changesetpull/305/head
parent
cdc93d61dd
commit
6f236ce823
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@hono/eslint-config': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: `no-explicit-any` as `warn`
|
|
@ -54,6 +54,7 @@ module.exports = defineConfig({
|
||||||
|
|
||||||
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
|
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
|
||||||
'@typescript-eslint/no-empty-interface': 'off',
|
'@typescript-eslint/no-empty-interface': 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'warn',
|
||||||
'@typescript-eslint/no-inferrable-types': 'off',
|
'@typescript-eslint/no-inferrable-types': 'off',
|
||||||
'@typescript-eslint/no-var-requires': 'off',
|
'@typescript-eslint/no-var-requires': 'off',
|
||||||
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
|
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
|
||||||
|
|
|
@ -6,7 +6,7 @@ describe('SwaggerUIOption Rendering', () => {
|
||||||
renderSwaggerUIOptions({
|
renderSwaggerUIOptions({
|
||||||
configUrl: 'https://petstore3.swagger.io/api/v3/openapi.json',
|
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', () => {
|
it('renders correctly with presets', () => {
|
||||||
|
@ -59,7 +59,7 @@ describe('SwaggerUIOption Rendering', () => {
|
||||||
renderSwaggerUIOptions({
|
renderSwaggerUIOptions({
|
||||||
url: 'https://petstore3.swagger.io/api/v3/openapi.json',
|
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', () => {
|
it('renders correctly with urls', () => {
|
||||||
|
@ -82,7 +82,7 @@ describe('SwaggerUIOption Rendering', () => {
|
||||||
renderSwaggerUIOptions({
|
renderSwaggerUIOptions({
|
||||||
layout: 'StandaloneLayout',
|
layout: 'StandaloneLayout',
|
||||||
})
|
})
|
||||||
).toEqual("layout: 'StandaloneLayout'")
|
).toEqual('layout: \'StandaloneLayout\'')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders correctly with docExpansion', () => {
|
it('renders correctly with docExpansion', () => {
|
||||||
|
@ -90,7 +90,7 @@ describe('SwaggerUIOption Rendering', () => {
|
||||||
renderSwaggerUIOptions({
|
renderSwaggerUIOptions({
|
||||||
docExpansion: 'list',
|
docExpansion: 'list',
|
||||||
})
|
})
|
||||||
).toEqual("docExpansion: 'list'")
|
).toEqual('docExpansion: \'list\'')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('renders correctly with maxDisplayedTags', () => {
|
it('renders correctly with maxDisplayedTags', () => {
|
||||||
|
|
Loading…
Reference in New Issue