File tree Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 22
22
"eslint" : " >=0.8.0"
23
23
},
24
24
"dependencies" : {
25
- "comment-parser" : " ^0.3.1 " ,
26
- "lodash" : " ^3.10.1 "
25
+ "comment-parser" : " ^0.4.0 " ,
26
+ "lodash" : " ^4.3.0 "
27
27
},
28
28
"scripts" : {
29
- "pragmatist" : " node ./node_modules/.bin/pragmatist --browser " ,
29
+ "pragmatist" : " node ./node_modules/.bin/pragmatist --es5 " ,
30
30
"lint" : " npm run pragmatist lint" ,
31
31
"test" : " npm run pragmatist test" ,
32
32
"build" : " npm run pragmatist build" ,
38
38
"readme" : " node ./node_modules/.bin/gitdown ./.README/README.md --output-file ./README.md; npm run readme-add-assertions"
39
39
},
40
40
"devDependencies" : {
41
- "babel-cli" : " ^6.3.17 " ,
42
- "babel-preset-es2015" : " ^6.3.13 " ,
43
- "chai" : " ^3.4.1 " ,
44
- "eslint" : " ^1.10.3 " ,
41
+ "babel-cli" : " ^6.5.1 " ,
42
+ "babel-preset-es2015" : " ^6.5.0 " ,
43
+ "chai" : " ^3.5.0 " ,
44
+ "eslint" : " ^2.0.0 " ,
45
45
"gitdown" : " ^2.4.0" ,
46
46
"globby" : " ^4.0.0" ,
47
- "mocha" : " ^2.3.4 " ,
48
- "pragmatist" : " ^2.3.67 "
47
+ "mocha" : " ^2.4.5 " ,
48
+ "pragmatist" : " ^3.0.4 "
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export default iterateJsdoc(({
75
75
_ . some ( tags , ( tag ) => {
76
76
let description ;
77
77
78
- description = _ . trimLeft ( tag . description , '- ' ) ;
78
+ description = _ . trimStart ( tag . description , '- ' ) ;
79
79
80
80
return validateDescription ( description , report ) ;
81
81
} ) ;
Original file line number Diff line number Diff line change @@ -26,25 +26,24 @@ _.forEach([
26
26
'require-returns-type'
27
27
] , ( ruleName ) => {
28
28
let assertions ,
29
- ecmaFeatures ;
29
+ parserOptions ;
30
30
31
- ecmaFeatures = {
32
- defaultParams : true ,
33
- destructuring : true
31
+ parserOptions = {
32
+ ecmaVersion : 6
34
33
} ;
35
34
36
35
/* eslint-disable global-require */
37
36
assertions = require ( './assertions/' + _ . camelCase ( ruleName ) ) ;
38
37
/* eslint-enable global-require */
39
38
40
39
assertions . invalid = _ . map ( assertions . invalid , ( assertion ) => {
41
- assertion . ecmaFeatures = ecmaFeatures ;
40
+ assertion . parserOptions = parserOptions ;
42
41
43
42
return assertion ;
44
43
} ) ;
45
44
46
45
assertions . valid = _ . map ( assertions . valid , ( assertion ) => {
47
- assertion . ecmaFeatures = ecmaFeatures ;
46
+ assertion . parserOptions = parserOptions ;
48
47
49
48
return assertion ;
50
49
} ) ;
You can’t perform that action at this time.
0 commit comments