0
0

More than 5 years have passed since last update.

Sublime TextにJavaScriptのリアルタイム文法チェックをしてくれるSublimeLinter-jshintをインストールする方法

Last updated at Posted at 2019-07-08
  • 環境
    • CentOS Linux release 7.6.1810 (Core)
    • Sublime Text Version 3.2.1

SublimeLintをインストールする

  1. Package Controlをインストールする
  2. Package ControlでSublimeLintをインストールする

Node.jsをインストールする

CentOS 7 Node.js のインストール手順 - Qiita

1. リポジトリを追加する

$ curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash -
## Installing the NodeSource Node.js 8.x LTS Carbon repo...
# 省略
## Run `sudo yum install -y nodejs` to install Node.js 8.x LTS Carbon and npm.
## You may also need development tools to build native addons:
     sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
     sudo yum install yarn

2. Node.jsをインストールする

$ sudo yum install nodejs
Loaded plugins: fastestmirror, ovl
Repository google-chrome is listed more than once in the configuration
# 省略
Installed:
  nodejs.x86_64 2:8.16.0-1nodesource

Complete!

3. バージョンを確認する

$ node -v
v8.16.0

jsHintをインストールする

jsHintとSublimeLinter-jshintを入れるメモ for mac - tweeeetyのぶろぐ的めも

# インストールする
$ sudo npm install -g jshint
/usr/bin/jshint -> /usr/lib/node_modules/jshint/bin/jshint
+ jshint@2.10.2
added 30 packages from 15 contributors in 1.614s

# バージョンを確認する
$ jshint -v
jshint v2.10.2

SublimeLinter-jshintをインストールする

  1. Package ControlでSublimeLinter-jshintをインストールする
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0