Skip to content

Commit

Permalink
Update install-lint.sh
Browse files Browse the repository at this point in the history
added eslint to script
  • Loading branch information
aadeyemiadl authored Mar 12, 2024
1 parent dd75a49 commit ef47790
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions install-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,47 @@
echo "# Python Linting Complete (Comments Above)"
echo "#====================================================#"
echo ""

# Simple script to install and run ESlint
echo ""
echo "#====================================================#"
echo "# Installing and Configuring ESlint
echo "#====================================================#"
echo ""

# Install npm if not already intsalled
sudo apt-get install npm
# Install eslint if not already intsalled
npm install --save-dev eslint
sudo apt install eslint -g

chmod -R a+x node_modules

# Initialize config file if not already done
npm init
npm init @eslint/config


echo ""
echo "#====================================================#"
echo "# ESlint Installation Complete"
echo "#====================================================#"
echo ""

# Check ESlint version to make sure it is installed
eslint -v

echo ""
echo "#====================================================#"
echo "# Now Running ESlint"
echo "#====================================================#"
echo ""

# Run ESlint on NodeJS files
eslint ./

echo ""
echo "#====================================================#"
echo "# NodeJS Linting Complete (Comments Above)"
echo "#====================================================#"
echo ""

0 comments on commit ef47790

Please sign in to comment.