Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Add shellcheck to linter list #114

Merged
merged 4 commits into from
Jan 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/version-bump.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

# ./bin/bump.sh [<version>]
# ./bin/version-bump.sh [<version>]
# <version> The version release version to increment.
# default: patch
# options: major|minor|patch
Expand All @@ -10,11 +10,11 @@
# - /includes/scripts-and-styles.php
#
# EXAMPLE USAGE:
# ./bin/bump.sh minor
# ./bin/version-bump.sh minor

# escape a version number for sed
_v() {
echo "$(echo "$1" | tr -d '\n' | sed 's/\./\\\./g')";
echo "$1" | tr -d '\n' | sed 's/\./\\\./g';
}

# cross-compatible sed in-place
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@
"webpack": "^3.6.0"
},
"scripts": {
"lint": "yarn lint-scripts && yarn lint-styles && yarn lint-php",
"lint": "yarn lint-scripts && yarn lint-styles && yarn lint-php && yarn lint-shell",
"lint-php": "$(composer config -g home)/vendor/bin/phpcs .",
"lint-scripts": "./node_modules/.bin/eslint ./src/",
"lint-styles": "./node_modules/.bin/stylelint \"src/**/*.scss\"",
"lint-shell": "type shellcheck > /dev/null 2>&1 && shellcheck ./bin/*.sh",
"test": "./node_modules/.bin/jest",
"build": "export \"${NODE_ENV:-production}\"; gulp --production",
"watch": "export \"${NODE_ENV:-production}\"; gulp watch --production",
Expand Down