How To Install jsl on CentOS 7

In this tutorial we learn how to install jsl on CentOS 7. jsl is Check JavaScript code for common mistakes

Introduction

In this tutorial we learn how to install jsl on CentOS 7.

What is jsl

With JavaScript Lint, you can check all your JavaScript source code for common mistakes without actually running the script or opening the web page. JavaScript Lint holds an advantage over competing lints because it is based on the JavaScript engine for the Firefox browser. This provides a robust framework that can not only check JavaScript syntax but also examine the coding techniques used in the script and warn against questionable practices.

We can use yum or dnf to install jsl on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install jsl.

Install jsl on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install jsl using yum by running the following command:

sudo yum -y install jsl

Install jsl on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install jsl using dnf by running the following command:

sudo dnf -y install jsl

How To Uninstall jsl on CentOS 7

To uninstall only the jsl package we can use the following command:

sudo dnf remove jsl

References

Summary

In this tutorial we learn how to install jsl on CentOS 7 using yum and dnf.