Skip to content

Commit 6f238bf

Browse files
committed
Version 1.3.0: no es2015
1 parent 42be377 commit 6f238bf

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.eslintrc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2-
"extends": "standard",
2+
"extends": [
3+
"standard",
4+
"eslint:recommended",
5+
"plugin:es5/no-es2015",
6+
"plugin:es5/no-es2016"
7+
],
38
"env": {
49
"browser": true,
510
"amd": true
@@ -10,11 +15,8 @@
1015
},
1116
"rules": {
1217
"indent": ["error", 4],
13-
// allow paren-less arrow functions
1418
"arrow-parens": 0,
15-
// allow async-await
1619
"generator-star-spacing": 0,
17-
// disallow trailing whitespace at the end of lines
1820
"no-trailing-spaces": [0, { "skipBlankLines": true }]
1921
}
2022
}

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;(function (root, factory) {
1+
(function (root, factory) {
22
var namespace = 'VirtualScrollList'
33
if (typeof exports === 'object' && typeof module === 'object') {
44
module.exports = factory(namespace, require('vue'))
@@ -143,7 +143,7 @@
143143

144144
// force render ui list if we needed.
145145
// call this before the next repaint to get better performance.
146-
forceRender () {
146+
forceRender: function () {
147147
var that = this
148148
window.requestAnimationFrame(function () {
149149
that.$forceUpdate()

package-lock.json

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-virtual-scroll-list",
3-
"version": "1.2.9",
3+
"version": "1.3.0",
44
"description": "A vue (2.x) component that support big data list with high scroll performance.",
55
"main": "index.js",
66
"files": [
@@ -32,6 +32,7 @@
3232
"css-loader": "^0.27.2",
3333
"eslint": "^4.1.1",
3434
"eslint-config-standard": "^10.2.1",
35+
"eslint-plugin-es5": "^1.3.1",
3536
"eslint-plugin-import": "^2.6.1",
3637
"eslint-plugin-node": "^5.1.0",
3738
"eslint-plugin-promise": "^3.5.0",

0 commit comments

Comments
 (0)