Skip to content

Commit 058217f

Browse files
committed
style(lint): fix eslint config
1 parent b770d88 commit 058217f

24 files changed

+74
-65
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dev": "node examples/server.js",
2929
"dev:dist": "rollup -wm -c build/rollup.dev.config.js",
3030
"build": "node build/build.js",
31-
"lint": "eslint src examples",
31+
"lint": "eslint src test examples",
3232
"test": "npm run lint && npm run flow && npm run test:unit && npm run test:e2e && npm run test:types",
3333
"flow": "flow check",
3434
"test:unit": "jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",

test/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"jasmine": true
4+
}
5+
}

test/e2e/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"browser": true
4+
}
5+
}

test/e2e/runner.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var path = require('path')
21
var spawn = require('cross-spawn')
32
var args = process.argv.slice(2)
43

test/e2e/specs/active-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module.exports = {
33
'active links': function (browser) {
44
browser
5-
.url('http://localhost:8080/active-links/')
5+
.url('http://localhost:8080/active-links/')
66
.waitForElementVisible('#app', 1000)
77
.assert.count('li a', 11)
88
// assert correct href with base

test/e2e/specs/auth-flow.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
'auth flow': function (browser) {
33
browser
4-
.url('http://localhost:8080/auth-flow/')
4+
.url('http://localhost:8080/auth-flow/')
55
.waitForElementVisible('#app', 1000)
66
.assert.containsText('#app p', 'You are logged out')
77

@@ -21,7 +21,7 @@ module.exports = {
2121
.assert.containsText('#app p', 'Yay you made it!')
2222

2323
// reload
24-
.url('http://localhost:8080/auth-flow/')
24+
.url('http://localhost:8080/auth-flow/')
2525
.waitForElementVisible('#app', 1000)
2626
.assert.containsText('#app p', 'You are logged in')
2727

@@ -32,7 +32,7 @@ module.exports = {
3232
.assert.containsText('#app p', 'Yay you made it!')
3333

3434
// directly visit dashboard when logged in
35-
.url('http://localhost:8080/auth-flow/dashboard')
35+
.url('http://localhost:8080/auth-flow/dashboard')
3636
.waitForElementVisible('#app', 1000)
3737
.assert.urlEquals('http://localhost:8080/auth-flow/dashboard')
3838
.assert.containsText('#app h2', 'Dashboard')
@@ -44,7 +44,7 @@ module.exports = {
4444
.assert.containsText('#app p', 'You are logged out')
4545

4646
// directly visit dashboard when logged out
47-
.url('http://localhost:8080/auth-flow/dashboard')
47+
.url('http://localhost:8080/auth-flow/dashboard')
4848
.waitForElementVisible('#app', 1000)
4949
.assert.urlEquals('http://localhost:8080/auth-flow/login?redirect=%2Fdashboard')
5050
.assert.containsText('#app h2', 'Login')

test/e2e/specs/basic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
basic: function (browser) {
33
browser
4-
.url('http://localhost:8080/basic/')
4+
.url('http://localhost:8080/basic/')
55
.waitForElementVisible('#app', 1000)
66
.assert.count('li', 5)
77
.assert.count('li a', 5)
@@ -34,10 +34,10 @@ module.exports = {
3434
.assert.containsText('.view', 'unicode')
3535

3636
// check initial visit
37-
.url('http://localhost:8080/basic/foo')
37+
.url('http://localhost:8080/basic/foo')
3838
.waitForElementVisible('#app', 1000)
3939
.assert.containsText('.view', 'foo')
40-
.url('http://localhost:8080/basic/%C3%A9')
40+
.url('http://localhost:8080/basic/%C3%A9')
4141
.waitForElementVisible('#app', 1000)
4242
.assert.containsText('.view', 'unicode')
4343
.end()

test/e2e/specs/data-fetching.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
'data fetching': function (browser) {
33
browser
4-
.url('http://localhost:8080/data-fetching/')
4+
.url('http://localhost:8080/data-fetching/')
55
.waitForElementVisible('#app', 1000)
66
.assert.count('li a', 4)
77
.assert.containsText('.view', 'home')

test/e2e/specs/hash-mode.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
'Hash mode': function (browser) {
33
browser
4-
.url('http://localhost:8080/hash-mode/')
4+
.url('http://localhost:8080/hash-mode/')
55
.waitForElementVisible('#app', 1000)
66
.assert.count('li', 5)
77
.assert.count('li a', 4)
@@ -28,10 +28,10 @@ module.exports = {
2828
.assert.containsText('.view', 'bar')
2929

3030
// check initial visit
31-
.url('http://localhost:8080/hash-mode/#/foo')
31+
.url('http://localhost:8080/hash-mode/#/foo')
3232
.waitForElementVisible('#app', 1000)
3333
.assert.containsText('.view', 'foo')
34-
.url('http://localhost:8080/hash-mode/#/%C3%A9')
34+
.url('http://localhost:8080/hash-mode/#/%C3%A9')
3535
.waitForElementVisible('#app', 1000)
3636
.assert.containsText('.view', 'unicode')
3737
.end()

test/e2e/specs/hash-scroll-behavior.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
'scroll behavior': function (browser) {
33
browser
4-
.url('http://localhost:8080/hash-scroll-behavior/')
4+
.url('http://localhost:8080/hash-scroll-behavior/')
55
.waitForElementVisible('#app', 1000)
66
.assert.count('li a', 5)
77
.assert.containsText('.view', 'home')

0 commit comments

Comments
 (0)