Skip to content

Instantly share code, notes, and snippets.

@jojojojojoj5564656465465
Last active January 23, 2023 13:42
Show Gist options
  • Save jojojojojoj5564656465465/02c7f95ce6fcfb053f4605107b8baebb to your computer and use it in GitHub Desktop.
Save jojojojojoj5564656465465/02c7f95ce6fcfb053f4605107b8baebb to your computer and use it in GitHub Desktop.
config prettier link with stylelint
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"plugin:astro/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
// Define the configuration for `.astro` file.
"files": ["*.astro"],
// Allows Astro components to be parsed.
"parser": "astro-eslint-parser",
// Parse the script in `.astro` as TypeScript by adding the following configuration.
// It's the setting you need when using TypeScript.
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [".astro"]
},
"rules": {
// override/add rules settings here, such as:
// "astro/no-set-html-directive": "error",
"astro/no-conflict-set-directives": "error",
"astro/no-unused-define-vars-in-style": "error"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment