Add mocha env to .eslintrc
authorFrank Bessou <frank.bessou@logilab.fr>
Fri, 30 Jun 2017 10:24:04 +0200
changeset 235 5f915cb3dc34
parent 234 b25424970acf
child 236 9e5eb5c240ca
Add mocha env to .eslintrc So that we don't have to add /* elsint-env mocha */ at the top of test files.
.eslintrc.yml
test/index.js
--- a/.eslintrc.yml	Fri Jun 30 12:09:52 2017 +0200
+++ b/.eslintrc.yml	Fri Jun 30 10:24:04 2017 +0200
@@ -18,6 +18,7 @@
   browser: true
   es6: true
   node: true
+  mocha: true
 rules:
   arrow-spacing: ["error"]
   comma-dangle: ["error", "always-multiline"]
--- a/test/index.js	Fri Jun 30 12:09:52 2017 +0200
+++ b/test/index.js	Fri Jun 30 10:24:04 2017 +0200
@@ -1,5 +1,4 @@
-/* eslint-env mocha */
-/* global describe, it, Jsonary*/
+/* global Jsonary*/
 
 import chai from 'chai';
 import chaiAsPromised from 'chai-as-promised';