mirror of https://github.com/CrimsonTome/tldr.git
eslint: update page (#10254)
parent
8ef06c89d2
commit
7e68788818
|
@ -17,4 +17,4 @@
|
||||||
|
|
||||||
- Linte mit einer Konfigurationsdatei:
|
- Linte mit einer Konfigurationsdatei:
|
||||||
|
|
||||||
`eslint -c {{pfad/zu/konfigurationsdatei}} {{pfad/zu/quellordner}`
|
`eslint -c {{pfad/zu/konfigurationsdatei}} {{pfad/zu/datei1.js pfad/zu/datei2.js ...}`
|
||||||
|
|
|
@ -17,4 +17,4 @@
|
||||||
|
|
||||||
- Esegui il linting utilizzando un determinato file di configurazione:
|
- Esegui il linting utilizzando un determinato file di configurazione:
|
||||||
|
|
||||||
`eslint -c {{percorso/del/file_config}} {{percorso/del/sorgente}}`
|
`eslint -c {{percorso/del/file_config}} {{percorso/del/file1.js percorso/del/file2.js ...}}`
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
# eslint
|
# eslint
|
||||||
|
|
||||||
> Podłączane narzędzie lintowania dla JavaScript i JSX.
|
> Rozszerzalne narzędzie lintowania dla JavaScript i JSX.
|
||||||
> Więcej informacji: <https://eslint.org>.
|
> Więcej informacji: <https://eslint.org>.
|
||||||
|
|
||||||
- Stwórz eslint config:
|
- Stwórz plik konfiguracyjny ESlint:
|
||||||
|
|
||||||
`eslint --init`
|
`eslint --init`
|
||||||
|
|
||||||
- Lint na danym zestawie plików:
|
- Lintuj jeden lub więcej plików:
|
||||||
|
|
||||||
`eslint {{ścieżka/do/pliku1.js ścieżka/do/pliku2.js ...}}`
|
`eslint {{ścieżka/do/pliku1.js ścieżka/do/pliku2.js ...}}`
|
||||||
|
|
||||||
- Napraw lint issues:
|
- Napraw wykryte problemy:
|
||||||
|
|
||||||
`eslint --fix`
|
`eslint --fix`
|
||||||
|
|
||||||
- Lint z config:
|
- Lintuj używając podanego pliku konfiguracyjnego:
|
||||||
|
|
||||||
`eslint -c {{ścieżka/do/pliku_konfiguracyjnego}} {{ścieżka/do/źródła}}`
|
`eslint -c {{ścieżka/do/pliku_konfiguracyjnego}} {{ścieżka/do/pliku1.js ścieżka/do/pliku2.js}}`
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
> A pluggable linting utility for JavaScript and JSX.
|
> A pluggable linting utility for JavaScript and JSX.
|
||||||
> More information: <https://eslint.org>.
|
> More information: <https://eslint.org>.
|
||||||
|
|
||||||
- Create ESLint config:
|
- Create the ESLint config file:
|
||||||
|
|
||||||
`eslint --init`
|
`eslint --init`
|
||||||
|
|
||||||
- Lint on a given set of files:
|
- Lint one or more files:
|
||||||
|
|
||||||
`eslint {{path/to/file1.js path/to/file2.js ...}}`
|
`eslint {{path/to/file1.js path/to/file2.js ...}}`
|
||||||
|
|
||||||
|
@ -15,6 +15,6 @@
|
||||||
|
|
||||||
`eslint --fix`
|
`eslint --fix`
|
||||||
|
|
||||||
- Lint with config:
|
- Lint using the specified config:
|
||||||
|
|
||||||
`eslint -c {{path/to/config_file}} {{path/to/source}}`
|
`eslint -c {{path/to/config_file}} {{path/to/file1.js path/to/file2.js}}`
|
||||||
|
|
Loading…
Reference in New Issue