Add package.json for front-end linters

pull/352/head
Sage Abdullah 2022-07-26 12:20:45 +07:00 zatwierdzone przez Karl Hobley
rodzic 707ac77ba1
commit abde110d62
3 zmienionych plików z 4377 dodań i 0 usunięć

3
.gitignore vendored
Wyświetl plik

@ -13,6 +13,9 @@
common/CACHE
bakerydemo/settings/local.py
bakerydemodb
node_modules
venv
.venv
__pycache__
.vagrant/
/.vagrant/

4350
package-lock.json wygenerowano 100644

Plik diff jest za duży Load Diff

24
package.json 100644
Wyświetl plik

@ -0,0 +1,24 @@
{
"name": "bakerydemo",
"version": "1.0.0",
"repository": "https://github.com/wagtail/bakerydemo",
"private": true,
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"eslint": "^8.8.0",
"prettier": "^2.5.1",
"stylelint": "^14.2.0",
"stylelint-config-standard": "^26.0.0",
"stylelint-config-prettier": "^9.0.3"
},
"scripts": {
"fix:js": "eslint --ext .js --fix .",
"format": "prettier --write \"**/?(.)*.{css,js,json,yaml,yml}\"",
"lint:js": "eslint --ext .js --report-unused-disable-directives .",
"lint:css": "stylelint **/*.css",
"lint:format": "prettier --check \"**/?(.)*.{css,js,json,yaml,yml}\"",
"lint": "npm run lint:js && npm run lint:css && npm run lint:format"
}
}