2024-10-30 15:50:18 +01:00
|
|
|
import react from "eslint-plugin-react";
|
2024-10-31 20:04:15 +01:00
|
|
|
import eslint from "@eslint/js";
|
|
|
|
import tseslint from "typescript-eslint";
|
2025-02-16 17:05:02 +01:00
|
|
|
import stylistic from "@stylistic/eslint-plugin";
|
2024-10-30 15:50:18 +01:00
|
|
|
|
|
|
|
export default tseslint.config(
|
2025-02-16 17:05:02 +01:00
|
|
|
react.configs.flat.recommended,
|
2024-10-30 15:50:18 +01:00
|
|
|
eslint.configs.recommended,
|
|
|
|
...tseslint.configs.recommended,
|
2025-02-16 17:05:02 +01:00
|
|
|
...tseslint.configs.stylisticTypeChecked,
|
2025-02-17 13:26:10 +01:00
|
|
|
{
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: "detect",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-02-16 17:05:02 +01:00
|
|
|
{
|
|
|
|
languageOptions: {
|
|
|
|
parserOptions: {
|
|
|
|
projectService: true,
|
2025-02-17 13:26:10 +01:00
|
|
|
tsconfigRootDir: import.meta.dirname,
|
2025-02-16 17:05:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-10-30 15:50:18 +01:00
|
|
|
{
|
|
|
|
plugins: {
|
2025-02-16 17:05:02 +01:00
|
|
|
"@stylistic": stylistic,
|
2024-10-30 15:50:18 +01:00
|
|
|
},
|
|
|
|
rules: {
|
2025-02-16 17:05:02 +01:00
|
|
|
"@stylistic/quotes": ["error", "double"],
|
|
|
|
"@stylistic/indent": ["error", 2],
|
|
|
|
"@stylistic/semi": ["error", "always"],
|
2024-10-30 15:50:18 +01:00
|
|
|
"react/no-unescaped-entities": "off",
|
2025-03-02 14:37:13 +01:00
|
|
|
"no-async-promise-executor": "off",
|
2024-10-30 15:50:18 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ignores: [
|
|
|
|
"dist/*",
|
|
|
|
"*.js",
|
|
|
|
"*.cjs",
|
|
|
|
"*.mjs",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
)
|