diff --git a/sasjslint-schema.json b/sasjslint-schema.json index 0736bbb..1deed47 100644 --- a/sasjslint-schema.json +++ b/sasjslint-schema.json @@ -20,7 +20,7 @@ "noSpacesInFileNames": true, "noTabs": true, "noTrailingSpaces": true, - "lineEndings": "lf", + "lineEndings": "off", "strictMacroDefinition": true, "ignoreList": ["sajsbuild", "sasjsresults"] }, @@ -185,7 +185,7 @@ "enum": ["lf", "crlf", "off"], "title": "lineEndings", "description": "Enforces the configured terminating character for each line. Shows a warning when incorrect line endings are present.", - "default": "lf", + "default": "off", "examples": ["lf", "crlf"] }, "strictMacroDefinition": { diff --git a/src/utils/getLintConfig.ts b/src/utils/getLintConfig.ts index ed000aa..ab96bca 100644 --- a/src/utils/getLintConfig.ts +++ b/src/utils/getLintConfig.ts @@ -2,6 +2,7 @@ import path from 'path' import { LintConfig } from '../types/LintConfig' import { readFile } from '@sasjs/utils/file' import { getProjectRoot } from './getProjectRoot' +import { LineEndings } from '../types/LineEndings' export const getDefaultHeader = () => `/**{lineEnding} @file{lineEnding} @brief {lineEnding}

SAS Macros

{lineEnding}**/` @@ -10,6 +11,7 @@ export const getDefaultHeader = () => * Default configuration that is used when a .sasjslint file is not found */ export const DefaultLintConfiguration = { + lineEndings: LineEndings.OFF, noTrailingSpaces: true, noEncodedPasswords: true, hasDoxygenHeader: true,