Samuel T.
Samuel T.
Here's the workaround I'm using: Add `audit=false` to your .npmrc, and add `"scripts": {"postinstall": "npm audit --production --audit-level=none"}` to your package.json !
> > Here's the workaround I'm using: Add `audit=false` to your .npmrc, and add `"scripts": {"postinstall": "npm audit --production"}` to your package.json ! > > After running that error, it...
Sorting them by the same order they are called in would be awesome.
```typescript /* eslint-disable @typescript-eslint/member-ordering */ /* eslint-disable max-len */ declare module 'music-tempo' { /* Partially generated using ` npx -p typescript tsc node_modules/music-tempo/src/MusicTempo.js --declaration --allowJs --emitDeclarationOnly --outDir types npx -p...
Copied from https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2230 I'd like to catch the following cases: ### Fail ```js // Nullish coalescing foo == null ? bar : foo // Autofix to `foo ?? bar` foo...
Note that there's cases where the method needs to be defined on the prototype. One such example is Angular lifecycle hooks. See https://github.com/bahmutov/eslint-rules/issues/54, https://github.com/TristonJ/eslint-plugin-prefer-arrow/issues/17#issuecomment-1062210291, https://github.com/JamieMason/eslint-plugin-prefer-arrow-functions/issues/9 and https://github.com/angular-eslint/angular-eslint/issues/1002 So a way...
Hi. I'd like to use `@typescript-eslint/eslint-plugin`'s [class-methods-use-this](https://github.com/eslint/eslint/blob/main/docs/src/rules/class-methods-use-this.md) added in 6.2, but I'm blocked on `eslint-plugin-total-functions`'s version pin.
(I've updated the original description to add the link to our repo where this is used)
> ```python > def get_sponsors(self, obj) -> list[str]: > return self.context.get("sponsors") > ``` > should do just fine. The decorator is just for cases where an actual type hint (->)...
@aladdin-add I did mean `prefer-destructuring` and accidentally left in `@typescript-eslint`. I've updated the post accordingly. Could you please reopen?