UNPKG

@hono/eslint-config

Version:

ESLint Config for Hono projects

132 lines (70 loc) 7.22 kB
# @hono/eslint-config ## 2.1.0 ### Minor Changes - [#1772](https://github.com/honojs/middleware/pull/1772) [`e762ac00bb46d06ba2f92ab49af01fec23490230`](https://github.com/honojs/middleware/commit/e762ac00bb46d06ba2f92ab49af01fec23490230) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Update [`@typescript-eslint/no-unused-vars`](https://typescript-eslint.io/rules/no-unused-vars/) to match the behaviour of [`noUnusedLocals`](https://www.typescriptlang.org/tsconfig/#noUnusedLocals) and [`noUnusedParameters`](https://www.typescriptlang.org/tsconfig/#noUnusedParameters). Specifcally ignoring variables and parameters prefixed with `_` ## 2.0.6 ### Patch Changes - [#1715](https://github.com/honojs/middleware/pull/1715) [`f64569eef7dd624b85b52c4a5f75b7cc4e4da3d9`](https://github.com/honojs/middleware/commit/f64569eef7dd624b85b52c4a5f75b7cc4e4da3d9) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Make `@typescript-eslint/no-base-to-string` less strict, allowing `toString()` to be used with `["Error","RegExp","URL","URLSearchParams"]` ## 2.0.5 ### Patch Changes - [#1680](https://github.com/honojs/middleware/pull/1680) [`8e40e64ad151ffdd26764d31ea0ede0c2ad6d28e`](https://github.com/honojs/middleware/commit/8e40e64ad151ffdd26764d31ea0ede0c2ad6d28e) Thanks [@3w36zj6](https://github.com/3w36zj6)! - enable curly rule explicitly - [#1681](https://github.com/honojs/middleware/pull/1681) [`03a28c5d5c54b6b889d2b8b35d828166b64d92db`](https://github.com/honojs/middleware/commit/03a28c5d5c54b6b889d2b8b35d828166b64d92db) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Allow more types as template expressions ## 2.0.4 ### Patch Changes - [#1675](https://github.com/honojs/middleware/pull/1675) [`98324b4c89c2c2af628ba63ebc4ef00448da4d60`](https://github.com/honojs/middleware/commit/98324b4c89c2c2af628ba63ebc4ef00448da4d60) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Use correct export type ## 2.0.3 ### Patch Changes - [#1343](https://github.com/honojs/middleware/pull/1343) [`6fc4326e81e3b0816ef72c33199f287b2241410a`](https://github.com/honojs/middleware/commit/6fc4326e81e3b0816ef72c33199f287b2241410a) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: diable `quotes` and `semi` rules ## 2.0.2 ### Patch Changes - [#1254](https://github.com/honojs/middleware/pull/1254) [`e1e8a6626d4a739f40ec1ac97c1671322522bee6`](https://github.com/honojs/middleware/commit/e1e8a6626d4a739f40ec1ac97c1671322522bee6) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Update package repository ## 2.0.1 ### Patch Changes - [#1162](https://github.com/honojs/middleware/pull/1162) [`74d0fe0cb46b3aca7bac6c017a162bae272c7e3b`](https://github.com/honojs/middleware/commit/74d0fe0cb46b3aca7bac6c017a162bae272c7e3b) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Add type declaration ## 2.0.0 ### Major Changes - [#1098](https://github.com/honojs/middleware/pull/1098) [`1fd8ebf9b6d8d9f473196266bf63681988dc7979`](https://github.com/honojs/middleware/commit/1fd8ebf9b6d8d9f473196266bf63681988dc7979) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Includes `typescript-eslint` presets for typed linting - [`strict-type-checked`](https://typescript-eslint.io/users/configs#strict-type-checked) - [`stylistic-type-checked`](https://typescript-eslint.io/users/configs#stylistic-type-checked) See [Linting with Type Information](https://typescript-eslint.io/getting-started/typed-linting) for more information ## 1.1.1 ### Patch Changes - [#1085](https://github.com/honojs/middleware/pull/1085) [`7b1d2393a59aac4e594afaf50b7b0f3b1fb5ed04`](https://github.com/honojs/middleware/commit/7b1d2393a59aac4e594afaf50b7b0f3b1fb5ed04) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: add spread to tseslint.configs.recommended ## 1.1.0 ### Minor Changes - [#1031](https://github.com/honojs/middleware/pull/1031) [`0d6c13b1a339dc17028548cde10ba7ef9e1dd7fd`](https://github.com/honojs/middleware/commit/0d6c13b1a339dc17028548cde10ba7ef9e1dd7fd) Thanks [@MathurAditya724](https://github.com/MathurAditya724)! - feat: updated `@hono/eslint-config` package - upgrading eslint plugins - removing @eslint/eslintrc and the legacy FlatCompat - cleanup migration to typescript-eslint ## 1.0.2 ### Patch Changes - [#745](https://github.com/honojs/middleware/pull/745) [`2378265f717900b75410c8dbd6b597190bdc301c`](https://github.com/honojs/middleware/commit/2378265f717900b75410c8dbd6b597190bdc301c) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: update dependencies ## 1.0.1 ### Patch Changes - [#732](https://github.com/honojs/middleware/pull/732) [`1bbb1416ca4a53db65d1b4462228b40a46256d5d`](https://github.com/honojs/middleware/commit/1bbb1416ca4a53db65d1b4462228b40a46256d5d) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: `@typescript-eslint/no-require-imports` as `off` ## 1.0.0 ### Major Changes - [#731](https://github.com/honojs/middleware/pull/731) [`80cd26ab6e644e1d57a91ad38be05d1e3807c8ea`](https://github.com/honojs/middleware/commit/80cd26ab6e644e1d57a91ad38be05d1e3807c8ea) Thanks [@yusukebe](https://github.com/yusukebe)! - feat: support ESLint v9 ### Minor Changes - [#724](https://github.com/honojs/middleware/pull/724) [`f7a950a649006600ba31b8fe8ccf960e7bf4ee92`](https://github.com/honojs/middleware/commit/f7a950a649006600ba31b8fe8ccf960e7bf4ee92) Thanks [@Jayllyz](https://github.com/Jayllyz)! - Migrate to maintained and improved plugin alternatives ## 0.0.6 ### Patch Changes - [#545](https://github.com/honojs/middleware/pull/545) [`6fe211ba1f1c4b7b73e98dc87d585a08c3da2cd6`](https://github.com/honojs/middleware/commit/6fe211ba1f1c4b7b73e98dc87d585a08c3da2cd6) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: use `import/no-duplicates` ## 0.0.5 ### Patch Changes - [#543](https://github.com/honojs/middleware/pull/543) [`ee6569d62b4225e2cade3d715c0043a364a37449`](https://github.com/honojs/middleware/commit/ee6569d62b4225e2cade3d715c0043a364a37449) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: update rules ## 0.0.4 ### Patch Changes - [#365](https://github.com/honojs/middleware/pull/365) [`716bd4d0a72efb1be3c454c0323917069ca0f7ee`](https://github.com/honojs/middleware/commit/716bd4d0a72efb1be3c454c0323917069ca0f7ee) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: set `curly` rule as `all` ## 0.0.3 ### Patch Changes - [#306](https://github.com/honojs/middleware/pull/306) [`165a415`](https://github.com/honojs/middleware/commit/165a415ec3cb7f1f66b243ddd69bff7556d3493d) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: `no-unused-vars` as `warn` ## 0.0.2 ### Patch Changes - [#304](https://github.com/honojs/middleware/pull/304) [`6f236ce`](https://github.com/honojs/middleware/commit/6f236ce823f618e3ab59a2b807510df17ebed4de) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: `no-explicit-any` as `warn` ## 0.0.1 ### Patch Changes - [#302](https://github.com/honojs/middleware/pull/302) [`40aeab8`](https://github.com/honojs/middleware/commit/40aeab8e3ee84d988a493237df1308cace8b5476) Thanks [@yusukebe](https://github.com/yusukebe)! - initial release