Skip to content

Commit 1a8f44c

Browse files
lint
1 parent 3be59dd commit 1a8f44c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2762
-2111
lines changed

README_FR.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@
66

77
- 🛠 Support des connecteurs Discord/ Twitter / Telegram
88
- 🔗 Support des différents modèles d'IA (Llama, Grok, OpenAI, Anthropic, etc.)
9-
- 👥 Gestion de plusieurs agents et assistance
9+
- 👥 Gestion de plusieurs agents et assistance
1010
- 📚 Import et intéractions avec différents types de documents simplifiés
1111
- 💾 Accès aux données en mémoire et aux documents stockés
1212
- 🚀 Grande personnalisation possible : création de nouveaux clients et de nouvelles actions
1313
- 📦 Simplicité d'utilisation
1414

1515
Que pouvez-vous faire avec Eliza?
1616

17-
- 🤖 Chatbot
17+
- 🤖 Chatbot
1818
- 🕵 ️Agents autonomes
1919
- 📈 Processus automatisés
2020
- 🎮 PNJ intéractifs
2121
- 🧠 Trading automatisé
2222

23-
2423
# Premiers pas
2524

2625
**Pré-requis (obligatoire) :**
@@ -49,7 +48,7 @@ cp .env.example .env
4948

5049
### Lancer Eliza
5150

52-
Après avoir terminé la configuration et les fichiers personnage, lancer le bot en tapant la ligne de commande suivante:
51+
Après avoir terminé la configuration et les fichiers personnage, lancer le bot en tapant la ligne de commande suivante:
5352

5453
```bash
5554
pnpm i
@@ -62,7 +61,7 @@ pnpm clean
6261

6362
#### Ressources additionelles
6463

65-
Il vous faudra peut-être installer Sharp.
64+
Il vous faudra peut-être installer Sharp.
6665
Si il y a une erreur lors du lancement du bot, essayez d'installer Sharp comme ceci :
6766

6867
```
@@ -80,6 +79,6 @@ pnpm install --include=optional sharp
8079
<img src="https://contrib.rocks/image?repo=ai16z/eliza" />
8180
</a>
8281

83-
## Historique d'étoiles
82+
## Historique d'étoiles
8483

8584
[![Star History Chart](https://api.star-history.com/svg?repos=ai16z/eliza&type=Date)](https://star-history.com/#ai16z/eliza&Date)

README_RU.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@
4242

4343
</details><br>
4444

45-
4645
# 🚀Начало работы
4746

4847
**Необходимые условия (ОБЯЗАТЕЛЬНО):**
49-
48+
5049
- [Python 2.7+](https://www.python.org/downloads/)
5150
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
5251
- [pnpm](https://pnpm.io/installation)
53-
> **Для Windows пользователей:** требуется WSL
54-
>
52+
> **Для Windows пользователей:** требуется WSL
53+
5554
### Редактирование файла .env
5655

5756
- Скопируйте `.env.example` в `.env` и заполните соответствующими значениями
57+
5858
```bash
5959
cp .env.example .env
6060
```
@@ -67,8 +67,8 @@ cp .env.example .env
6767
- Используйте команду `pnpm start --characters="path/to/your/character.json"`
6868
- Можно загружать несколько файлов персонажей одновременно.
6969

70-
7170
### Запуск Eliza
71+
7272
После настройки файла `.env` и файла персонажа вы можете запустить бота с помощью следующей команды:
7373

7474
```bash
@@ -79,6 +79,7 @@ pnpm start
7979
# Проект быстро развивается, иногда нужно очищать проект, если вы возвращаетесь к нему спустя время
8080
pnpm clean
8181
```
82+
8283
#### Дополнительные требования
8384

8485
Возможно, потребуется установить Sharp. Если при запуске возникнет ошибка, попробуйте установить его с помощью следующей команды:
@@ -164,7 +165,6 @@ npx --no node-llama-cpp source download --gpu cuda
164165

165166
Для получения помощи по настройке бота Discord ознакомьтесь с инструкцией: [Настройка приложения бота](https://discordjs.guide/preparations/setting-up-a-bot-application.html).
166167

167-
168168
### Сообщество и контакты
169169

170170
- [GitHub Issues](https://github.com/ai16z/eliza/issues). Лучше всего подходит для: сообщений об ошибках при использовании Eliza и предложений новых функций.

client/README.md

+27-27
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,47 @@ This template provides a minimal setup to get React working in Vite with HMR and
44

55
Currently, two official plugins are available:
66

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
99

1010
## Expanding the ESLint configuration
1111

1212
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
1313

14-
- Configure the top-level `parserOptions` property like this:
14+
- Configure the top-level `parserOptions` property like this:
1515

1616
```js
1717
export default tseslint.config({
18-
languageOptions: {
19-
// other options...
20-
parserOptions: {
21-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
22-
tsconfigRootDir: import.meta.dirname,
18+
languageOptions: {
19+
// other options...
20+
parserOptions: {
21+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
22+
tsconfigRootDir: import.meta.dirname,
23+
},
2324
},
24-
},
25-
})
25+
});
2626
```
2727

28-
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29-
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
28+
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29+
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
3131

3232
```js
3333
// eslint.config.js
34-
import react from 'eslint-plugin-react'
34+
import react from "eslint-plugin-react";
3535

3636
export default tseslint.config({
37-
// Set the react version
38-
settings: { react: { version: '18.3' } },
39-
plugins: {
40-
// Add the react plugin
41-
react,
42-
},
43-
rules: {
44-
// other rules...
45-
// Enable its recommended rules
46-
...react.configs.recommended.rules,
47-
...react.configs['jsx-runtime'].rules,
48-
},
49-
})
37+
// Set the react version
38+
settings: { react: { version: "18.3" } },
39+
plugins: {
40+
// Add the react plugin
41+
react,
42+
},
43+
rules: {
44+
// other rules...
45+
// Enable its recommended rules
46+
...react.configs.recommended.rules,
47+
...react.configs["jsx-runtime"].rules,
48+
},
49+
});
5050
```

client/components.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"$schema": "https://ui.shadcn.com/schema.json",
3-
"style": "new-york",
4-
"rsc": false,
5-
"tsx": true,
6-
"tailwind": {
7-
"config": "tailwind.config.js",
8-
"css": "src/index.css",
9-
"baseColor": "neutral",
10-
"cssVariables": true,
11-
"prefix": ""
12-
},
13-
"aliases": {
14-
"components": "@/components",
15-
"utils": "@/lib/utils",
16-
"ui": "@/components/ui",
17-
"lib": "@/lib",
18-
"hooks": "@/hooks"
19-
},
20-
"iconLibrary": "lucide"
21-
}
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/index.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

client/eslint.config.js

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactHooks from 'eslint-plugin-react-hooks'
4-
import reactRefresh from 'eslint-plugin-react-refresh'
5-
import tseslint from 'typescript-eslint'
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
66

77
export default tseslint.config(
8-
{ ignores: ['dist'] },
9-
{
10-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11-
files: ['**/*.{ts,tsx}'],
12-
languageOptions: {
13-
ecmaVersion: 2020,
14-
globals: globals.browser,
15-
},
16-
plugins: {
17-
'react-hooks': reactHooks,
18-
'react-refresh': reactRefresh,
19-
},
20-
rules: {
21-
...reactHooks.configs.recommended.rules,
22-
'react-refresh/only-export-components': [
23-
'warn',
24-
{ allowConstantExport: true },
25-
],
26-
},
27-
},
28-
)
8+
{ ignores: ["dist"] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ["**/*.{ts,tsx}"],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
"react-hooks": reactHooks,
18+
"react-refresh": reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
"react-refresh/only-export-components": [
23+
"warn",
24+
{ allowConstantExport: true },
25+
],
26+
},
27+
}
28+
);

client/index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
8-
</head>
9-
<body>
10-
<div id="root"></div>
11-
<script type="module" src="/src/main.tsx"></script>
12-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React + TS</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
1313
</html>

client/postcss.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

client/src/App.css

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
#root {
2-
max-width: 1280px;
3-
margin: 0 auto;
4-
padding: 2rem;
5-
text-align: center;
2+
max-width: 1280px;
3+
margin: 0 auto;
4+
padding: 2rem;
5+
text-align: center;
66
}
77

88
.logo {
9-
height: 6em;
10-
padding: 1.5em;
11-
will-change: filter;
12-
transition: filter 300ms;
9+
height: 6em;
10+
padding: 1.5em;
11+
will-change: filter;
12+
transition: filter 300ms;
1313
}
1414
.logo:hover {
15-
filter: drop-shadow(0 0 2em #646cffaa);
15+
filter: drop-shadow(0 0 2em #646cffaa);
1616
}
1717
.logo.react:hover {
18-
filter: drop-shadow(0 0 2em #61dafbaa);
18+
filter: drop-shadow(0 0 2em #61dafbaa);
1919
}
2020

2121
@keyframes logo-spin {
22-
from {
23-
transform: rotate(0deg);
24-
}
25-
to {
26-
transform: rotate(360deg);
27-
}
22+
from {
23+
transform: rotate(0deg);
24+
}
25+
to {
26+
transform: rotate(360deg);
27+
}
2828
}
2929

3030
@media (prefers-reduced-motion: no-preference) {
31-
a:nth-of-type(2) .logo {
32-
animation: logo-spin infinite 20s linear;
33-
}
31+
a:nth-of-type(2) .logo {
32+
animation: logo-spin infinite 20s linear;
33+
}
3434
}
3535

3636
.card {
37-
padding: 2em;
37+
padding: 2em;
3838
}
3939

4040
.read-the-docs {
41-
color: #888;
41+
color: #888;
4242
}

0 commit comments

Comments
 (0)