Skip to content
Snippets Groups Projects
Commit 127d5c51 authored by Mihail Dunaev's avatar Mihail Dunaev
Browse files

Merge branch 'add-eslint' into 'master'

Add eslint to precommit and prettier to json & md

See merge request !7
parents 2a2ccbde a60012bd
No related branches found
No related tags found
1 merge request!7Add eslint to precommit and prettier to json & md
Pipeline #5636 passed with stages
in 2 minutes and 34 seconds
......@@ -80,16 +80,15 @@
"reset": "pubsweet setupdb --clobber",
"start": "docker-compose up",
"start:services": "docker-compose up postgres",
"start:styleguide": "docker-compose run --no-deps -p 6060:6060 app yarn run styleguide",
"start:styleguide":
"docker-compose run --no-deps -p 6060:6060 app yarn run styleguide",
"server": "pubsweet server",
"styleguide": "styleguidist server",
"build": "NODE_ENV=production pubsweet build"
},
"lint-staged": {
"*.js": [
"prettier --write",
"git add"
],
"*.js": ["prettier --write", "eslint --fix", "git add"],
"*.{json,md}": ["prettier --write", "git add"],
"*.css": "stylelint",
"*.scss": "stylelint"
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment