Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Update eslint parsing to ES2017

Juerg B8c5ed3a80ee3
diff --git a/.eslintrc.yml b/.eslintrc.yml
index a6681398..b47ddca1 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -29,7 +29,7 @@ overrides:
- test/integration/helpers.js
- lib/growl.js
parserOptions:
- ecmaVersion: 6
+ ecmaVersion: 2017
env:
browser: no
@@ -77,7 +77,7 @@ overrides:
- files:
- test/**/*.mjs
parserOptions:
- ecmaVersion: 6
+ ecmaVersion: 2017
sourceType: module
- files:
diff --git a/karma.conf.js b/karma.conf.js
index 82e934bb..b0c71385 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -31,8 +31,10 @@ module.exports = config => {
browserify: {
debug: true,
configure: function configure(b) {
- b.ignore('glob')
+ b.ignore('./lib/cli/*.js')
+ .ignore('chokidar')
.ignore('fs')
+ .ignore('glob')
.ignore('path')
.ignore('supports-color')
.on('bundled', (err, content) => {
diff --git a/package-scripts.js b/package-scripts.js
index 6d9985b9..0e414e15 100644
--- a/package-scripts.js
+++ b/package-scripts.js
@@ -23,7 +23,7 @@ function test(testName, mochaParams) {
module.exports = {
scripts: {
build: {
- script: `browserify -e browser-entry.js --plugin ./scripts/dedefine --ignore 'fs' --ignore 'glob' --ignore 'path' --ignore 'supports-color' --ignore chokidar -o mocha.js`,
+ script: `browserify -e browser-entry.js --plugin ./scripts/dedefine --ignore './lib/cli/*.js' --ignore 'chokidar' --ignore 'fs' --ignore 'glob' --ignore 'path' --ignore 'supports-color' -o mocha.js`,
description: 'Build browser bundle'
},
lint: {
diff --git a/package.json b/package.json
index 7715078e..3135e39f 100644
--- a/package.json
+++ b/package.json
@@ -626,11 +626,12 @@
"./index.js": "./browser-entry.js",
"./lib/growl.js": "./lib/browser/growl.js",
"tty": "./lib/browser/tty.js",
+ "./lib/cli/*.js": false,
+ "chokidar": false,
"fs": false,
"glob": false,
"path": false,
- "supports-color": false,
- "chokidar": false
+ "supports-color": false
},
"prettier": {
"singleQuote": true,