Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[fixed] updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Jun 21, 2016
1 parent 68c7907 commit d572c23
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,18 @@ rules:
react/require-render-return: 2
react/self-closing-comp: 2
react/wrap-multilines: 2
react/require-optimization: 2
react/no-render-return-value: 2
react/no-comment-textnodes: 2

# babel
babel/new-cap: 2
babel/array-bracket-spacing: 2
babel/object-curly-spacing: 2
babel/object-shorthand: 2
babel/arrow-parens: [ 2, as-needed ]
babel/flow-object-type: 2
babel/func-params-comma-dangle: 1

# lodash
lodash/callback-binding: 2
Expand Down
18 changes: 9 additions & 9 deletions docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ <h5 class="subsection-title">Properties:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-24">line 24</a>
<a href="typedef.js.html#sunlight-1-line-33">line 33</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -969,7 +969,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-43">line 43</a>
<a href="typedef.js.html#sunlight-1-line-52">line 52</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -1245,7 +1245,7 @@ <h5 class="subsection-title">Properties:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-12">line 12</a>
<a href="typedef.js.html#sunlight-1-line-15">line 15</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -1411,7 +1411,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-49">line 49</a>
<a href="typedef.js.html#sunlight-1-line-58">line 58</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -1589,7 +1589,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-56">line 56</a>
<a href="typedef.js.html#sunlight-1-line-65">line 65</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -1881,7 +1881,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-37">line 37</a>
<a href="typedef.js.html#sunlight-1-line-46">line 46</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -2015,7 +2015,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-84">line 84</a>
<a href="typedef.js.html#sunlight-1-line-102">line 102</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -2233,7 +2233,7 @@ <h5 class="subsection-title">Properties:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-63">line 63</a>
<a href="typedef.js.html#sunlight-1-line-72">line 72</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -2415,7 +2415,7 @@ <h5 class="subsection-title">Properties:</h5>
<ul class="dummy">
<li>
<a href="typedef.js.html">typedef.js</a>,
<a href="typedef.js.html#sunlight-1-line-74">line 74</a>
<a href="typedef.js.html#sunlight-1-line-88">line 88</a>
</li>
</ul>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion docs/highlight.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h1 class="page-title">Source: highlight.js</h1>
* @return {Object} an object containing a CheerioDOM object and a CheerioCollection of the `pre.CodeMirror-line`
* elements
*/
export function highlight(value: string): {dom: any, lines: any} {
export function highlight(value: string): {dom: any; lines: any} {
const el = document.createElement('div');

cm(el, {value, mode: {name: 'jsx', typescript: true}, scrollbarStyle: 'null', inputStyle: 'contenteditable'});
Expand Down
2 changes: 1 addition & 1 deletion docs/quicksearch.html

Large diffs are not rendered by default.

26 changes: 22 additions & 4 deletions docs/typedef.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ <h1 class="page-title">Source: typedef.js</h1>
* @property {string} code - program code
* @property {string} map - source map json string
*/
export type ProgramData = {code: string, map: string};
export type ProgramData = {
code: string;
map: string;
};

/**
* The JavaScript linting error object
Expand All @@ -103,7 +106,13 @@ <h1 class="page-title">Source: typedef.js</h1>
* @property {number} line - the offending line number
* @property {number} column - the offending column number
*/
export type JSLintError = {message: string, ruleId?: string, filePath: string, line: number, column: number};
export type JSLintError = {
message: string;
ruleId?: string;
filePath: string;
line: number;
column: number;
};

/**
* Documentation generator configuration object
Expand Down Expand Up @@ -153,7 +162,12 @@ <h1 class="page-title">Source: typedef.js</h1>
* @property {boolean} exists - true if the file exists
* @property {string} type - e.g. "f"
*/
export type WatchmanFile = {name: string, size: number, exists: boolean, type: string};
export type WatchmanFile = {
name: string;
size: number;
exists: boolean;
type: string;
};

/**
* A watchman response object.
Expand All @@ -163,7 +177,11 @@ <h1 class="page-title">Source: typedef.js</h1>
* @property {string} subscription - random subscription name
* @property {Array&lt;WatchmanFile>} files - an array of file descriptions
*/
export type WatchmanResponse = {root: string, subscription: string, files: Array&lt;WatchmanFile>};
export type WatchmanResponse = {
root: string;
subscription: string;
files: Array&lt;WatchmanFile>;
};

/**
* @callback WatchCallback
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"dependencies": {
"autoprefixer": "^6.3.6",
"babel-cli": "^6.10.1",
"babel-core": "^6.9.1",
"babel-eslint": "^6.0.4",
"babel-core": "^6.10.4",
"babel-eslint": "^6.0.5",
"babel-loader": "^6.2.4",
"babel-plugin-transform-class-properties": "^6.9.1",
"babel-plugin-transform-class-properties": "^6.10.2",
"babel-plugin-transform-member-expression-literals": "^6.8.0",
"babel-plugin-transform-merge-sibling-variables": "^6.8.0",
"babel-plugin-transform-property-literals": "^6.8.0",
Expand All @@ -73,12 +73,12 @@
"babel-preset-stage-2": "^6.5.0",
"babel-runtime": "^6.9.2",
"cheerio": "^0.20.0",
"codemirror": "^5.15.2",
"eslint": "^2.12.0",
"eslint-plugin-babel": "^3.2.0",
"codemirror": "^5.16.0",
"eslint": "^2.13.1",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-flow-vars": "^0.4.0",
"eslint-plugin-lodash": "^1.9.2",
"eslint-plugin-react": "^5.1.1",
"eslint-plugin-react": "^5.2.2",
"fb-watchman": "^1.9.0",
"ink-docstrap": "^1.2.1",
"js-yaml": "^3.6.1",
Expand All @@ -88,7 +88,7 @@
"lodash": "^4.13.1",
"memory-fs": "^0.3.0",
"mkdirp": "^0.5.1",
"node-sass": "^3.7.0",
"node-sass": "^3.8.0",
"node-sass-import-once": "^1.2.0",
"null-loader": "^0.1.1",
"postcss": "^5.0.21",
Expand Down
2 changes: 1 addition & 1 deletion src/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ require('codemirror/mode/jsx/jsx');
* @return {Object} an object containing a CheerioDOM object and a CheerioCollection of the `pre.CodeMirror-line`
* elements
*/
export function highlight(value: string): {dom: any, lines: any} {
export function highlight(value: string): {dom: any; lines: any} {
const el = document.createElement('div');

cm(el, {value, mode: {name: 'jsx', typescript: true}, scrollbarStyle: 'null', inputStyle: 'contenteditable'});
Expand Down
26 changes: 22 additions & 4 deletions src/typedef.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
* @property {string} code - program code
* @property {string} map - source map json string
*/
export type ProgramData = {code: string, map: string};
export type ProgramData = {
code: string;
map: string;
};

/**
* The JavaScript linting error object
Expand All @@ -19,7 +22,13 @@ export type ProgramData = {code: string, map: string};
* @property {number} line - the offending line number
* @property {number} column - the offending column number
*/
export type JSLintError = {message: string, ruleId?: string, filePath: string, line: number, column: number};
export type JSLintError = {
message: string;
ruleId?: string;
filePath: string;
line: number;
column: number;
};

/**
* Documentation generator configuration object
Expand Down Expand Up @@ -69,7 +78,12 @@ export type ObjectOrErrorCallback = (error: ?string, result: Object) => void;
* @property {boolean} exists - true if the file exists
* @property {string} type - e.g. "f"
*/
export type WatchmanFile = {name: string, size: number, exists: boolean, type: string};
export type WatchmanFile = {
name: string;
size: number;
exists: boolean;
type: string;
};

/**
* A watchman response object.
Expand All @@ -79,7 +93,11 @@ export type WatchmanFile = {name: string, size: number, exists: boolean, type: s
* @property {string} subscription - random subscription name
* @property {Array<WatchmanFile>} files - an array of file descriptions
*/
export type WatchmanResponse = {root: string, subscription: string, files: Array<WatchmanFile>};
export type WatchmanResponse = {
root: string;
subscription: string;
files: Array<WatchmanFile>;
};

/**
* @callback WatchCallback
Expand Down

0 comments on commit d572c23

Please sign in to comment.