Skip to content

Commit 536917b

Browse files
committed
lint: fix object key spacing
1 parent 559a2fd commit 536917b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"comma-dangle": [2, "never"],
77
"consistent-return": 2,
88
"indent": ["error", 2, {"SwitchCase": 1}],
9+
"key-spacing": [2, { "align": { "beforeColon": true, "afterColon": true, "on": "colon" } }],
910
"no-cond-assign": 2,
1011
"no-constant-condition": 2,
1112
"no-control-regex": 2,

lib/SqlString.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
var SqlString = exports;
22
var charsRegex = /[\0\b\t\n\r\x1a\"\'\\]/g; // eslint-disable-line no-control-regex
33
var charsMap = {
4-
'\0': '\\0',
5-
'\b': '\\b',
6-
'\t': '\\t',
7-
'\n': '\\n',
8-
'\r': '\\r',
9-
'\x1a': '\\Z',
10-
'"': '\\"',
11-
'\'': '\\\'',
12-
'\\': '\\\\'
4+
'\0' : '\\0',
5+
'\b' : '\\b',
6+
'\t' : '\\t',
7+
'\n' : '\\n',
8+
'\r' : '\\r',
9+
'\x1a' : '\\Z',
10+
'"' : '\\"',
11+
'\'' : '\\\'',
12+
'\\' : '\\\\'
1313
};
1414

1515
SqlString.escapeId = function escapeId(val, forbidQualified) {

0 commit comments

Comments
 (0)