Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de9b0ce

Browse files
committed
eslint: add / enforce new-cap
- exclude MathJax.<> calls - exclude in micropolar module
1 parent bcf7b27 commit de9b0ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"dot-location": [2, "property"],
4747
"operator-linebreak": [2, "after"],
4848
"eqeqeq": [2],
49-
"new-cap": [0],
49+
"new-cap": [2, { "capIsNewExceptionPattern": "^MathJax\\.." }],
5050
"no-redeclare": [2, {"builtinGlobals": true}],
5151
"no-shadow": [0, {"builtinGlobals": true}],
5252
"block-scoped-var": [2],

src/plots/polar/micropolar_manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
/* eslint-disable new-cap */
910

1011
'use strict';
1112

0 commit comments

Comments
 (0)