first commmit

This commit is contained in:
2026-06-04 09:06:22 +03:00
commit f240b55dda
53 changed files with 6445 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import js from "@eslint/js";
import pluginReact from "eslint-plugin-react";
import globals from "globals";
export default [
js.configs.recommended,
{
files: ["**/*.jsx", "**/*.tsx"],
plugins: {
react: pluginReact,
},
languageOptions: {
globals: {
...globals.browser,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
rules: {
// Подключаем рекомендуемые правила вручную, если импорт конфига не работает
...pluginReact.configs.recommended.rules,
// ОТКЛЮЧАЕМ те самые правила для React 17+
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
},
},
];