This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
footnotes/package.json

126 lines
3.5 KiB
JSON
Raw Permalink Normal View History

2021-04-15 02:06:08 +00:00
{
2021-04-26 16:15:48 +00:00
"name": "footnotes",
2021-04-15 02:06:08 +00:00
"scripts": {
"cm": "cz",
2021-04-27 07:41:53 +00:00
"format:js": "prettier './src/**/*.js' --write",
"lint": "npm run lint:js; npm run lint:css; npm run lint:md; npm run lint:html; npm run validate:yaml",
"lint:fix": "npm run lint:js:fix; npm run lint:css:fix; npm run lint:md:fix; npm run validate:yaml",
"lint:php": "composer run lint:php",
"lint:php:fix": "composer run lint:php:fix",
2021-04-26 22:03:58 +00:00
"lint:js": "npm run format:js && eslint \"./src/**/*.js\"",
2021-04-27 07:41:53 +00:00
"lint:js:fix": "npm run format:js && npm run lint:js -- --fix",
"lint:css": "stylelint \"./src/**/*.css\"",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:md": "markdownlint '*.md'",
"lint:md:fix": "npm run lint:md -- --fix",
2021-04-27 07:41:53 +00:00
"lint:html": "htmlhint './src/**/*.html'",
2021-04-26 22:03:58 +00:00
"validate": "npm run validate:yaml",
2021-04-26 16:15:48 +00:00
"validate:yaml": "yaml-validator ./.github/workflows/*.yml",
2021-04-27 07:41:53 +00:00
"minify": "npm run minify:css; npm run minify:js",
"minify:css": "for f in ./dist/*/css/*.css; do echo \"Minifying $f...\"; minify $f > $(dirname $f)/$(basename $f .css).min.css; done",
2021-04-26 10:44:23 +00:00
"minify:js": "for f in ./dist/*/js/*.js; do echo \"Minifying $f...\"; minify $f > $(dirname $f)/$(basename $f .js).min.js; done"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
2021-04-26 22:06:05 +00:00
"pre-push": "composer run docs && git add docs && git commit -m \"docs: update documentation\" --no-verify"
}
},
"lint-staged": {
"*.php": [
"composer run lint:php"
],
"*.js": [
"npm run lint:js"
],
"*.(sa|sc|c)ss": [
"npm run lint:css"
],
2021-04-29 17:39:20 +00:00
"*.(md|markdown|wiki)": [
"npm run lint:md"
2021-04-26 16:15:48 +00:00
],
"*.htm(l)?": [
"npm run lint:html"
],
"*.y(a)?ml": [
"npm run validate:yaml"
]
2021-04-15 02:06:08 +00:00
},
"devDependencies": {
2021-04-26 16:15:48 +00:00
"@wordpress/eslint-plugin": "^9.0.3",
"cz-conventional-changelog": "^3.3.0",
2021-04-15 02:06:08 +00:00
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-prettier": "^3.4.0",
2021-04-26 16:15:48 +00:00
"htmlhint": "^0.14.2",
"husky": "^4.3.8",
"lint-staged": "^10.5.4",
"markdownlint-cli": "^0.27.1",
2021-05-11 18:49:28 +00:00
"merge": "^2.1.1",
"minify": "^7.0.1",
2021-04-26 16:15:48 +00:00
"node-sass": "^5.0.0",
2021-04-15 02:06:08 +00:00
"prettier": "^2.2.1",
"stylelint": "^13.12.0",
"stylelint-a11y": "^1.2.3",
2021-04-26 16:15:48 +00:00
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-recommended": "^3.0.0",
"stylelint-config-wordpress": "^17.0.0",
"stylelint-order": "^4.1.0",
"stylelint-scss": "^3.19.0",
"yaml-validator": "^3.0.1"
2021-04-20 01:48:16 +00:00
},
"license": "GPL-3.0",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
2021-04-26 16:15:48 +00:00
},
"eslintConfig": {
"env": {
"browser": true,
"jquery": true,
"es6": true
},
"extends": [
"plugin:@wordpress/eslint-plugin/esnext",
"plugin:@wordpress/eslint-plugin/jsdoc",
"plugin:@wordpress/eslint-plugin/i18n",
"plugin:prettier/recommended"
],
"rules": {}
},
"eslintIgnore": [
"tmp/",
"*.min.js",
"jquery.tools.js"
],
"prettier": {
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
},
"stylelint": {
"extends": [
"stylelint-config-wordpress",
"stylelint-config-recommended",
"stylelint-a11y/recommended",
"stylelint-config-rational-order"
],
"plugins": [
"stylelint-scss",
"stylelint-a11y",
"stylelint-order"
],
"rules": {
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true
},
"ignoreFiles": [
"tmp/",
"*.min.css"
]
}
}