kiwilan / typescriptable-laravel

PHP package for Laravel to type Eloquent models, routes, Spatie Settings with autogenerated TypeScript. Optional NPM package for Inertia.
https://packagist.org/packages/kiwilan/typescriptable-laravel
MIT License
29 stars 2 forks source link

[Bug]: linting problem #36

Closed Temepest74 closed 1 year ago

Temepest74 commented 1 year ago

What happened?

I have problems with this line:

/* eslint-disable eslint-comments/no-unlimited-disable */

and when i run my linter I get


/var/www/html/resources/js/types/models.d.ts
  1:1  error  Definition for rule 'eslint-comments/no-unlimited-disable' was not found  eslint-comments/no-unlimited-disable

✖ 1 problem (1 error, 0 warnings)

If I do what is on this page I get

/var/www/html/resources/js/types/models.d.ts
  1:19  error  Requires 'eslint-enable' directive for 'eslint-comments/no-unlimited-disable'  eslint-comments/disable-enable-pair
  2:0   error  Requires 'eslint-enable' directive                                             eslint-comments/disable-enable-pair

How to reproduce the bug

Just install the package

Package Version

latest

PHP Version

8.1.0

Which operating systems does with happen with?

Windows

Notes

No response

ewilan-riviere commented 1 year ago

Can you check if it is fixed with latest version?

Temepest74 commented 1 year ago

yest, thank you

joelstein commented 21 hours ago

I'm still having this issue. Did you intend to include /* eslint-disable eslint-comments/no-unlimited-disable */ in the following files?