File tree Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,52 @@ You can install `eslint-config-web-scrobbler` by a following way:
10
10
> npm install --save-dev eslint-config-web-scrobbler
11
11
```
12
12
13
- Then, add ` eslint-config-web-scrobbler ` to the ` extends ` array in your
14
- ` .eslintrc.* ` file.
13
+ ### JavaScript
14
+
15
+ Add ` web-scrobbler ` to the ` extends ` array in your ` .eslintrc.* ` file:
15
16
16
17
``` json
17
18
{
18
19
"extends" : [" some-other-config-you-use" , " web-scrobbler" ]
19
20
}
20
21
```
21
22
22
- You can use ` web-scrobbler/typescript ` config for projects written in TypeScript:
23
+ ### TypeScript
24
+
25
+ Install peer dependencies first:
26
+
27
+ ``` sh
28
+ > npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser
29
+ ```
30
+
31
+ Then, add ` web-scrobbler/typescript ` cto the ` extends ` array in your ` .eslintrc.* ` file:
32
+
23
33
``` json
24
34
{
25
35
"extends" : [" some-other-config-you-use" , " web-scrobbler/typescript" ]
26
36
}
27
37
```
28
38
39
+ ### Vue
40
+
41
+ Install peer dependencies first:
42
+
43
+ ``` sh
44
+ > npm install --save-dev eslint-plugin-vue
45
+ ```
46
+
47
+ Then, add ` web-scrobbler/vue ` cto the ` extends ` array in your ` .eslintrc.* ` file:
48
+
49
+ ``` json
50
+ {
51
+ "extends" : [
52
+ " some-other-config-you-use" ,
53
+ " web-scrobbler" ,
54
+ " web-scrobbler/vue"
55
+ ]
56
+ }
57
+ ```
58
+
29
59
## License
30
60
31
61
Licensed under the [ MIT License] ( ./LICENSE ) .
You can’t perform that action at this time.
0 commit comments