Add npm run lint:css command to run Sass linting

pull/3762/head
Thibaud Colas 2017-08-11 01:24:05 +03:00 zatwierdzone przez Matt Westcott
rodzic 4eafad0a57
commit 65e6c6920f
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -11,8 +11,8 @@ test:
override:
- flake8 wagtail
- isort --check-only --diff --recursive wagtail
- npm run lint
- scss-lint
- npm run lint:js
- npm run lint:css
- python -u runtests.py
- npm run test:unit:coverage -- --runInBand
- npm run build

Wyświetl plik

@ -48,7 +48,7 @@ Then run the linter from the wagtail project root:
.. code-block:: console
$ scss-lint
$ npm run lint:css
The linter is configured to check your code for adherance to the guidelines below, plus a little more.

Wyświetl plik

@ -82,6 +82,7 @@
"watch": "webpack --config ./client/webpack/dev.config.js & gulp watch",
"start": "npm run watch",
"lint:js": "eslint --max-warnings 16 ./client",
"lint:css": "scss-lint",
"lint": "npm run lint:js",
"test": "npm run test:unit",
"test:unit": "jest",