1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-28 16:48:00 +02:00
blog/.eslintrc.json

57 lines
1.5 KiB
JSON
Raw Normal View History

2018-07-11 17:56:13 +02:00
{
2023-08-29 17:07:13 +02:00
"root": true,
2023-09-05 00:50:29 +02:00
"env": {
"browser": true,
"node": true
},
2023-08-29 17:07:13 +02:00
"parser": "@typescript-eslint/parser",
"parserOptions": {
2023-08-30 04:53:12 +02:00
"ecmaVersion": "latest",
2023-08-29 17:07:13 +02:00
"sourceType": "module",
"ecmaFeatures": { "jsx": true },
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
2023-08-30 04:53:12 +02:00
"plugins": ["@typescript-eslint"],
2023-08-29 17:07:13 +02:00
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
2023-09-05 00:31:37 +02:00
"plugin:astro/recommended",
2023-08-29 17:07:13 +02:00
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off"
2019-10-16 01:45:30 +02:00
},
2023-08-29 17:07:13 +02:00
"settings": { "react": { "version": "detect" } },
2019-10-02 13:35:50 +02:00
"overrides": [
2023-08-30 02:10:25 +02:00
{
// 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"
}
},
2019-10-02 13:35:50 +02:00
{
2023-08-29 17:07:13 +02:00
"files": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)"
2019-10-02 13:35:50 +02:00
],
2023-08-29 17:07:13 +02:00
"extends": ["plugin:testing-library/react"],
2019-10-02 13:35:50 +02:00
"rules": {
"testing-library/no-node-access": "off",
"testing-library/no-container": "off"
2019-10-02 13:35:50 +02:00
}
2019-01-01 19:32:49 +01:00
}
2019-10-02 13:35:50 +02:00
]
2018-07-11 17:56:13 +02:00
}