fix(tools): Restrict prettier to css
This commit is contained in:
committed by
mrugesh
parent
9de68bd4a7
commit
9bd5e0aafe
14
package.json
14
package.json
@ -19,16 +19,17 @@
|
|||||||
"docker:test": "docker-compose -f docker-compose.tests.yml run --rm tests bash",
|
"docker:test": "docker-compose -f docker-compose.tests.yml run --rm tests bash",
|
||||||
"docker:test:init": "docker-compose -f docker-compose.tests.yml run -u root --rm tests bash change_volumes_owner.sh",
|
"docker:test:init": "docker-compose -f docker-compose.tests.yml run -u root --rm tests bash change_volumes_owner.sh",
|
||||||
"ensure-env": "cross-env DEBUG=fcc:* node ./tools/scripts/build/ensure-env.js",
|
"ensure-env": "cross-env DEBUG=fcc:* node ./tools/scripts/build/ensure-env.js",
|
||||||
"format": "npm run lint:js -- --fix",
|
"format": "npm-run-all -p format:*",
|
||||||
"format:other": "npm run prettier -- --write",
|
"format:js": "npm run lint:js -- --fix",
|
||||||
|
"format:css": "npm run prettier -- --write",
|
||||||
"hooks:install": "node node_modules/husky/husky.js install",
|
"hooks:install": "node node_modules/husky/husky.js install",
|
||||||
"hooks:uninstall": "node node_modules/husky/husky.js uninstall",
|
"hooks:uninstall": "node node_modules/husky/husky.js uninstall",
|
||||||
"lint": "npm-run-all -p lint:*",
|
"lint": "npm-run-all -p lint:*",
|
||||||
"lint:challenges": "cd ./curriculum && npm run lint",
|
"lint:challenges": "cd ./curriculum && npm run lint",
|
||||||
"lint:guide": "cd ./tools/lint-guide/ && gulp lint",
|
"lint:guide": "cd ./tools/lint-guide/ && gulp lint",
|
||||||
"lint:js": "eslint .",
|
"lint:js": "eslint .",
|
||||||
"lint:other": "npm run prettier -- --debug-check",
|
"lint:css": "npm run prettier -- --check",
|
||||||
"prettier": "prettier \"**/*.{md,css}\"",
|
"prettier": "prettier \"**/*.css\"",
|
||||||
"postinstall": "npm run bootstrap",
|
"postinstall": "npm run bootstrap",
|
||||||
"seed": "npm-run-all -p seed:*",
|
"seed": "npm-run-all -p seed:*",
|
||||||
"seed:auth-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser",
|
"seed:auth-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser",
|
||||||
@ -82,12 +83,11 @@
|
|||||||
"git add"
|
"git add"
|
||||||
],
|
],
|
||||||
"*.md": "node ./tools/lint/lint.js",
|
"*.md": "node ./tools/lint/lint.js",
|
||||||
"*.{md,css}": [
|
"*.css": [
|
||||||
"prettier --write",
|
"prettier --write",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"concurrent": false
|
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
Reference in New Issue
Block a user