mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
fix(eslint): add configuration for inline script tags
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"browser": true
|
||||
},
|
||||
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:astro/recommended"],
|
||||
"plugins": ["prettier"],
|
||||
"plugins": ["prettier", "astro"],
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
@@ -18,9 +18,26 @@
|
||||
"parser": "astro-eslint-parser",
|
||||
"parserOptions": {
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"extraFileExtensions": [".astro"]
|
||||
"extraFileExtensions": [".astro"],
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {}
|
||||
"rules": {
|
||||
"astro/no-conflict-set-directives": "error",
|
||||
"astro/no-unused-define-vars-in-style": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["**/*.astro/*.js", "*.astro/*.js"],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2020": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"prettier/prettier": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user