Skip to content

Commit bc8955b

Browse files
committed
Linting errors.
1 parent 6948a83 commit bc8955b

File tree

7 files changed

+11
-14
lines changed

7 files changed

+11
-14
lines changed

.sandbox/test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
let test;
22

33
/**
4-
* @param {Number} foo
5-
* @returns {String}
4+
* @param {number} foo
5+
* @returns {string}
66
*/
7-
test = () => {
8-
return '';
7+
test = (foo : string = 'test') => {
8+
return foo;
99
};
1010

1111
test();

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"chalk": "^1.1.1",
4747
"css-lint": "^1.0.1",
4848
"eslint": "^1.10.3",
49-
"eslint-config-canonical": "^1.4.1",
49+
"eslint-config-canonical": "^1.4.2",
5050
"eslint-config-canonical-jsdoc": "^1.2.9",
5151
"eslint-config-canonical-lodash": "^1.0.1",
5252
"eslint-config-canonical-react": "^1.2.3",
@@ -61,6 +61,6 @@
6161
"devDependencies": {
6262
"chai": "^3.4.1",
6363
"gitdown": "^2.4.0",
64-
"pragmatist": "^2.3.8"
64+
"pragmatist": "^2.3.9"
6565
}
6666
}

src/getFormatter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import checkstyleFormatter from './formatters/checkstyle';
33

44
/**
55
* @param {string} name Default: table
6-
* @return {Function}
6+
* @returns {Function}
77
*/
88
export default (name = 'table') => {
99
if (name === 'checkstyle') {

src/lintFiles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ linterMap = {
2121

2222
/**
2323
* @param {string[]} filePaths
24-
* @return {lintFiles~report}
24+
* @returns {lintFiles~report}
2525
*/
2626
export default (filePaths) => {
2727
let report;

src/lintText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
/**
3535
* @param {string} text
3636
* @param {lintText~options} options
37-
* @return {lintText~result}
37+
* @returns {lintText~result}
3838
*/
3939
export default (text, options) => {
4040
let result;

src/linters/js/eslintrc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"root": true,
33
"extends": [
4-
"canonical",
5-
"canonical-react",
6-
"canonical-jsdoc",
7-
"canonical-lodash"
4+
"/Users/gajus/Documents/dev/canonical-code-style/eslint-config-canonical/index.js"
85
]
96
}

tests/lintFiles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ describe('lintFiles', () => {
1616
report = lintFiles([]);
1717

1818
expect(report).to.deep.equal({
19-
results: [],
2019
errorCount: 0,
20+
results: [],
2121
warningCount: 0
2222
});
2323
});

0 commit comments

Comments
 (0)