Skip to content

Commit 0660e4e

Browse files
committed
Fix lint
1 parent 264daab commit 0660e4e

8 files changed

+909
-502
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
docs/codesandbox
22
website-dist
3+
dist

.eslintrc

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
{
22
"extends": [
3-
"standard",
3+
"eslint:recommended",
44
"plugin:es5/no-es2015"
55
],
6+
"env": {
7+
"node": true,
8+
"browser": true
9+
},
610
"rules": {
7-
"no-console": "error"
11+
"no-console": "error",
12+
"no-prototype-builtins": 0
13+
},
14+
"globals": {
15+
"Promise": true,
16+
"Set": true
817
}
918
}

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
.*.sw?
22
.sw?
33
/node_modules/
4-
/hyperdom.js
5-
/hyperdom.min.js
6-
/hyperdom.min.js.gz
74
/npm-debug.log
85
website-dist
96
tags

bindModel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function bindTextInput (attributes, children, binding) {
141141
}, binding)
142142
}
143143

144-
function attachEventHandler (attributes, eventNames, handler, binding) {
144+
function attachEventHandler (attributes, eventNames, handler) {
145145
if (eventNames instanceof Array) {
146146
for (var n = 0; n < eventNames.length; n++) {
147147
insertEventHandler(attributes, eventNames[n], handler)

componentWidget.js

-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ ComponentWidget.prototype.refresh = function () {
112112
}
113113
}
114114

115-
ComponentWidget.prototype.refresh = ComponentWidget.prototype.refresh
116-
117115
ComponentWidget.prototype.destroy = function (element) {
118116
var self = this
119117

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"docsify-cli": "^4.3.0",
2222
"electron": "1.8.2",
2323
"electron-mocha": "3.4.0",
24-
"eslint": "3.19.0",
25-
"eslint-config-standard": "10.2.1",
26-
"eslint-plugin-es5": "1.0.1",
27-
"eslint-plugin-import": "2.2.0",
28-
"eslint-plugin-node": "4.2.2",
29-
"eslint-plugin-promise": "3.5.0",
30-
"eslint-plugin-standard": "3.0.1",
24+
"eslint": "7.22.0",
25+
"eslint-config-standard": "16.0.2",
26+
"eslint-plugin-es5": "1.5.0",
27+
"eslint-plugin-import": "2.22.1",
28+
"eslint-plugin-node": "11.1.0",
29+
"eslint-plugin-promise": "4.3.1",
30+
"eslint-plugin-standard": "5.0.0",
3131
"gh-pages": "^2.0.1",
3232
"hyperx": "2.3.0",
3333
"jquery": "3.3.1",

router.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function bindParams (params) {
310310

311311
Router.prototype.hasRoute = function (model, url) {
312312
var action = walkRoutes(url, model, function (route, match) {
313-
if (!route.notFound && (match = route.matchUrl(url))) {
313+
if (!route.notFound && (match == route.matchUrl(url))) {
314314
return {}
315315
}
316316
})
@@ -472,7 +472,7 @@ var Memory = function () {
472472
this.state = ['/']
473473
}
474474

475-
Memory.prototype.start = function (model) {}
475+
Memory.prototype.start = function () {}
476476

477477
Memory.prototype.stop = function () {}
478478

0 commit comments

Comments
 (0)