Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

add javascript in docs to eslint

Christopher Hiller442cf5fccc35
diff --git a/.eslintignore b/.eslintignore
index d9a508ec..a7a33c25 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,8 +1,11 @@
coverage/
mocha.js
*.fixture.js
-docs/
+docs/_site
+docs/_dist
+docs/example
out/
!lib/mocha.js
test/integration/fixtures
!.*.js
+*.min.js
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 43d8bcfd..0834c5c9 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -20,6 +20,10 @@ rules:
- object: 'Object'
property: 'assign'
overrides:
+ - files:
+ - docs/js/**/*.js
+ env:
+ node: false
- files:
- scripts/**/*.js
- package-scripts.js
diff --git a/docs/js/avatars.js b/docs/js/avatars.js
index 7706fa1e..b64294e8 100644
--- a/docs/js/avatars.js
+++ b/docs/js/avatars.js
@@ -1,9 +1,9 @@
-(function () {
+(function() {
'use strict';
var imageLists = document.querySelectorAll('.image-list');
- Array.prototype.forEach.call(imageLists, function (imageList) {
+ Array.prototype.forEach.call(imageLists, function(imageList) {
var images = imageList.querySelectorAll('img');
var counter = images.length;
@@ -28,5 +28,4 @@
}
}
});
-
-}());
+})();