Skip to content

Commit

Permalink
style: remove obsolete ESLint rule, ensure LF line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
jirikapoun committed Jan 10, 2025
1 parent 9107044 commit 3e92ea4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
8 changes: 0 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as os from 'os'
import nodev20 from '@strv/eslint-config-node/v20'
import nodeopt from '@strv/eslint-config-node/optional'
import nodestyle from '@strv/eslint-config-node/style'
Expand All @@ -7,7 +6,6 @@ import tsoptional from '@strv/eslint-config-typescript/optional'
import tsstyle from '@strv/eslint-config-typescript/style'
import mocha from '@strv/eslint-config-mocha'

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

Expand Down

0 comments on commit 3e92ea4

Please sign in to comment.