Skip to content

Commit 2a6db7b

Browse files
committed
Update babel-eslint and flow dependencies
1 parent d3dbb2e commit 2a6db7b

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"babel-cli": "^6.9.0",
41-
"babel-eslint": "^6.0.4",
41+
"babel-eslint": "^7.0.0",
4242
"babel-jest": "^16.0.0",
4343
"babel-plugin-syntax-flow": "^6.8.0",
4444
"babel-plugin-transform-flow-strip-types": "^6.8.0",
@@ -47,9 +47,8 @@
4747
"babel-preset-stage-1": "^6.5.0",
4848
"cross-spawn": "^4.0.0",
4949
"eslint": "^3.2.2",
50-
"flow-bin": "^0.31.0",
50+
"flow-bin": "^0.33.0",
5151
"jest": "^16.0.1",
52-
"jest-cli": "^15.1.1",
5352
"rimraf": "^2.3.2",
5453
"temp": "^0.8.1"
5554
},

src/__tests__/__snapshots__/main-test.js.snap

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exports[`main fixtures processes component "component_1.js" without errors 1`] =
22
Object {
33
"description": "The is a component to test the document generation",
44
"displayName": "Component",
5-
"methods": Array []
5+
"methods": Array [],
66
}
77
`;
88

@@ -14,30 +14,30 @@ Object {
1414
Object {
1515
"docblock": null,
1616
"modifiers": Array [
17-
"static"
17+
"static",
1818
],
1919
"name": "displayName",
2020
"params": Array [],
21-
"returns": null
21+
"returns": null,
2222
},
2323
Object {
2424
"docblock": null,
2525
"modifiers": Array [
26-
"static"
26+
"static",
2727
],
2828
"name": "defaultProps",
2929
"params": Array [],
30-
"returns": null
31-
}
30+
"returns": null,
31+
},
3232
],
3333
"props": Object {
3434
"type": Object {
3535
"defaultValue": Object {
3636
"computed": false,
37-
"value": "\"primary\""
38-
}
39-
}
40-
}
37+
"value": "\"primary\"",
38+
},
39+
},
40+
},
4141
}
4242
`;
4343

@@ -50,10 +50,10 @@ Object {
5050
"description": "",
5151
"required": false,
5252
"type": Object {
53-
"name": "object"
54-
}
55-
}
56-
}
53+
"name": "object",
54+
},
55+
},
56+
},
5757
}
5858
`;
5959

@@ -68,16 +68,16 @@ Object {
6868
"type": Object {
6969
"computed": true,
7070
"name": "shape",
71-
"value": "Child.propTypes"
72-
}
71+
"value": "Child.propTypes",
72+
},
7373
},
7474
"something": Object {
7575
"description": "",
7676
"required": true,
7777
"type": Object {
78-
"name": "string"
79-
}
80-
}
81-
}
78+
"name": "string",
79+
},
80+
},
81+
},
8282
}
8383
`;

src/utils/parseJsDoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import doctrine from 'doctrine';
1313

1414
type JsDoc = {
1515
description: ?string;
16-
params: [{
16+
params: Array<{
1717
name: string;
1818
description: ?string;
1919
type: ?{name: string};
2020
optional?: boolean;
21-
}];
21+
}>;
2222
returns: ?{
2323
description: ?string;
2424
type: ?{name: string};

0 commit comments

Comments
 (0)