Skip to content

Commit 6b9c15d

Browse files
luyangkennethyamgent
authored andcommitted
Disable no-underscore-dangle ESLint rule (MarkBind#650)
This is to allow the use of underscore naming convention for _privateMethods(), without having to manually disable the rule.
1 parent a721784 commit 6b9c15d

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
"rules": {
1313
"array-bracket-newline": ["error", { "multiline": true }],
1414
"func-names": "off",
15+
"no-underscore-dangle": "off",
1516
"function-paren-newline": "off",
1617
"indent": [
1718
"error",

src/Site.js

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable no-underscore-dangle */
2-
31
const cheerio = require('cheerio');
42
const ejs = require('ejs');
53
const fs = require('fs-extra-promise');
@@ -820,7 +818,6 @@ Site.prototype.deploy = function () {
820818
});
821819
};
822820

823-
// eslint-disable-next-line no-underscore-dangle
824821
Site.prototype._setTimestampVariable = function () {
825822
const time = new Date().toUTCString();
826823
Object.keys(this.userDefinedVariablesMap).forEach((base) => {

src/lib/markbind/src/parser.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable no-underscore-dangle */
2-
31
const cheerio = require('cheerio');
42
const fs = require('fs');
53
const htmlparser = require('htmlparser2');

0 commit comments

Comments
 (0)