pgAdmin 4 commit: Introducing custom linter script for javascriptfiles

Поиск
Список
Период
Сортировка
От Ashesh Vashi
Тема pgAdmin 4 commit: Introducing custom linter script for javascriptfiles
Дата
Msg-id E1ebiYY-0008DB-9A@gothos.postgresql.org
обсуждение исходный текст
Список pgadmin-hackers
Introducing custom linter script for javascript files.
Also, changed the 'linter' yarn-command to use this script.

This script will run the 'eslint' against all the static javascripts,
found under pgadmin and regression directories of source (excepts
'vendor', 'generated'). It also allows to run the 'eslint' against
specific javascript file[s].

In order to run eslint on all static javascript files, run the following command:
  yarn run linter
  node pga_eslint

In order to run eslint on specific files, run the following command:
  yarn run linter --file <filename> [<filename>]
  node pga_script --file <filename> [<filename>]

In order to provide eslint specific commands, run the following command:
  yarn run linter [--file <filename> [<filename>]] --eslint-options
  node pga_script [--file <filename> [<filename>]] --eslint-options

  i.e.
    yarn run linter --fix
    yarn run linter --debug
    node pga_eslint --fix --debug pgadmin/static/js/pgadmin.js

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=4d8b7556f8b780b804017d754726a60490985f4f

Modified Files
--------------
web/package.json  |  2 +-
web/pga_eslint.js | 43 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletion(-)


В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Khushboo Vashi
Дата:
Сообщение: Re: [pgAdmin4][Patch]: RM #2904: As a visually impaired user I needall buttons in the application to have appropriate tooltips for my screenreader to interpret
Следующее
От: Dave Page
Дата:
Сообщение: Re: Module-wise Keyboard preferences