Last active
January 23, 2023 13:42
-
-
Save jojojojojoj5564656465465/02c7f95ce6fcfb053f4605107b8baebb to your computer and use it in GitHub Desktop.
config prettier link with stylelint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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