File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ charset = utf-8
7
7
trim_trailing_whitespace = true
8
8
insert_final_newline = true
9
9
10
- [package.json ]
10
+ [{ package.json, * .yml} ]
11
11
indent_style = space
12
12
indent_size = 2
13
13
Original file line number Diff line number Diff line change 2
2
"node" : true ,
3
3
"esnext" : true ,
4
4
"bitwise" : true ,
5
- "camelcase" : true ,
6
5
"curly" : true ,
7
6
"immed" : true ,
8
7
"newcap" : true ,
Original file line number Diff line number Diff line change 7
7
"author" : {
8
8
"name" : " Sindre Sorhus" ,
9
9
"email" : " sindresorhus@gmail.com" ,
10
- "url" : " http:// sindresorhus.com"
10
+ "url" : " sindresorhus.com"
11
11
},
12
12
"engines" : {
13
13
"node" : " >=0.10.0"
34
34
" checker"
35
35
],
36
36
"dependencies" : {
37
- "gulp-util" : " ^3.0.0 " ,
38
- "jscs" : " ^1.8 .0" ,
37
+ "gulp-util" : " ^3.0.4 " ,
38
+ "jscs" : " ^1.12 .0" ,
39
39
"object-assign" : " ^2.0.0" ,
40
- "through2" : " ^0.6.1 " ,
40
+ "through2" : " ^0.6.5 " ,
41
41
"tildify" : " ^1.0.0"
42
42
},
43
43
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
# gulp-jscs [ ![ Build Status] ( https://travis-ci.org/jscs-dev/gulp-jscs.svg?branch=master )] ( https://travis-ci.org/jscs-dev/gulp-jscs )
2
2
3
- > Check JavaScript code style with [ jscs] ( http://jscs.info )
3
+ > Check JavaScript code style with [ ` jscs ` ] ( http://jscs.info )
4
4
5
5
![ ] ( screenshot.png )
6
6
7
- * Issues with the output should be reported on the jscs [ issue tracker] ( https://github.com/jscs-dev/node-jscs/issues ) .*
7
+ * Issues with the output should be reported on the ` jscs ` [ issue tracker] ( https://github.com/jscs-dev/node-jscs/issues ) .*
8
8
9
9
10
10
## Install
11
11
12
- ``` sh
12
+ ```
13
13
$ npm install --save-dev gulp-jscs
14
14
```
15
15
16
16
17
17
## Usage
18
18
19
- ### Reporting Only
19
+ ### Reporting
20
20
21
21
``` js
22
22
var gulp = require (' gulp' );
@@ -28,7 +28,7 @@ gulp.task('default', function () {
28
28
});
29
29
```
30
30
31
- ### Fixing and Reporting
31
+ ### Fixing & reporting
32
32
33
33
``` js
34
34
var gulp = require (' gulp' );
@@ -43,6 +43,7 @@ gulp.task('default', function () {
43
43
});
44
44
```
45
45
46
+
46
47
## Results
47
48
48
49
A ` jscs ` object will be attached to the file object which can be used for custom error reporting. An example with one error might look like this:
@@ -64,13 +65,13 @@ A `jscs` object will be attached to the file object which can be used for custom
64
65
65
66
## API
66
67
67
- ### jscs(options)
68
+ ### jscs([ options] )
68
69
69
70
#### options
70
71
71
72
Type: ` object `
72
73
73
- See the jscs [ options] ( http://jscs.info/overview.html#options ) .
74
+ See the ` jscs ` [ options] ( http://jscs.info/overview.html#options ) .
74
75
75
76
Alternatively you can set the ` configPath ` * (default: ` '.jscsrc' ` )* option to the path of a [ .jscsrc] ( http://jscs.info/rules.html ) file.
76
77
You can’t perform that action at this time.
0 commit comments