-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Eslint with google's style
- Loading branch information
Showing
144 changed files
with
21,582 additions
and
21,388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es6': true, | ||
'node': true, | ||
}, | ||
'extends': [ | ||
'google', | ||
], | ||
'globals': { | ||
'Atomics': 'readonly', | ||
'SharedArrayBuffer': 'readonly', | ||
}, | ||
'parserOptions': { | ||
'ecmaVersion': 2018, | ||
'sourceType': 'module', | ||
}, | ||
'rules': { | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
module.exports = function (grunt) { | ||
var browsers = [{ | ||
module.exports = function(grunt) { | ||
const browsers = [{ | ||
browserName: 'firefox', | ||
version: '19', | ||
platform: 'XP' | ||
platform: 'XP', | ||
}, { | ||
browserName: 'googlechrome', | ||
platform: 'XP' | ||
platform: 'XP', | ||
}, { | ||
browserName: 'googlechrome', | ||
platform: 'linux' | ||
platform: 'linux', | ||
}, { | ||
browserName: 'internet explorer', | ||
platform: 'WIN8', | ||
version: '10' | ||
version: '10', | ||
}, { | ||
browserName: 'internet explorer', | ||
platform: 'VISTA', | ||
version: '9' | ||
version: '9', | ||
}]; | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
connect: { | ||
'pkg': grunt.file.readJSON('package.json'), | ||
'connect': { | ||
server: { | ||
options: { | ||
base: '', | ||
port: 9999 | ||
} | ||
} | ||
port: 9999, | ||
}, | ||
}, | ||
}, | ||
|
||
'saucelabs-custom': { | ||
all: { | ||
options: { | ||
urls: [ | ||
'http://127.0.0.1:9999/index.html' | ||
'http://127.0.0.1:9999/index.html', | ||
], | ||
browsers: browsers, | ||
build: process.env.TRAVIS_JOB_ID, | ||
testname: 'custom tests', | ||
throttled: 3, | ||
sauceConfig: { | ||
'video-upload-on-pass': false | ||
} | ||
} | ||
} | ||
'video-upload-on-pass': false, | ||
}, | ||
}, | ||
}, | ||
}, | ||
watch: {} | ||
'watch': {}, | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-connect'); | ||
grunt.loadNpmTasks('grunt-saucelabs'); | ||
|
||
grunt.registerTask('default', ['connect', 'saucelabs-custom']); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
module.exports = function (grunt) { | ||
var browsers = [{ | ||
module.exports = function(grunt) { | ||
const browsers = [{ | ||
browserName: 'firefox', | ||
version: '19', | ||
platform: 'XP' | ||
platform: 'XP', | ||
}, { | ||
browserName: 'googlechrome', | ||
platform: 'XP' | ||
platform: 'XP', | ||
}, { | ||
browserName: 'googlechrome', | ||
platform: 'linux' | ||
platform: 'linux', | ||
}, { | ||
browserName: 'internet explorer', | ||
platform: 'WIN8', | ||
version: '10' | ||
version: '10', | ||
}, { | ||
browserName: 'internet explorer', | ||
platform: 'VISTA', | ||
version: '9' | ||
version: '9', | ||
}]; | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
connect: { | ||
'pkg': grunt.file.readJSON('package.json'), | ||
'connect': { | ||
server: { | ||
options: { | ||
base: '', | ||
port: 9999 | ||
} | ||
} | ||
port: 9999, | ||
}, | ||
}, | ||
}, | ||
|
||
'saucelabs-jasmine': { | ||
all: { | ||
options: { | ||
urls: [ | ||
'http://127.0.0.1:9999/SpecRunner.html', | ||
'http://127.0.0.1:9999/SpecRunnerDos.html' | ||
'http://127.0.0.1:9999/SpecRunnerDos.html', | ||
], | ||
browsers: browsers, | ||
build: process.env.TRAVIS_JOB_ID, | ||
testname: 'jasmine tests', | ||
throttled: 3, | ||
sauceConfig: { | ||
'video-upload-on-pass': false | ||
} | ||
} | ||
} | ||
'video-upload-on-pass': false, | ||
}, | ||
}, | ||
}, | ||
}, | ||
watch: {} | ||
'watch': {}, | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-connect'); | ||
grunt.loadNpmTasks('grunt-saucelabs'); | ||
|
||
grunt.registerTask('default', ['connect', 'saucelabs-jasmine']); | ||
}; | ||
}; |
Oops, something went wrong.