eslint-config
eslint-config copied to clipboard
Anthony's ESLint config preset
### Describe the bug Seems like the typescript rules don't work on astro components. Activating astro with `astro: true` doesn't seem to parse typescript in astro `---` blocks, even if...
### Description Adds a test for Astro formatting issues ### Linked Issues #525 ### Additional context I'm wondering how the formatting inside an Astro should even behave. Same as JS...
### Describe the bug Inside an Astro page tag, I'm running into an issue where `eslint(format/prettier)` is competing with `eslint(style/operator-linebreak)` causing duplicate "&&" on the end of the line and...
### Clear and concise description of the problem I'd like to use Prettier (externally) and this config for everything else. The suggestion is generally to use _either_ `stylistic` _or_ prettier,...
### Description This PR seperates the configs for typeaware react rules to avoid issues faced where eslint complains about non `ts` files not being included in the `tsconfig.json`. The relevant...
### Clear and concise description of the problem At the moment it's only possible to define `true` or `overrides` in this config: ```ts export default antfu( { react: true, solid:...
### Clear and concise description of the problem Perfectionist has `internalPattern` option of the `sort-imports` rule with a default value of `~/*`. It would be nice to be able to...
### Describe the bug When using the config with react and typescript enabled with `tsconfigPath` set, the files that are not typescript get errors along the lines as below: ```...
### Description Add a breaking test for using the config with react enabled with typescript type aware settings (`tsconfigPath`). ### Linked Issues #618 ### Additional context
### Describe the bug 1. The 'template' section contains the '&&' operator at the end of the line 2. The 'style' section contains content that needs to be formatted If...