Skip to content

Commit 6a42d01

Browse files
authored
feat(lint): enforce LF line break in all JS and LESS files
Assert GH-2362 and reject any CRLF present by CI.
1 parent aa53fbd commit 6a42d01

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module.exports = {
3636
indent: ['error', 4, {
3737
SwitchCase: 1,
3838
}],
39+
'linebreak-style': ['error', 'unix'],
3940
'max-len': 'off',
4041
'no-console': 'off',
4142
'no-continue': 'off',

.stylelintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
'block-closing-brace-newline-before': null, // fix bad formatting with "each()"
1313
'declaration-block-trailing-semicolon': null, // fix bad formatting with "each()"
1414
indentation: null, // TODO change to "4" once https://github.com/fomantic/Fomantic-UI/pull/2593#discussion_r1045131096 is fixed
15+
linebreaks: 'unix',
1516
'max-line-length': null,
1617
'no-descending-specificity': null,
1718
'no-extra-semicolons': null, // fix GH-1832 - workaround for wikimedia/less.php parser

0 commit comments

Comments
 (0)