Skip to content

Commit 3e92ea4

Browse files
committed
style: remove obsolete ESLint rule, ensure LF line endings
1 parent 9107044 commit 3e92ea4

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

eslint.config.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as os from 'os'
21
import nodev20 from '@strv/eslint-config-node/v20'
32
import nodeopt from '@strv/eslint-config-node/optional'
43
import nodestyle from '@strv/eslint-config-node/style'
@@ -7,7 +6,6 @@ import tsoptional from '@strv/eslint-config-typescript/optional'
76
import tsstyle from '@strv/eslint-config-typescript/style'
87
import mocha from '@strv/eslint-config-mocha'
98

10-
const lbstyle = os.platform() === 'win32' ? 'windows' : 'unix'
119
const globs = {
1210
mjs: '**/*.mjs',
1311
ts: '**/*.ts',
@@ -34,12 +32,6 @@ const config = [
3432
{ files: [globs.ts],
3533
languageOptions: {
3634
parserOptions: { project: './tsconfig.json' },
37-
},
38-
rules: {
39-
// This repository is configured so that upon checkout, git should convert line endings to platform-specific
40-
// defaults and convert them back to LF when checking in. As such, we must enforce CRLF endings on Windows,
41-
// otherwise the lint task would fail on Windows systems.
42-
'linebreak-style': ['error', lbstyle],
4335
} },
4436
]
4537

0 commit comments

Comments
 (0)