@sasjs/lint 2.2.1 → 2.2.2
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/package.json
CHANGED
package/sasjslint-schema.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"noSpacesInFileNames": true,
|
|
21
21
|
"noTabs": true,
|
|
22
22
|
"noTrailingSpaces": true,
|
|
23
|
-
"lineEndings": "
|
|
23
|
+
"lineEndings": "off",
|
|
24
24
|
"strictMacroDefinition": true,
|
|
25
25
|
"ignoreList": ["sajsbuild", "sasjsresults"]
|
|
26
26
|
},
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"enum": ["lf", "crlf", "off"],
|
|
186
186
|
"title": "lineEndings",
|
|
187
187
|
"description": "Enforces the configured terminating character for each line. Shows a warning when incorrect line endings are present.",
|
|
188
|
-
"default": "
|
|
188
|
+
"default": "off",
|
|
189
189
|
"examples": ["lf", "crlf"]
|
|
190
190
|
},
|
|
191
191
|
"strictMacroDefinition": {
|
package/utils/getLintConfig.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { LintConfig } from '../types/LintConfig';
|
|
2
|
+
import { LineEndings } from '../types/LineEndings';
|
|
2
3
|
export declare const getDefaultHeader: () => string;
|
|
3
4
|
/**
|
|
4
5
|
* Default configuration that is used when a .sasjslint file is not found
|
|
5
6
|
*/
|
|
6
7
|
export declare const DefaultLintConfiguration: {
|
|
8
|
+
lineEndings: LineEndings;
|
|
7
9
|
noTrailingSpaces: boolean;
|
|
8
10
|
noEncodedPasswords: boolean;
|
|
9
11
|
hasDoxygenHeader: boolean;
|
package/utils/getLintConfig.js
CHANGED
|
@@ -44,6 +44,7 @@ var path_1 = __importDefault(require("path"));
|
|
|
44
44
|
var LintConfig_1 = require("../types/LintConfig");
|
|
45
45
|
var file_1 = require("@sasjs/utils/file");
|
|
46
46
|
var getProjectRoot_1 = require("./getProjectRoot");
|
|
47
|
+
var LineEndings_1 = require("../types/LineEndings");
|
|
47
48
|
var getDefaultHeader = function () {
|
|
48
49
|
return "/**{lineEnding} @file{lineEnding} @brief <Your brief here>{lineEnding} <h4> SAS Macros </h4>{lineEnding}**/";
|
|
49
50
|
};
|
|
@@ -52,6 +53,7 @@ exports.getDefaultHeader = getDefaultHeader;
|
|
|
52
53
|
* Default configuration that is used when a .sasjslint file is not found
|
|
53
54
|
*/
|
|
54
55
|
exports.DefaultLintConfiguration = {
|
|
56
|
+
lineEndings: LineEndings_1.LineEndings.OFF,
|
|
55
57
|
noTrailingSpaces: true,
|
|
56
58
|
noEncodedPasswords: true,
|
|
57
59
|
hasDoxygenHeader: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLintConfig.js","sourceRoot":"","sources":["../../src/utils/getLintConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,kDAAgD;AAChD,0CAA4C;AAC5C,mDAAiD;
|
|
1
|
+
{"version":3,"file":"getLintConfig.js","sourceRoot":"","sources":["../../src/utils/getLintConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,kDAAgD;AAChD,0CAA4C;AAC5C,mDAAiD;AACjD,oDAAkD;AAE3C,IAAM,gBAAgB,GAAG;IAC9B,OAAA,gHAAgH;AAAhH,CAAgH,CAAA;AADrG,QAAA,gBAAgB,oBACqF;AAElH;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC,WAAW,EAAE,yBAAW,CAAC,GAAG;IAC5B,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,EAAE;IACjB,mBAAmB,EAAE,EAAE;IACvB,iBAAiB,EAAE,EAAE;IACrB,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