Skip to content

Commit c12fb0f

Browse files
committed
Upgrade to ESLint v2.
1 parent 5438b1b commit c12fb0f

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"eslint": ">=0.8.0"
2323
},
2424
"dependencies": {
25-
"comment-parser": "^0.3.1",
26-
"lodash": "^3.10.1"
25+
"comment-parser": "^0.4.0",
26+
"lodash": "^4.3.0"
2727
},
2828
"scripts": {
29-
"pragmatist": "node ./node_modules/.bin/pragmatist --browser",
29+
"pragmatist": "node ./node_modules/.bin/pragmatist --es5",
3030
"lint": "npm run pragmatist lint",
3131
"test": "npm run pragmatist test",
3232
"build": "npm run pragmatist build",
@@ -38,13 +38,13 @@
3838
"readme": "node ./node_modules/.bin/gitdown ./.README/README.md --output-file ./README.md; npm run readme-add-assertions"
3939
},
4040
"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",
4545
"gitdown": "^2.4.0",
4646
"globby": "^4.0.0",
47-
"mocha": "^2.3.4",
48-
"pragmatist": "^2.3.67"
47+
"mocha": "^2.4.5",
48+
"pragmatist": "^3.0.4"
4949
}
5050
}

src/rules/requireDescriptionCompleteSentence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default iterateJsdoc(({
7575
_.some(tags, (tag) => {
7676
let description;
7777

78-
description = _.trimLeft(tag.description, '- ');
78+
description = _.trimStart(tag.description, '- ');
7979

8080
return validateDescription(description, report);
8181
});

tests/rules/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,24 @@ _.forEach([
2626
'require-returns-type'
2727
], (ruleName) => {
2828
let assertions,
29-
ecmaFeatures;
29+
parserOptions;
3030

31-
ecmaFeatures = {
32-
defaultParams: true,
33-
destructuring: true
31+
parserOptions = {
32+
ecmaVersion: 6
3433
};
3534

3635
/* eslint-disable global-require */
3736
assertions = require('./assertions/' + _.camelCase(ruleName));
3837
/* eslint-enable global-require */
3938

4039
assertions.invalid = _.map(assertions.invalid, (assertion) => {
41-
assertion.ecmaFeatures = ecmaFeatures;
40+
assertion.parserOptions = parserOptions;
4241

4342
return assertion;
4443
});
4544

4645
assertions.valid = _.map(assertions.valid, (assertion) => {
47-
assertion.ecmaFeatures = ecmaFeatures;
46+
assertion.parserOptions = parserOptions;
4847

4948
return assertion;
5049
});

0 commit comments

Comments
 (0)