You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/10/28 00:57:56 UTC
[incubator-annotator] 04/04: Lint mocha and nyc config
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 39cade0c1067594c5deb68fabf052428a3e1762c
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sun Oct 27 17:55:13 2019 -0700
Lint mocha and nyc config
---
.eslintignore | 1 +
.eslintrc.js | 7 ++++++-
.mocharc.js | 5 +----
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/.eslintignore b/.eslintignore
index 49e918e..bbfdbb2 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,4 +1,5 @@
!.eslintrc.js
+!.mocharc.js
/coverage
/packages/*/esm/*
/packages/*/lib/*
diff --git a/.eslintrc.js b/.eslintrc.js
index c52aaad..c49964c 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -60,7 +60,12 @@ module.exports = {
},
overrides: [
{
- files: ['.eslintrc.js', '.mocharc.js', 'babel.config.js', 'scripts/*.js'],
+ files: [
+ '.eslintrc.js',
+ '.mocharc.js',
+ 'babel.config.js',
+ 'nyc.config.js',
+ ],
env: {
node: true,
},
diff --git a/.mocharc.js b/.mocharc.js
index 9ef86f5..4354b8f 100644
--- a/.mocharc.js
+++ b/.mocharc.js
@@ -19,8 +19,5 @@
*/
module.exports = {
- require: [
- '@babel/register',
- 'chai/register-assert',
- ],
+ require: ['@babel/register', 'chai/register-assert'],
};