mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
19 lines
707 B
Bash
Executable File
19 lines
707 B
Bash
Executable File
#!/bin/bash
|
|
# ----------------------------------------------------------------------------------------------------------------------
|
|
# This script is intended to contain all actions pertaining to code style checking, linting and normalisation.
|
|
#
|
|
# 1. The script executes linting routines on specific folders.
|
|
# ----------------------------------------------------------------------------------------------------------------------
|
|
|
|
# Stop on first error
|
|
set -e;
|
|
|
|
# banner
|
|
echo -e "\033[93mLinting and style-checking...\033[0m";
|
|
echo -en "\033[0m\033[2m";
|
|
echo -e "eslint `eslint -v`\033[0m\n";
|
|
|
|
# run style checker
|
|
eslint index.js ./lib/** ./test/**/*.js ;
|
|
echo -en "\033[92mNo lint errors found.\n\033[0m";
|