Skip to content

Commit b54dcc4

Browse files
committed
test non-gl2d/3d bundles to avoid function constructors
1 parent 6656ca3 commit b54dcc4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
at: ~/
146146
- run:
147147
name: Build dist/
148-
command: npm run build
148+
command: npm run build && npm run no-new-func
149149
- store_artifacts:
150150
path: dist
151151
destination: dist

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"watch": "node tasks/watch.js",
3232
"lint": "eslint --version && eslint .",
3333
"lint-fix": "eslint . --fix || true",
34+
"no-new-func": "eslint --no-ignore --no-eslintrc --rule '{no-new-func: error}' dist/plotly-finance.js dist/plotly-basic.js dist/plotly-cartesian.js dist/plotly-geo.js dist/plotly-mapbox.js",
3435
"docker": "node tasks/docker.js",
3536
"pretest": "node tasks/pretest.js",
3637
"test-jasmine": "karma start test/jasmine/karma.conf.js",

0 commit comments

Comments
 (0)