add first services

This commit is contained in:
Николай Вигдоров
2025-08-03 13:11:32 +03:00
parent 98de7cc8bd
commit a46bf6038b
23 changed files with 10661 additions and 0 deletions

32
.eslintrc.cjs Normal file
View File

@ -0,0 +1,32 @@
module.exports = {
root: true,
env: { browser: true, es2021: true, jest: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'prettier', // Важно: prettier должен быть последним
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json', // Для правил, требующих информацию о типах
},
plugins: ['react', '@typescript-eslint', 'jsx-a11y'],
settings: {
react: {
version: 'detect', // Автоматически определять версию React
},
},
rules: {
// Отключаем правило, которое не нужно с новым JSX-трансформером
'react/react-in-jsx-scope': 'off',
// Мы используем TypeScript, поэтому prop-types не нужны
'react/prop-types': 'off',
// Пример кастомного правила: требовать явное указание возвращаемого типа функции
'@typescript-eslint/explicit-function-return-type': 'warn',
},
};