eslint-config icon indicating copy to clipboard operation
eslint-config copied to clipboard

Anthony's ESLint config preset

Results 50 eslint-config issues
Sort by recently updated
recently updated
newest added

This package and `@nuxt/content` v2 both depend on different versions of `mdast-util-from-markdown`. When both of these packages are added to a Nuxt 3 project (via Yarn), the following error occurs...

### Clear and concise description of the problem It make sense to enable rules [no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises/) and [no-misused-promises](https://typescript-eslint.io/rules/no-misused-promises/). They can warn you not forget to `await` the async function. What why...

enhancement
pr welcome

### Clear and concise description of the problem The README explains how to activate type aware rules [here](https://github.com/antfu/eslint-config?tab=readme-ov-file#type-aware-rules) but this does e.g. not work for Vue files out of the...

documentation
pr welcome

### Description Add a eslint config for Astro framework with `eslint-plugin-astro` and `astro-eslint-parser`. ### Linked Issues not yet. ### Additional context No special rules, just add astro eslint plugin.

### Describe the bug In a typescript generic with multiline type arguments, indentation is not normalized. That means, the following code is left as is: ```ts export type A =...

upstream

### Description I noticed that the auto-fix of unused imports didn't work well for `.ts` files, using the config-viewer I noticed that a rule was unused and activating it worked...

### Describe the bug One of the handiest eslint rules is the no-cycle rule which detects circular imports (because these can be such a nightmare) However, the rule doesn't appear...

### Describe the bug ![image](https://github.com/antfu/eslint-config/assets/70067449/2420c9aa-9271-4273-8796-14660ab2fc7a) It's OK on Linux. ### Reproduction https://github.com/Daydreamer-riri/vite-react-ssg README file ### System Info ```Shell windows 11 ``` ### Used Package Manager pnpm ### Validations - [X]...

### Clear and concise description of the problem disable use globals var `__dirname` `__filename` in nodejs esm mode These CommonJS variables are not available in ES modules. https://nodejs.org/api/esm.html#no-__filename-or-__dirname Suggest use...

enhancement