0% found this document useful (0 votes)
2 views2 pages

Lint

This lesson of the Advanced Vim Customization course focuses on setting up linting in Vim using the ALE plugin. It covers the installation of necessary linters, specifically Prettier and ESLint, and the creation of a basic prettierrc.json file. The goal is to enable code linting directly within the Vim text editor without needing to exit.

Uploaded by

jamesryanpt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Lint

This lesson of the Advanced Vim Customization course focuses on setting up linting in Vim using the ALE plugin. It covers the installation of necessary linters, specifically Prettier and ESLint, and the creation of a basic prettierrc.json file. The goal is to enable code linting directly within the Vim text editor without needing to exit.

Uploaded by

jamesryanpt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1

00:00:00,330 --> 00:00:01,260


<v Instructor>Welcome back</v>

2
00:00:01,260 --> 00:00:03,990
to the Advanced Vim Customization course.

3
00:00:03,990 --> 00:00:08,990
And in this lesson we are going to tackle linting in vim

4
00:00:09,180 --> 00:00:11,940
and we are going to do this first by setting up

5
00:00:11,940 --> 00:00:15,540
our underlying linters and then we are going to set up

6
00:00:15,540 --> 00:00:20,130
the linting plugin itself, which is called ALE.

7
00:00:20,130 --> 00:00:21,510
Finally, we are going to look

8
00:00:21,510 --> 00:00:26,510
at how ALE is used in and of itself, so we can lint our code

9
00:00:26,610 --> 00:00:30,960
without ever having to exit our vim text editor.

10
00:00:30,960 --> 00:00:34,173
So let's get started by getting our linters set up.

11
00:00:35,310 --> 00:00:37,590
So I'm ssh'd in it to my server

12
00:00:37,590 --> 00:00:40,950
and I'm going to move into my forethought directory.

13
00:00:40,950 --> 00:00:45,540
And the first thing we need to do is set up some linters.

14
00:00:45,540 --> 00:00:50,540
So for node js we are going to install prettier and eslint.

15
00:00:50,580 --> 00:00:55,580
So this is going to be an npm install prettier eslint
16
00:00:58,500 --> 00:00:59,760
and then we're going to save this

17
00:00:59,760 --> 00:01:03,150
to our dev environment with --save-dev.

18
00:01:03,150 --> 00:01:05,583
We'll wait for this process to complete.

19
00:01:06,960 --> 00:01:10,080
And one final thing we want to do is set up

20
00:01:10,080 --> 00:01:12,870
our prettierrc.json file

21
00:01:12,870 --> 00:01:15,480
and we're not going to spend a lot of time on this.

22
00:01:15,480 --> 00:01:19,230
We're actually just going to add some empty curly brackets,

23
00:01:19,230 --> 00:01:22,380
so we can run a prettier without it erroring out.

24
00:01:22,380 --> 00:01:26,283
And again, this just goes in a prettierrc.json file.

25
00:01:27,510 --> 00:01:30,420
And now we have our linters set up.

You might also like