@sasjs/lint 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/format/formatFile.js +2 -2
- package/format/formatFile.js.map +1 -1
- package/format/shared.js +1 -1
- package/format/shared.js.map +1 -1
- package/package.json +1 -1
- package/rules/file/strictMacroDefinition.js +1 -1
- package/rules/file/strictMacroDefinition.js.map +1 -1
- package/rules/line/noGremlins.js +2 -70
- package/rules/line/noGremlins.js.map +1 -1
- package/types/LintConfig.js +16 -15
- package/types/LintConfig.js.map +1 -1
- package/utils/getLintConfig.d.ts +1 -0
- package/utils/getLintConfig.js +1 -0
- package/utils/getLintConfig.js.map +1 -1
- package/utils/gremlinCharacters.d.ts +311 -0
- package/utils/gremlinCharacters.js +317 -0
- package/utils/gremlinCharacters.js.map +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/index.js.map +1 -1
- package/utils/splitText.js +5 -3
- package/utils/splitText.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
[](/LICENSE)
|
|
2
1
|

|
|
3
2
|
[](https://github.com/sasjs/lint/issues?q=is%3Aissue+is%3Aclosed)
|
|
4
3
|
[](https://github.com/sasjs/lint/issues)
|
|
@@ -130,7 +129,7 @@ We strongly recommend a line length limit, and set the bar at 80. To turn this f
|
|
|
130
129
|
|
|
131
130
|
Capture zero-width whitespace and other non-standard characters. The logic is borrowed from the [VSCode Gremlins Extension](https://github.com/nhoizey/vscode-gremlins) - if you are looking for more advanced gremlin zapping capabilities, we highly recommend to use their extension instead.
|
|
132
131
|
|
|
133
|
-
The list of characters can be found in this file: [https://github.com/sasjs/lint/blob/main/src/
|
|
132
|
+
The list of characters can be found in this file: [https://github.com/sasjs/lint/blob/main/src/utils/gremlinCharacters.ts](https://github.com/sasjs/lint/blob/main/src/utils/gremlinCharacters.ts)
|
|
134
133
|
|
|
135
134
|
- Default: true
|
|
136
135
|
- Severity: WARNING
|
package/format/formatFile.js
CHANGED
|
@@ -60,7 +60,7 @@ var formatFile = function (filePath, configuration) { return __awaiter(void 0, v
|
|
|
60
60
|
_b.label = 2;
|
|
61
61
|
case 2:
|
|
62
62
|
config = _a;
|
|
63
|
-
return [4 /*yield*/, lint_1.lintFile(filePath)];
|
|
63
|
+
return [4 /*yield*/, lint_1.lintFile(filePath, config)];
|
|
64
64
|
case 3:
|
|
65
65
|
diagnosticsBeforeFormat = _b.sent();
|
|
66
66
|
diagnosticsCountBeforeFormat = diagnosticsBeforeFormat.length;
|
|
@@ -71,7 +71,7 @@ var formatFile = function (filePath, configuration) { return __awaiter(void 0, v
|
|
|
71
71
|
return [4 /*yield*/, file_1.createFile(filePath, formattedText)];
|
|
72
72
|
case 5:
|
|
73
73
|
_b.sent();
|
|
74
|
-
return [4 /*yield*/, lint_1.lintFile(filePath)];
|
|
74
|
+
return [4 /*yield*/, lint_1.lintFile(filePath, config)];
|
|
75
75
|
case 6:
|
|
76
76
|
diagnosticsAfterFormat = _b.sent();
|
|
77
77
|
diagnosticsCountAfterFormat = diagnosticsAfterFormat.length;
|
package/format/formatFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatFile.js","sourceRoot":"","sources":["../../src/format/formatFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAwD;AACxD,gCAAkC;AAGlC,wDAAsD;AACtD,mCAAsC;AAEtC;;;;;GAKG;AACI,IAAM,UAAU,GAAG,UACxB,QAAgB,EAChB,aAA0B;;;;;gBAEX,KAAA,aAAa,CAAA;wBAAb,wBAAa;gBAAK,qBAAM,6BAAa,EAAE,EAAA;;gBAAtB,KAAA,CAAC,SAAqB,CAAC,CAAA;;;gBAAjD,MAAM,KAA2C;gBACvB,qBAAM,eAAQ,CAAC,QAAQ,CAAC,EAAA;;
|
|
1
|
+
{"version":3,"file":"form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 var processLine = function (config, line) {
|
|
|
27
27
|
config.lineLintRules
|
|
28
28
|
.filter(function (r) { return !!r.fix; })
|
|
29
29
|
.forEach(function (rule) {
|
|
30
|
-
processedLine = rule.fix(
|
|
30
|
+
processedLine = rule.fix(processedLine, config);
|
|
31
31
|
});
|
|
32
32
|
return processedLine;
|
|
33
33
|
};
|
package/format/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/format/shared.ts"],"names":[],"mappings":";;;AACA,oDAAkD;AAClD,gDAA8C;AAEvC,IAAM,WAAW,GAAG,UAAC,IAAY,EAAE,MAAkB;IAC1D,IAAM,aAAa,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAClD,IAAM,KAAK,GAAG,qBAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC9C,IAAM,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI;QACpC,OAAO,mBAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAClC,CAAC,CAAC,CAAA;IAEF,IAAM,oBAAoB,GACxB,MAAM,CAAC,WAAW,KAAK,yBAAW,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAA;IACvD,OAAO,cAAc,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA;AAClD,CAAC,CAAA;AAVY,QAAA,WAAW,eAUvB;AAED,IAAM,cAAc,GAAG,UAAC,MAAkB,EAAE,OAAe;IACzD,IAAI,gBAAgB,GAAG,OAAO,CAAA;IAC9B,MAAM,CAAC,aAAa;SACjB,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,CAAC,GAAG,EAAP,CAAO,CAAC;SACtB,OAAO,CAAC,UAAC,IAAI;QACZ,gBAAgB,GAAG,IAAI,CAAC,GAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACxD,CAAC,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,GAAG,IAAI,CAAC,GAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACxD,CAAC,CAAC,CAAA;IAEJ,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA;AAEM,IAAM,WAAW,GAAG,UAAC,MAAkB,EAAE,IAAY;IAC1D,IAAI,aAAa,GAAG,IAAI,CAAA;IACxB,MAAM,CAAC,aAAa;SACjB,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,CAAC,GAAG,EAAP,CAAO,CAAC;SACtB,OAAO,CAAC,UAAC,IAAI;QACZ,aAAa,GAAG,IAAI,CAAC,GAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAClD,CAAC,CAAC,CAAA;IAEJ,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AATY,QAAA,WAAW,eASvB"}
|
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ var processOptions = function (_declaration, macro, diagnostics, config) {
|
|
|
82
82
|
var optionsPresent = (_b = (_a = _declaration.split('/')) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.trim();
|
|
83
83
|
var severity = (config === null || config === void 0 ? void 0 : config.severityLevel[name]) || types_1.Severity.Warning;
|
|
84
84
|
if (optionsPresent) {
|
|
85
|
-
var regex = new RegExp(/="(.*?)"/, 'g');
|
|
85
|
+
var regex = new RegExp(/=["|'](.*?)["|']/, 'g');
|
|
86
86
|
var result = regex.exec(optionsPresent);
|
|
87
87
|
// removing Option's `="..."` part, e.g. des="..."
|
|
88
88
|
while (result) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strictMacroDefinition.js","sourceRoot":"","sources":["../../../src/rules/file/strictMacroDefinition.ts"],"names":[],"mappings":";;;AAAA,qCAAqE;AAErE,yDAAuD;AACvD,uDAAqD;AAErD,IAAM,IAAI,GAAG,uBAAuB,CAAA;AACpC,IAAM,WAAW,GAAG,oDAAoD,CAAA;AACxE,IAAM,OAA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aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,CAAA;QAErE,cAAc,CAAC,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,CAAA;IAC1D,CAAC,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA;AAED;;GAEG;AACU,QAAA,qBAAqB,GAAiB;IACjD,IAAI,EAAE,2BAAY,CAAC,IAAI;IACvB,IAAI,MAAA;IACJ,WAAW,aAAA;IACX,OAAO,SAAA;IACP,IAAI,MAAA;CACL,CAAA"}
|
package/rules/line/noGremlins.js
CHANGED
|
@@ -30,6 +30,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
exports.noGremlins = void 0;
|
|
31
31
|
var LintRuleType_1 = require("../../types/LintRuleType");
|
|
32
32
|
var Severity_1 = require("../../types/Severity");
|
|
33
|
+
var utils_1 = require("../../utils");
|
|
33
34
|
var name = 'noGremlins';
|
|
34
35
|
var description = 'Disallow characters specified in gremlins array';
|
|
35
36
|
var message = 'Line contains a gremlin';
|
|
@@ -39,7 +40,7 @@ var test = function (value, lineNumber, config) {
|
|
|
39
40
|
var diagnostics = [];
|
|
40
41
|
var gremlins = {};
|
|
41
42
|
try {
|
|
42
|
-
for (var _b = __values(Object.entries(gremlinCharacters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
43
|
+
for (var _b = __values(Object.entries(utils_1.gremlinCharacters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
43
44
|
var _d = __read(_c.value, 2), hexCode = _d[0], config_1 = _d[1];
|
|
44
45
|
gremlins[charFromHex(hexCode)] = Object.assign({}, config_1, {
|
|
45
46
|
hexCode: hexCode
|
|
@@ -81,73 +82,4 @@ exports.noGremlins = {
|
|
|
81
82
|
test: test
|
|
82
83
|
};
|
|
83
84
|
var charFromHex = function (hexCode) { return String.fromCodePoint(parseInt(hexCode)); };
|
|
84
|
-
var gremlinCharacters = {
|
|
85
|
-
'0x2013': {
|
|
86
|
-
description: 'en dash'
|
|
87
|
-
},
|
|
88
|
-
'0x2018': {
|
|
89
|
-
description: 'left single quotation mark'
|
|
90
|
-
},
|
|
91
|
-
'0x2019': {
|
|
92
|
-
description: 'right single quotation mark'
|
|
93
|
-
},
|
|
94
|
-
'0x2029': {
|
|
95
|
-
zeroWidth: true,
|
|
96
|
-
description: 'paragraph separator'
|
|
97
|
-
},
|
|
98
|
-
'0x2066': {
|
|
99
|
-
zeroWidth: true,
|
|
100
|
-
description: 'Left to right'
|
|
101
|
-
},
|
|
102
|
-
'0x2069': {
|
|
103
|
-
zeroWidth: true,
|
|
104
|
-
description: 'Pop directional'
|
|
105
|
-
},
|
|
106
|
-
'0x0003': {
|
|
107
|
-
description: 'end of text'
|
|
108
|
-
},
|
|
109
|
-
'0x000b': {
|
|
110
|
-
description: 'line tabulation'
|
|
111
|
-
},
|
|
112
|
-
'0x00a0': {
|
|
113
|
-
description: 'non breaking space'
|
|
114
|
-
},
|
|
115
|
-
'0x00ad': {
|
|
116
|
-
description: 'soft hyphen'
|
|
117
|
-
},
|
|
118
|
-
'0x200b': {
|
|
119
|
-
zeroWidth: true,
|
|
120
|
-
description: 'zero width space'
|
|
121
|
-
},
|
|
122
|
-
'0x200c': {
|
|
123
|
-
zeroWidth: true,
|
|
124
|
-
description: 'zero width non-joiner'
|
|
125
|
-
},
|
|
126
|
-
'0x200e': {
|
|
127
|
-
zeroWidth: true,
|
|
128
|
-
description: 'left-to-right mark'
|
|
129
|
-
},
|
|
130
|
-
'0x201c': {
|
|
131
|
-
description: 'left double quotation mark'
|
|
132
|
-
},
|
|
133
|
-
'0x201d': {
|
|
134
|
-
description: 'right double quotation mark'
|
|
135
|
-
},
|
|
136
|
-
'0x202c': {
|
|
137
|
-
zeroWidth: true,
|
|
138
|
-
description: 'pop directional formatting'
|
|
139
|
-
},
|
|
140
|
-
'0x202d': {
|
|
141
|
-
zeroWidth: true,
|
|
142
|
-
description: 'left-to-right override'
|
|
143
|
-
},
|
|
144
|
-
'0x202e': {
|
|
145
|
-
zeroWidth: true,
|
|
146
|
-
description: 'right-to-left override'
|
|
147
|
-
},
|
|
148
|
-
'0xfffc': {
|
|
149
|
-
zeroWidth: true,
|
|
150
|
-
description: 'object replacement character'
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
85
|
//# sourceMappingURL=noGremlins.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noGremlins.js","sourceRoot":"","sources":["../../../src/rules/line/noGremlins.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yDAAuD;AACvD,iDAA+C;AAE/C,IAAM,IAAI,GAAG,YAAY,CAAA;AACzB,IAAM,WAAW,GAAG,iDAAiD,CAAA;AACrE,IAAM,OAAO,GAAG,yBAAyB,CAAA;AAEzC,IAAM,IAAI,GAAG,UAAC,KAAa,EAAE,UAAkB,EAAE,MAAmB;;IAClE,IAAM,QAAQ,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,CAAC,IAAI,CAAC,KAAI,mBAAQ,CAAC,OAAO,CAAA;IAEhE,IAAM,WAAW,GAAiB,EAAE,CAAA;IAEpC,IAAM,QAAQ,GAAQ,EAAE,CAAA;;QAExB,KAAgC,IAAA,KAAA,SAAA,MAAM,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"noGremlins.js","sourceRoot":"","sources":["../../../src/rules/line/noGremlins.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yDAAuD;AACvD,iDAA+C;AAC/C,qCAA+C;AAE/C,IAAM,IAAI,GAAG,YAAY,CAAA;AACzB,IAAM,WAAW,GAAG,iDAAiD,CAAA;AACrE,IAAM,OAAO,GAAG,yBAAyB,CAAA;AAEzC,IAAM,IAAI,GAAG,UAAC,KAAa,EAAE,UAAkB,EAAE,MAAmB;;IAClE,IAAM,QAAQ,GAAG,CAAA,MAAM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ED,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA;AAED;;GAEG;AACU,QAAA,UAAU,GAAiB;IACtC,IAAI,EAAE,2BAAY,CAAC,IAAI;IACvB,IAAI,MAAA;IACJ,WAAW,aAAA;IACX,OAAO,SAAA;IACP,IAAI,MAAA;CACL,CAAA;AAED,IAAM,WAAW,GAAG,UAAC,OAAe,IAAK,OAAA,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAvC,CAAuC,CAAA"}
|
package/types/LintConfig.js
CHANGED
|
@@ -67,56 +67,57 @@ var LintConfig = /** @class */ (function () {
|
|
|
67
67
|
throw new Error("Property \"ignoreList\" can only be an array of strings");
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
if (json === null || json === void 0 ? void 0 : json.noTrailingSpaces) {
|
|
70
|
+
if ((json === null || json === void 0 ? void 0 : json.noTrailingSpaces) !== false) {
|
|
71
71
|
this.lineLintRules.push(line_1.noTrailingSpaces);
|
|
72
72
|
}
|
|
73
|
-
if (json === null || json === void 0 ? void 0 : json.noEncodedPasswords) {
|
|
73
|
+
if ((json === null || json === void 0 ? void 0 : json.noEncodedPasswords) !== false) {
|
|
74
74
|
this.lineLintRules.push(line_1.noEncodedPasswords);
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
this.lineLintRules.push(line_1.noTabs);
|
|
77
|
+
if ((json === null || json === void 0 ? void 0 : json.noTabs) === false || (json === null || json === void 0 ? void 0 : json.noTabIndentation) === false) {
|
|
78
|
+
this.lineLintRules.pop();
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
+
this.lineLintRules.push(line_1.maxLineLength);
|
|
81
|
+
if (!isNaN(json === null || json === void 0 ? void 0 : json.maxLineLength)) {
|
|
80
82
|
this.maxLineLength = json.maxLineLength;
|
|
81
|
-
this.lineLintRules.push(line_1.maxLineLength);
|
|
82
83
|
}
|
|
84
|
+
this.fileLintRules.push(file_1.lineEndings);
|
|
83
85
|
if (json === null || json === void 0 ? void 0 : json.lineEndings) {
|
|
84
86
|
if (json.lineEndings !== LineEndings_1.LineEndings.LF &&
|
|
85
87
|
json.lineEndings !== LineEndings_1.LineEndings.CRLF) {
|
|
86
88
|
throw new Error("Invalid value for lineEndings: can be " + LineEndings_1.LineEndings.LF + " or " + LineEndings_1.LineEndings.CRLF);
|
|
87
89
|
}
|
|
88
90
|
this.lineEndings = json.lineEndings;
|
|
89
|
-
this.fileLintRules.push(file_1.lineEndings);
|
|
90
91
|
}
|
|
92
|
+
this.lineLintRules.push(line_1.indentationMultiple);
|
|
91
93
|
if (!isNaN(json === null || json === void 0 ? void 0 : json.indentationMultiple)) {
|
|
92
94
|
this.indentationMultiple = json.indentationMultiple;
|
|
93
|
-
this.lineLintRules.push(line_1.indentationMultiple);
|
|
94
95
|
}
|
|
95
|
-
if (json === null || json === void 0 ? void 0 : json.hasDoxygenHeader) {
|
|
96
|
+
if ((json === null || json === void 0 ? void 0 : json.hasDoxygenHeader) !== false) {
|
|
96
97
|
this.fileLintRules.push(file_1.hasDoxygenHeader);
|
|
97
98
|
}
|
|
98
99
|
if (json === null || json === void 0 ? void 0 : json.defaultHeader) {
|
|
99
100
|
this.defaultHeader = json.defaultHeader;
|
|
100
101
|
}
|
|
101
|
-
if (json === null || json === void 0 ? void 0 : json.noSpacesInFileNames) {
|
|
102
|
+
if ((json === null || json === void 0 ? void 0 : json.noSpacesInFileNames) !== false) {
|
|
102
103
|
this.pathLintRules.push(path_1.noSpacesInFileNames);
|
|
103
104
|
}
|
|
104
|
-
if (json === null || json === void 0 ? void 0 : json.lowerCaseFileNames) {
|
|
105
|
+
if ((json === null || json === void 0 ? void 0 : json.lowerCaseFileNames) !== false) {
|
|
105
106
|
this.pathLintRules.push(path_1.lowerCaseFileNames);
|
|
106
107
|
}
|
|
107
108
|
if (json === null || json === void 0 ? void 0 : json.hasMacroNameInMend) {
|
|
108
109
|
this.fileLintRules.push(file_1.hasMacroNameInMend);
|
|
109
110
|
}
|
|
110
|
-
if (json === null || json === void 0 ? void 0 : json.noNestedMacros) {
|
|
111
|
+
if ((json === null || json === void 0 ? void 0 : json.noNestedMacros) !== false) {
|
|
111
112
|
this.fileLintRules.push(file_1.noNestedMacros);
|
|
112
113
|
}
|
|
113
|
-
if (json === null || json === void 0 ? void 0 : json.hasMacroParentheses) {
|
|
114
|
+
if ((json === null || json === void 0 ? void 0 : json.hasMacroParentheses) !== false) {
|
|
114
115
|
this.fileLintRules.push(file_1.hasMacroParentheses);
|
|
115
116
|
}
|
|
116
|
-
if (json === null || json === void 0 ? void 0 : json.strictMacroDefinition) {
|
|
117
|
+
if ((json === null || json === void 0 ? void 0 : json.strictMacroDefinition) !== false) {
|
|
117
118
|
this.fileLintRules.push(file_1.strictMacroDefinition);
|
|
118
119
|
}
|
|
119
|
-
if (json === null || json === void 0 ? void 0 : json.noGremlins) {
|
|
120
|
+
if ((json === null || json === void 0 ? void 0 : json.noGremlins) !== false) {
|
|
120
121
|
this.lineLintRules.push(line_1.noGremlins);
|
|
121
122
|
}
|
|
122
123
|
if (json === null || json === void 0 ? void 0 : json.severityLevel) {
|
package/types/LintConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LintConfig.js","sourceRoot":"","sources":["../../src/types/LintConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAOsB;AACtB,sCAOsB;AACtB,sCAAuE;AACvE,6CAA2C;AAE3C,kCAA2C;AAC3C,uCAAqC;AAErC;;;;;;GAMG;AACH;IAWE,oBAAY,IAAU;;QAAtB,
|
|
1
|
+
{"version":3,"file":"LintConfig.js","sourceRoot":"","sources":["../../src/types/LintConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAOsB;AACtB,sCAOsB;AACtB,sCAAuE;AACvE,6CAA2C;AAE3C,kCAA2C;AAC3C,uCAAqC;AAErC;;;;;;GAMG;AACH;IAW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Af,IAAI,QAAA,EAAE,QAAQ,QAAA;oBACxB,IAAI,QAAQ,KAAK,MAAM;wBAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,mBAAQ,CAAC,OAAO,CAAA;oBACpE,IAAI,QAAQ,KAAK,OAAO;wBAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,mBAAQ,CAAC,KAAK,CAAA;iBACpE;;;;;;;;;SACF;IACH,CAAC;IACH,iBAAC;AAAD,CAAC,AAzGD,IAyGC;AAzGY,gCAAU"}
|
package/utils/getLintConfig.d.ts
CHANGED
package/utils/getLintConfig.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLintConfig.js","sourceRoot":"","sources":["../../src/utils/getLintConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,kDAAgD;AAChD,0CAA4C;AAC5C,mDAAiD;AAE1C,IAAM,gBAAgB,GAAG;IAC9B,OAAA,gHAAgH;AAAhH,CAAgH,CAAA;AADrG,QAAA,gBAAgB,oBACqF;AAElH;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,EAAE;IACjB,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,CAAC;IACtB,kBAAkB,EAAE,IAAI;IACxB,cAAc,EAAE,IAAI;IACpB,mBAAmB,EAAE,IAAI;IACzB,qBAAqB,EAAE,IAAI;IAC3B,aAAa,EAAE,wBAAgB,EAAE;CAClC,CAAA;AAED;;;;GAIG;AACH,SAAsB,aAAa;;;;;wBACb,qBAAM,+BAAc,EAAE,EAAA;;oBAApC,WAAW,GAAG,SAAsB;oBACpB,qBAAM,eAAQ,CAClC,cAAI,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CAAC,SAAS,CAAC,gCAAwB,CAAC,CAAA;wBACjD,CAAC,CAAC,EAAA;;oBAJI,aAAa,GAAG,SAIpB;oBACF,sBAAO,IAAI,uBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,EAAA;;;;CACjD;AARD,sCAQC"}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
export declare const gremlinCharacters: {
|
|
2
|
+
'0x0003': {
|
|
3
|
+
description: string;
|
|
4
|
+
};
|
|
5
|
+
'0x000b': {
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
'0x007f': {
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
'0x0080': {
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
'0x0081': {
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
'0x0082': {
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
'0x0083': {
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
'0x0084': {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
'0x0085': {
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
'0x0086': {
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
'0x0087': {
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
'0x0088': {
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
'0x0089': {
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
'0x008a': {
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
'0x008b': {
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
'0x008c': {
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
'0x008d': {
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
'0x008e': {
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
'0x008f': {
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
'0x0090': {
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
'0x0091': {
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
'0x0092': {
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
'0x0093': {
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
'0x0094': {
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
'0x0095': {
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
'0x0096': {
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
'0x0097': {
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
'0x0098': {
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
'0x0099': {
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
'0x009a': {
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
'0x009b': {
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
'0x009c': {
|
|
96
|
+
description: string;
|
|
97
|
+
};
|
|
98
|
+
'0x009d': {
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
'0x009e': {
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
'0x009f': {
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
'0x00a0': {
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
'0x00ad': {
|
|
111
|
+
description: string;
|
|
112
|
+
};
|
|
113
|
+
'0x2000': {
|
|
114
|
+
description: string;
|
|
115
|
+
};
|
|
116
|
+
'0x2001': {
|
|
117
|
+
description: string;
|
|
118
|
+
};
|
|
119
|
+
'0x2002': {
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
'0x2003': {
|
|
123
|
+
description: string;
|
|
124
|
+
};
|
|
125
|
+
'0x2004': {
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
'0x2005': {
|
|
129
|
+
description: string;
|
|
130
|
+
};
|
|
131
|
+
'0x2006': {
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
'0x2007': {
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
'0x2008': {
|
|
138
|
+
description: string;
|
|
139
|
+
};
|
|
140
|
+
'0x2009': {
|
|
141
|
+
description: string;
|
|
142
|
+
};
|
|
143
|
+
'0x200a': {
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
'0x200b': {
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
'0x200c': {
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
'0x200d': {
|
|
153
|
+
description: string;
|
|
154
|
+
};
|
|
155
|
+
'0x200e': {
|
|
156
|
+
description: string;
|
|
157
|
+
};
|
|
158
|
+
'0x200f': {
|
|
159
|
+
description: string;
|
|
160
|
+
};
|
|
161
|
+
'0x2013': {
|
|
162
|
+
description: string;
|
|
163
|
+
};
|
|
164
|
+
'0x2018': {
|
|
165
|
+
description: string;
|
|
166
|
+
};
|
|
167
|
+
'0x2019': {
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
170
|
+
'0x201c': {
|
|
171
|
+
description: string;
|
|
172
|
+
};
|
|
173
|
+
'0x201d': {
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
'0x2028': {
|
|
177
|
+
description: string;
|
|
178
|
+
};
|
|
179
|
+
'0x2029': {
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
'0x202a': {
|
|
183
|
+
description: string;
|
|
184
|
+
};
|
|
185
|
+
'0x202b': {
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
'0x202c': {
|
|
189
|
+
description: string;
|
|
190
|
+
};
|
|
191
|
+
'0x202d': {
|
|
192
|
+
description: string;
|
|
193
|
+
};
|
|
194
|
+
'0x202e': {
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
'0x202f': {
|
|
198
|
+
description: string;
|
|
199
|
+
};
|
|
200
|
+
'0x205f': {
|
|
201
|
+
description: string;
|
|
202
|
+
};
|
|
203
|
+
'0x2060': {
|
|
204
|
+
description: string;
|
|
205
|
+
};
|
|
206
|
+
'0x2061': {
|
|
207
|
+
description: string;
|
|
208
|
+
};
|
|
209
|
+
'0x2062': {
|
|
210
|
+
description: string;
|
|
211
|
+
};
|
|
212
|
+
'0x2063': {
|
|
213
|
+
description: string;
|
|
214
|
+
};
|
|
215
|
+
'0x2064': {
|
|
216
|
+
description: string;
|
|
217
|
+
};
|
|
218
|
+
'0x2066': {
|
|
219
|
+
description: string;
|
|
220
|
+
};
|
|
221
|
+
'0x2067': {
|
|
222
|
+
description: string;
|
|
223
|
+
};
|
|
224
|
+
'0x2068': {
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
227
|
+
'0x2069': {
|
|
228
|
+
description: string;
|
|
229
|
+
};
|
|
230
|
+
'0x206a': {
|
|
231
|
+
description: string;
|
|
232
|
+
};
|
|
233
|
+
'0x206b': {
|
|
234
|
+
description: string;
|
|
235
|
+
};
|
|
236
|
+
'0x206c': {
|
|
237
|
+
description: string;
|
|
238
|
+
};
|
|
239
|
+
'0x206d': {
|
|
240
|
+
description: string;
|
|
241
|
+
};
|
|
242
|
+
'0x206e': {
|
|
243
|
+
description: string;
|
|
244
|
+
};
|
|
245
|
+
'0x206f': {
|
|
246
|
+
description: string;
|
|
247
|
+
};
|
|
248
|
+
'0x2800': {
|
|
249
|
+
description: string;
|
|
250
|
+
};
|
|
251
|
+
'0x3000': {
|
|
252
|
+
description: string;
|
|
253
|
+
};
|
|
254
|
+
'0x3164': {
|
|
255
|
+
description: string;
|
|
256
|
+
};
|
|
257
|
+
'0xfe00': {
|
|
258
|
+
description: string;
|
|
259
|
+
};
|
|
260
|
+
'0xfe01': {
|
|
261
|
+
description: string;
|
|
262
|
+
};
|
|
263
|
+
'0xfe02': {
|
|
264
|
+
description: string;
|
|
265
|
+
};
|
|
266
|
+
'0xfe03': {
|
|
267
|
+
description: string;
|
|
268
|
+
};
|
|
269
|
+
'0xfe04': {
|
|
270
|
+
description: string;
|
|
271
|
+
};
|
|
272
|
+
'0xfe05': {
|
|
273
|
+
description: string;
|
|
274
|
+
};
|
|
275
|
+
'0xfe06': {
|
|
276
|
+
description: string;
|
|
277
|
+
};
|
|
278
|
+
'0xfe07': {
|
|
279
|
+
description: string;
|
|
280
|
+
};
|
|
281
|
+
'0xfe08': {
|
|
282
|
+
description: string;
|
|
283
|
+
};
|
|
284
|
+
'0xfe09': {
|
|
285
|
+
description: string;
|
|
286
|
+
};
|
|
287
|
+
'0xfe0a': {
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
'0xfe0b': {
|
|
291
|
+
description: string;
|
|
292
|
+
};
|
|
293
|
+
'0xfe0c': {
|
|
294
|
+
description: string;
|
|
295
|
+
};
|
|
296
|
+
'0xfe0d': {
|
|
297
|
+
description: string;
|
|
298
|
+
};
|
|
299
|
+
'0xfe0e': {
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
302
|
+
'0xfe0f': {
|
|
303
|
+
description: string;
|
|
304
|
+
};
|
|
305
|
+
'0xfeff': {
|
|
306
|
+
description: string;
|
|
307
|
+
};
|
|
308
|
+
'0xfffc': {
|
|
309
|
+
description: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Used https://compart.com/en/unicode to find the to find the description of each gremlin
|
|
3
|
+
// List of gremlins was deduced from https://github.com/redoPop/SublimeGremlins/blob/main/Gremlins.py#L13
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.gremlinCharacters = void 0;
|
|
6
|
+
exports.gremlinCharacters = {
|
|
7
|
+
'0x0003': {
|
|
8
|
+
description: 'End of Text'
|
|
9
|
+
},
|
|
10
|
+
'0x000b': {
|
|
11
|
+
description: 'Line Tabulation'
|
|
12
|
+
},
|
|
13
|
+
'0x007f': {
|
|
14
|
+
description: 'Delete'
|
|
15
|
+
},
|
|
16
|
+
'0x0080': {
|
|
17
|
+
description: 'Padding'
|
|
18
|
+
},
|
|
19
|
+
'0x0081': {
|
|
20
|
+
description: 'High Octet Preset'
|
|
21
|
+
},
|
|
22
|
+
'0x0082': {
|
|
23
|
+
description: 'Break Permitted Here'
|
|
24
|
+
},
|
|
25
|
+
'0x0083': {
|
|
26
|
+
description: 'No Break Here'
|
|
27
|
+
},
|
|
28
|
+
'0x0084': {
|
|
29
|
+
description: 'Index'
|
|
30
|
+
},
|
|
31
|
+
'0x0085': {
|
|
32
|
+
description: 'Next Line'
|
|
33
|
+
},
|
|
34
|
+
'0x0086': {
|
|
35
|
+
description: 'Start of Selected Area'
|
|
36
|
+
},
|
|
37
|
+
'0x0087': {
|
|
38
|
+
description: 'End of Selected Area'
|
|
39
|
+
},
|
|
40
|
+
'0x0088': {
|
|
41
|
+
description: 'Character Tabulation Set'
|
|
42
|
+
},
|
|
43
|
+
'0x0089': {
|
|
44
|
+
description: 'Character Tabulation with Justification'
|
|
45
|
+
},
|
|
46
|
+
'0x008a': {
|
|
47
|
+
description: 'Line Tabulation Set'
|
|
48
|
+
},
|
|
49
|
+
'0x008b': {
|
|
50
|
+
description: 'Partial Line Down'
|
|
51
|
+
},
|
|
52
|
+
'0x008c': {
|
|
53
|
+
description: 'Partial Line Backward'
|
|
54
|
+
},
|
|
55
|
+
'0x008d': {
|
|
56
|
+
description: 'Reverse Index'
|
|
57
|
+
},
|
|
58
|
+
'0x008e': {
|
|
59
|
+
description: 'Single Shift Two'
|
|
60
|
+
},
|
|
61
|
+
'0x008f': {
|
|
62
|
+
description: 'Single Shift Three'
|
|
63
|
+
},
|
|
64
|
+
'0x0090': {
|
|
65
|
+
description: 'Device Control String'
|
|
66
|
+
},
|
|
67
|
+
'0x0091': {
|
|
68
|
+
description: 'Private Use One'
|
|
69
|
+
},
|
|
70
|
+
'0x0092': {
|
|
71
|
+
description: 'Private Use Two'
|
|
72
|
+
},
|
|
73
|
+
'0x0093': {
|
|
74
|
+
description: 'Set Transmit State'
|
|
75
|
+
},
|
|
76
|
+
'0x0094': {
|
|
77
|
+
description: 'Cancel Character'
|
|
78
|
+
},
|
|
79
|
+
'0x0095': {
|
|
80
|
+
description: 'Message Waiting'
|
|
81
|
+
},
|
|
82
|
+
'0x0096': {
|
|
83
|
+
description: 'Start of Guarded Area'
|
|
84
|
+
},
|
|
85
|
+
'0x0097': {
|
|
86
|
+
description: 'End of Guarded Area'
|
|
87
|
+
},
|
|
88
|
+
'0x0098': {
|
|
89
|
+
description: 'Start of String'
|
|
90
|
+
},
|
|
91
|
+
'0x0099': {
|
|
92
|
+
description: 'Single Graphic Character Introducer'
|
|
93
|
+
},
|
|
94
|
+
'0x009a': {
|
|
95
|
+
description: 'Single Character Introducer'
|
|
96
|
+
},
|
|
97
|
+
'0x009b': {
|
|
98
|
+
description: 'Control Sequence Introducer'
|
|
99
|
+
},
|
|
100
|
+
'0x009c': {
|
|
101
|
+
description: 'String Terminator'
|
|
102
|
+
},
|
|
103
|
+
'0x009d': {
|
|
104
|
+
description: 'Operating System Command'
|
|
105
|
+
},
|
|
106
|
+
'0x009e': {
|
|
107
|
+
description: 'Privacy Message'
|
|
108
|
+
},
|
|
109
|
+
'0x009f': {
|
|
110
|
+
description: 'Application Program Command'
|
|
111
|
+
},
|
|
112
|
+
'0x00a0': {
|
|
113
|
+
description: 'non breaking space'
|
|
114
|
+
},
|
|
115
|
+
'0x00ad': {
|
|
116
|
+
description: 'Soft Hyphen'
|
|
117
|
+
},
|
|
118
|
+
'0x2000': {
|
|
119
|
+
description: 'En Quad'
|
|
120
|
+
},
|
|
121
|
+
'0x2001': {
|
|
122
|
+
description: 'Em Quad'
|
|
123
|
+
},
|
|
124
|
+
'0x2002': {
|
|
125
|
+
description: 'En Space'
|
|
126
|
+
},
|
|
127
|
+
'0x2003': {
|
|
128
|
+
description: 'Em Space'
|
|
129
|
+
},
|
|
130
|
+
'0x2004': {
|
|
131
|
+
description: 'Three-Per-Em Space'
|
|
132
|
+
},
|
|
133
|
+
'0x2005': {
|
|
134
|
+
description: 'Four-Per-Em Space'
|
|
135
|
+
},
|
|
136
|
+
'0x2006': {
|
|
137
|
+
description: 'Six-Per-Em Space'
|
|
138
|
+
},
|
|
139
|
+
'0x2007': {
|
|
140
|
+
description: 'Figure Space'
|
|
141
|
+
},
|
|
142
|
+
'0x2008': {
|
|
143
|
+
description: 'Punctuation Space'
|
|
144
|
+
},
|
|
145
|
+
'0x2009': {
|
|
146
|
+
description: 'Thin Space'
|
|
147
|
+
},
|
|
148
|
+
'0x200a': {
|
|
149
|
+
description: 'Hair Space'
|
|
150
|
+
},
|
|
151
|
+
'0x200b': {
|
|
152
|
+
description: 'Zero Width Space'
|
|
153
|
+
},
|
|
154
|
+
'0x200c': {
|
|
155
|
+
description: 'Zero Width Non-Joiner'
|
|
156
|
+
},
|
|
157
|
+
'0x200d': {
|
|
158
|
+
description: 'Zero Width Joiner'
|
|
159
|
+
},
|
|
160
|
+
'0x200e': {
|
|
161
|
+
description: 'Left-to-Right Mark'
|
|
162
|
+
},
|
|
163
|
+
'0x200f': {
|
|
164
|
+
description: 'Right-to-Left Mark'
|
|
165
|
+
},
|
|
166
|
+
'0x2013': {
|
|
167
|
+
description: 'En Dash'
|
|
168
|
+
},
|
|
169
|
+
'0x2018': {
|
|
170
|
+
description: 'Left Single Quotation Mark'
|
|
171
|
+
},
|
|
172
|
+
'0x2019': {
|
|
173
|
+
description: 'Right Single Quotation Mark'
|
|
174
|
+
},
|
|
175
|
+
'0x201c': {
|
|
176
|
+
description: 'Left Double Quotation Mark'
|
|
177
|
+
},
|
|
178
|
+
'0x201d': {
|
|
179
|
+
description: 'Right Double Quotation Mark'
|
|
180
|
+
},
|
|
181
|
+
'0x2028': {
|
|
182
|
+
description: 'Line Separator'
|
|
183
|
+
},
|
|
184
|
+
'0x2029': {
|
|
185
|
+
description: 'Paragraph Separator'
|
|
186
|
+
},
|
|
187
|
+
'0x202a': {
|
|
188
|
+
description: 'Left-to-Right Embedding'
|
|
189
|
+
},
|
|
190
|
+
'0x202b': {
|
|
191
|
+
description: 'Right-to-Left Embedding'
|
|
192
|
+
},
|
|
193
|
+
'0x202c': {
|
|
194
|
+
description: 'Pop Directional Formatting'
|
|
195
|
+
},
|
|
196
|
+
'0x202d': {
|
|
197
|
+
description: 'Left-to-Right Override'
|
|
198
|
+
},
|
|
199
|
+
'0x202e': {
|
|
200
|
+
description: 'Right-to-Left Override'
|
|
201
|
+
},
|
|
202
|
+
'0x202f': {
|
|
203
|
+
description: 'Narrow No-Break Space'
|
|
204
|
+
},
|
|
205
|
+
'0x205f': {
|
|
206
|
+
description: 'Medium Mathematical Space'
|
|
207
|
+
},
|
|
208
|
+
'0x2060': {
|
|
209
|
+
description: 'Word Joiner'
|
|
210
|
+
},
|
|
211
|
+
'0x2061': {
|
|
212
|
+
description: 'Function Application'
|
|
213
|
+
},
|
|
214
|
+
'0x2062': {
|
|
215
|
+
description: 'Invisible Times'
|
|
216
|
+
},
|
|
217
|
+
'0x2063': {
|
|
218
|
+
description: 'Invisible Separator'
|
|
219
|
+
},
|
|
220
|
+
'0x2064': {
|
|
221
|
+
description: 'Invisible Plus'
|
|
222
|
+
},
|
|
223
|
+
'0x2066': {
|
|
224
|
+
description: 'Left-to-Right Isolate'
|
|
225
|
+
},
|
|
226
|
+
'0x2067': {
|
|
227
|
+
description: 'Right-to-Left Isolate'
|
|
228
|
+
},
|
|
229
|
+
'0x2068': {
|
|
230
|
+
description: 'First Strong Isolate '
|
|
231
|
+
},
|
|
232
|
+
'0x2069': {
|
|
233
|
+
description: 'Pop Directional Isolate'
|
|
234
|
+
},
|
|
235
|
+
'0x206a': {
|
|
236
|
+
description: 'Inhibit Symmetric Swapping'
|
|
237
|
+
},
|
|
238
|
+
'0x206b': {
|
|
239
|
+
description: 'Activate Symmetric Swapping'
|
|
240
|
+
},
|
|
241
|
+
'0x206c': {
|
|
242
|
+
description: 'Inhibit Arabic Form Shaping'
|
|
243
|
+
},
|
|
244
|
+
'0x206d': {
|
|
245
|
+
description: 'Activate Arabic Form Shaping'
|
|
246
|
+
},
|
|
247
|
+
'0x206e': {
|
|
248
|
+
description: 'National Digit Shapes'
|
|
249
|
+
},
|
|
250
|
+
'0x206f': {
|
|
251
|
+
description: 'Nominal Digit Shapes'
|
|
252
|
+
},
|
|
253
|
+
'0x2800': {
|
|
254
|
+
description: 'Braille Pattern Blank'
|
|
255
|
+
},
|
|
256
|
+
'0x3000': {
|
|
257
|
+
description: 'Ideographic Space'
|
|
258
|
+
},
|
|
259
|
+
'0x3164': {
|
|
260
|
+
description: 'Hangul Filler'
|
|
261
|
+
},
|
|
262
|
+
'0xfe00': {
|
|
263
|
+
description: 'Variation Selector-1'
|
|
264
|
+
},
|
|
265
|
+
'0xfe01': {
|
|
266
|
+
description: 'Variation Selector-2'
|
|
267
|
+
},
|
|
268
|
+
'0xfe02': {
|
|
269
|
+
description: 'Variation Selector-3'
|
|
270
|
+
},
|
|
271
|
+
'0xfe03': {
|
|
272
|
+
description: 'Variation Selector-4'
|
|
273
|
+
},
|
|
274
|
+
'0xfe04': {
|
|
275
|
+
description: 'Variation Selector-5'
|
|
276
|
+
},
|
|
277
|
+
'0xfe05': {
|
|
278
|
+
description: 'Variation Selector-6'
|
|
279
|
+
},
|
|
280
|
+
'0xfe06': {
|
|
281
|
+
description: 'Variation Selector-7'
|
|
282
|
+
},
|
|
283
|
+
'0xfe07': {
|
|
284
|
+
description: 'Variation Selector-8'
|
|
285
|
+
},
|
|
286
|
+
'0xfe08': {
|
|
287
|
+
description: 'Variation Selector-9'
|
|
288
|
+
},
|
|
289
|
+
'0xfe09': {
|
|
290
|
+
description: 'Variation Selector-10'
|
|
291
|
+
},
|
|
292
|
+
'0xfe0a': {
|
|
293
|
+
description: 'Variation Selector-11'
|
|
294
|
+
},
|
|
295
|
+
'0xfe0b': {
|
|
296
|
+
description: 'Variation Selector-12 '
|
|
297
|
+
},
|
|
298
|
+
'0xfe0c': {
|
|
299
|
+
description: 'Variation Selector-13'
|
|
300
|
+
},
|
|
301
|
+
'0xfe0d': {
|
|
302
|
+
description: 'Variation Selector-14'
|
|
303
|
+
},
|
|
304
|
+
'0xfe0e': {
|
|
305
|
+
description: 'Variation Selector-15'
|
|
306
|
+
},
|
|
307
|
+
'0xfe0f': {
|
|
308
|
+
description: 'Variation Selector-16'
|
|
309
|
+
},
|
|
310
|
+
'0xfeff': {
|
|
311
|
+
description: 'Zero Width No-Break Space'
|
|
312
|
+
},
|
|
313
|
+
'0xfffc': {
|
|
314
|
+
description: 'Object Replacement Character'
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
//# sourceMappingURL=gremlinCharacters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gremlinCharacters.js","sourceRoot":"","sources":["../../src/utils/gremlinCharacters.ts"],"names":[],"mappings":";AAAA,0FAA0F;AAC1F,yGAAyG;;;AAE5F,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE;QACR,WAAW,EAAE,aAAa;KAC3B;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,iBAAiB;KAC/B;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,QAAQ;KACtB;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,SAAS;KACvB;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,mBAAmB;KACjC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,eAAe;KAC7B;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,OAAO;KACrB;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,WAAW;KACzB;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,wBAAwB;K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AAe;KAC7B;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,sBAAsB;KACpC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,uBAAuB;KACrC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,uBAAuB;KACrC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,wBAAwB;KACtC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,uBAAuB;KACrC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,uBAAuB;KACrC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,uBAAuB;KACrC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,uBAAuB;KACrC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,2BAA2B;KACzC;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,8BAA8B;KAC5C;CACF,CAAA"}
|
package/utils/index.d.ts
CHANGED
package/utils/index.js
CHANGED
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./asyncForEach"), exports);
|
|
14
14
|
__exportStar(require("./getLintConfig"), exports);
|
|
15
15
|
__exportStar(require("./getProjectRoot"), exports);
|
|
16
|
+
__exportStar(require("./gremlinCharacters"), exports);
|
|
16
17
|
__exportStar(require("./isIgnored"), exports);
|
|
17
18
|
__exportStar(require("./listSasFiles"), exports);
|
|
18
19
|
__exportStar(require("./splitText"), exports);
|
package/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,8CAA2B;AAC3B,iDAA8B;AAC9B,8CAA2B;AAC3B,iDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,sDAAmC;AACnC,8CAA2B;AAC3B,iDAA8B;AAC9B,8CAA2B;AAC3B,iDAA8B"}
|
package/utils/splitText.js
CHANGED
|
@@ -12,9 +12,11 @@ var splitText = function (text, config) {
|
|
|
12
12
|
return [];
|
|
13
13
|
var expectedLineEndings = config.lineEndings === LineEndings_1.LineEndings.LF ? '\n' : '\r\n';
|
|
14
14
|
var incorrectLineEndings = expectedLineEndings === '\n' ? '\r\n' : '\n';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
text = text.replace(new RegExp(incorrectLineEndings, 'g'), expectedLineEndings);
|
|
16
|
+
// splitting text on '\r\n' was causing some problem
|
|
17
|
+
// as it was retaining carriage return at the end of each line
|
|
18
|
+
// so, removed the carriage returns from text and splitted on line feed (lf)
|
|
19
|
+
return text.replace(/\r/g, '').split(/\n/);
|
|
18
20
|
};
|
|
19
21
|
exports.splitText = splitText;
|
|
20
22
|
//# sourceMappingURL=splitText.js.map
|
package/utils/splitText.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitText.js","sourceRoot":"","sources":["../../src/utils/splitText.ts"],"names":[],"mappings":";;;AACA,oDAAkD;AAElD;;;;GAIG;AACI,IAAM,SAAS,GAAG,UAAC,IAAY,EAAE,MAAkB;IACxD,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"splitText.js","sourceRoot":"","sources":["../../src/utils/splitText.ts"],"names":[],"mappings":";;;AACA,oDAAkD;AAElD;;;;GAIG;AACI,IAAM,SAAS,GAAG,UAAC,IAAY,EAAE,MAAkB;IACxD,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAA;IAEpB,IAAM,mBAAmB,GACvB,MAAM,CAAC,WAAW,KAAK,yBAAW,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAA;IAEvD,IAAM,oBAAoB,GAAG,mBAAmB,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;IAEzE,IAAI,GAAG,IAAI,CAAC,OAAO,CACjB,IAAI,MAAM,CAAC,oBAAoB,EAAE,GAAG,CAAC,EACrC,mBAAmB,CACpB,CAAA;IAED,oDAAoD;IACpD,8DAA8D;IAC9D,4EAA4E;IAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC5C,CAAC,CAAA;AAjBY,QAAA,SAAS,aAiBrB"}
|