Skip to content

Commit fd481fc

Browse files
author
bearyan
committed
eslint
1 parent c71da70 commit fd481fc

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.eslintrc

+10-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"rules": {
1616
"indent": [
1717
"error",
18-
4
18+
4,
19+
{
20+
"SwitchCase": 1
21+
}
1922
],
2023
"quotes": [
2124
"error",
@@ -33,6 +36,12 @@
3336
"warn"
3437
]
3538
}
39+
],
40+
"no-func-assign": [
41+
"off"
42+
],
43+
"no-constant-condition": [
44+
"off"
3645
]
3746
}
3847
}

src/picker/picker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ function Result(item) {
1010
this.value = item.value;
1111
}
1212
Result.prototype.toString = function () {
13-
return this.value
13+
return this.value;
1414
};
1515
Result.prototype.valueOf = function () {
16-
return this.value
16+
return this.value;
1717
};
1818

1919
let _sington;

src/uploader/image.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,4 @@ function compress(file, options, callback) {
202202

203203
export default {
204204
compress
205-
}
205+
};

0 commit comments

Comments
 (0)