Page MenuHomeSealhub

Jak ustawić linting i unit testy zintegrowane z Sealhubem
Updated 1,383 Days AgoPublic

Version 4 of 36: You are viewing an older version of this document, as it appeared on Jul 21 2020, 13:20.

Ten artykuł zawiera instrukcje stawiania lintowania za pomocą ESLinta, testów funkcjonalnych i integracji obydwu tych procesów z arcanistem i phabricatorem.

Zakładamy, że repozytorium, w którym wdrażane jest lintowanie, korzysta z Typescripta.

1. Instalacja pluginów do arcanista

Wybierz dowolny katalog na swoim dysku, w tym przykładzie będzie to ~/.arcanist-plugins.

Utwórz ten katalog, jeżeli jeszcze nie istnieje.

Następnie wewnątrz tego katalogu sklonuj następujące dwa repozytoria:

cd ~/.arcanist-plugins
git clone https://github.com/sealcode/arcanist-linters.git

Dodaj następującą linijkę wewnątrz pliku ~/.arcrc:

~/.arcrc
...
   "load": ["~/.arcanist-plugins/arcanist-linters"],

2. Lintowanie za pomocą ESLint

Last Author
kuba-orlik
Last Edited
Jul 21 2020, 13:20

Event Timeline

kuba-orlik created this object.
kuba-orlik edited the content of this document. (Show Details)
piotr-ptaszynski edited the content of this document. (Show Details)
piotr-ptaszynski edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)

Dodałem te pluginy do AUR, więc jak ktoś korzysta z Archa to może sobie je pobrać.

Więc w moim przypadku instrukcja wygląda następująco

yay -S arcanist arcanist-linters-git arc-unit-mocha-git

a aktualizacja jest normalnie przez

yay

@kuba-orlik

@fraunos najs! 💪 Dodasz to do treści powyższego artykułu, aby nie umknęło?

kuba-orlik edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)
kuba-orlik edited the content of this document. (Show Details)