Open TheElegantCoding opened 2 weeks ago
i found a possible solution and also an issue that can be related to @stylistic/eslint-plugin
, in the repo of typescript and in the docs ther is this file for disabled type aware rules they mention that in this link in the doc, this could be a way to disable all rules by default and also when i finally run all my config i found the @stylistic/eslint-plugin/eol-last
don't work well
the rule said i have an extra soace in the end of the file, but is false
and when it auto fix do this, putting the tag at the end
Describe the bug
in the
eslin-plugin-astro
there is an issue not resolved about type aware rules, this issueyes this can be avoided just by warning people, but also this affects how the linting rules are in a script tag, in my reproduction i put
no-console
rule and only work on the begginnig of the file and not in the script tag, but this can work if we put as they say in this another issue, this config like this, all workskeep in mind that we need to override the parserOptions in order to work
i add an example of a working config with no errors in the file
example.eslint.config.js
Reproduction
https://github.com/TheElegantCoding/astro-eslint-issue
System Info
Used Package Manager
pnpm
Validations
Contributions