- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 31
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
9.9.0
What version of eslint-plugin-astro are you using?
1.2.3
What did you do?
Configuration
import eslintPluginAstro from 'eslint-plugin-astro';
export default [
  ...eslintPluginAstro.configs.recommended
  {
    rules: {
        "astro/no-unused-css-selector": 1
    }
  }
];
---
---
<script></script>
<!doctype html>What did you expect to happen?
I expect no errors because the doctype directive is valid.
What actually happened?
Linter shows error:
Parsing error: Unknown token at 233, expected: "<!--", actual: "<!doctype "
Link to Minimal Reproducible Example
Additional comments
If I replace the script tag and put it after html code, the error disappears
sangrepura
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working