You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tools/changelog.md
+9-8
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,20 @@
1
1
## Changelog
2
-
> Reading a markdown file with the progress in the project is easier than reading a commit log.
2
+
> Читати файл розмітки з прогресом у проекті легше, ніж читати журнал фіксації.
3
3
4
-
Automatic changelog generation from commit messages is a fairly common pattern nowadays. There is a project called [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog)that generates a changelog from commit messages that follow a*convention*.
4
+
Автоматичне створення журналу змін із повідомлень комітів є досить поширеним шаблоном у наш час. Є проект під назвою [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog)який генерує журнал змін із повідомлень про фіксацію, які відповідають*convention*.
5
5
6
6
### Commit message convention
7
-
The most common convention is the *angular* commit messages convention which is [detailed here](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines).
7
+
Найпоширенішою угодою є угода про повідомлення фіксації *angular*, яка [детально описана тут . Налаштування](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines).
8
8
9
9
### Setup
10
-
* Install:
10
+
11
+
* встановити:
11
12
12
13
```bash
13
14
npm install standard-version -D
14
15
```
15
16
16
-
*Add a `script`target to your `package.json`:
17
+
*Додайте ціль `script`до свого `package.json`:
17
18
18
19
```js
19
20
{
@@ -23,7 +24,7 @@ npm install standard-version -D
23
24
}
24
25
```
25
26
26
-
*Optionally : To automatically push the new*git commit and tag*plus publish to npm add a `postrelease`script:
27
+
*Додатково: щоб автоматично надсилати новий *git commit and tag*плюс публікацію до npm, додайте `postrelease`сценарій:
Based on the commit messages `major` | `minor` | `patch`is automatically determined. To*explicitly*specify a version you can specify`--release-as`e.g.:
46
+
На основі повідомлень тип версії: `major` | `minor` | `patch`визначається автоматично. Щоб*explicitly*явно вказати версію, ви можете вказати`--release-as`наприклад::
Copy file name to clipboardExpand all lines: docs/tools/eslint.md
+21-15
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,30 @@
1
1
# ESLint
2
2
3
-
ESLint existed to lint JavaScript, but now it is also becoming the defacto linter for [TypeScript](https://github.com/Microsoft/TypeScript/issues/29288), thanks to the [collaboration](https://eslint.org/blog/2019/01/future-typescript-eslint) between the two teams.
3
+
ESLint існував для лінтування JavaScript, але тепер він також стає дефакто лінтером для [TypeScript](https://github.com/Microsoft/TypeScript/issues/29288), завдяки
4
+
[співпраці](https://eslint.org/blog/2019/01/future-typescript-eslint) між двома командами.
4
5
5
6
## Install
7
+
Встановлення
6
8
7
-
To setup ESLint for TypeScript you need the following packages:
9
+
Щоб налаштувати ESLint для TypeScript, вам потрібні такі пакети:
8
10
9
11
```sh
10
12
npm i eslint eslint-plugin-react @typescript-eslint/parser @typescript-eslint/eslint-plugin
11
13
```
12
14
13
-
> TIP: eslint calls packages that contain lint rules as "plugin"
15
+
> TIP: eslint називає свої пакети з правилами "plugin"
14
16
15
17
* eslint : Core eslint
16
-
* eslint-plugin-react : For react rules provided by eslint. [Supported rules list](https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules)
17
-
*@typescript-eslint/parse : To allow eslint to understand ts / tsx files
18
-
*@typescript-eslint/eslint-plugin : For TypeScript rules. [Supported rules list](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules)
18
+
* eslint-plugin-react : Правіла для react від eslint. [Supported rules list](https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules)
19
+
*@typescript-eslint/parse : Дозволяє eslint розуміти ts / tsx files
20
+
*@typescript-eslint/eslint-plugin : Для правил TypeScript. [Supported rules list](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules)
19
21
20
-
> As you can see there are two eslint packages (for use with js or ts) and two@typescript-eslintpackages (for use with ts). So the overhead for TypeScript is not*that much*.
22
+
> Как ви бачите, 2 eslint пакети (для використання js та ts) та 2@typescript-eslintпакета (для ts). Така звишена увага для TypeScript не*that much*.
21
23
22
24
## Configure
23
-
Create `.eslintrc.js`:
25
+
Конфігурація
26
+
27
+
Створіть `.eslintrc.js`:
24
28
25
29
```js
26
30
module.exports= {
@@ -34,15 +38,15 @@ module.exports = {
34
38
'plugin:@typescript-eslint/recommended',
35
39
],
36
40
rules: {
37
-
// Overwrite rules specified from the extended configs e.g.
> Husky can prevent bad commits, pushes and more 🐶!
3
+
> Husky може захистити вас від поганих комітів та відправок 🐶!
4
4
5
-
If you want to run some JavaScript / TypeScript code before a commit takes place, husky is the tool for that.
5
+
Якщо ви хочете запустити деякий код JavaScript / TypeScript до того, як відбудеться коміт, інструментом для цього є Husky.
6
+
7
+
Наприклад, ви можете використовувати Husky, щоб переконатися, що файли форматуються prettier автоматично, тож вам більше не доведеться турбуватися про форматування файлів вручну, а натомість зосередитися на меті коду. Ось налаштування:
6
8
7
-
For example, you can use husky to make sure files are formatted by prettier automatically so you don't have to worry about manually formatting files ever again and focus on the objective of the code instead. Here is the setup:
8
9
9
10
*`npm install husky -D`
10
11
* Add `scripts` to `package.json`:
@@ -13,7 +14,7 @@ For example, you can use husky to make sure files are formatted by prettier auto
13
14
"precommit": "npm run prettier:write",
14
15
```
15
16
16
-
Now whenever you commit code and there are any formatting changes that need to be made, you'd get them as a *modified*file in your git log. You can now
17
+
Тепер щоразу, коли ви фіксуєте код і потрібно внести будь-які зміни форматування, ви отримуватимете їх як *modified*файл у своєму журналі git. Ви можете спробувати зараз
17
18
18
-
*If you have pushed your code already, simply commit them with a comment`pretty`.
19
-
*If you haven't pushed your code, amend your last commit and look like a superhero.
19
+
*Якщо ви вже просунули (push) свій код, просто зафіксуйте їх у коментарі `pretty`.
20
+
*Якщо ви не просунули свій код, змініть свій останній комміт і виглядайте як супергерой.
Copy file name to clipboardExpand all lines: docs/tools/prettier.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# Prettier
2
2
3
-
Prettier is a great tool by facebook that makes code formatting so much easier that it's worth mentioning. Setting up with TypeScript using our recommended project setup (aka everything in `src` folder) is super easy:
3
+
Prettier — це чудовий інструмент від Facebook, який робить форматування коду настільки простим, що варто згадати про нього. Налаштувати TypeScript за допомогою наших рекомендованих налаштувань проекту (також відомого як усе в папці `src`) надзвичайно просто:
4
4
5
5
## Setup
6
+
Наставлення
6
7
7
8
*`npm install prettier -D`
8
9
* Add `scripts` to `package.json`:
@@ -14,8 +15,10 @@ Prettier is a great tool by facebook that makes code formatting so much easier t
0 commit comments