Update eslint (#2348)

* Update eslint

* Check for missing semicolons with eslint and fix those
This commit is contained in:
Veeck
2018-07-10 12:55:22 +02:00
committed by GitHub
parent e15e3e15e6
commit 56f2e44636
7 changed files with 7 additions and 9 deletions

View File

@@ -48,6 +48,7 @@
"last"
],
"dot-notation": "off",
"semi": "error",
"valid-jsdoc": "error",
"no-global-getComputedStyle": "error",
"jsdoc/check-tag-names": 1,

View File

@@ -27,7 +27,7 @@ define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
var bool = false;
try {
bool = !!elem.canPlayType
bool = !!elem.canPlayType;
if (bool) {
bool = new Boolean(bool);
bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"') .replace(/^no$/, '');

View File

@@ -15,7 +15,7 @@ define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
var bool = false;
var test = testAllProps('columnCount');
try {
bool = !!test
bool = !!test;
if (bool) {
bool = new Boolean(bool);
}
@@ -38,8 +38,5 @@ define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
Modernizr.addTest('csscolumns.' + name, test);
}
})();
});

View File

@@ -9,7 +9,7 @@
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('focuswithin', function() {
try {
document.querySelector(':focus-within')
document.querySelector(':focus-within');
} catch (error) {
return false;
}

View File

@@ -41,7 +41,7 @@ define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
// IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224
try {
bool = !!elem.canPlayType
bool = !!elem.canPlayType;
if (bool) {
bool = new Boolean(bool);
bool.ogg = elem.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, '');

View File

@@ -16,7 +16,7 @@ define(['Modernizr'], function(Modernizr) {
protoBin;
if ('WebSocket' in window) {
protoBin = 'binaryType' in WebSocket.prototype
protoBin = 'binaryType' in WebSocket.prototype;
if (protoBin) {
return protoBin;
}

View File

@@ -17,7 +17,7 @@
},
"devDependencies": {
"@alrra/travis-scripts": "^3.0.1",
"eslint": "^5.0.1",
"eslint": "^5.1.0",
"eslint-plugin-jsdoc": "^3.7.1",
"expect.js": "^0.3.1",
"grunt": "^1.0.3",