# filename-case

Require lowercase kebab-case source filenames

Inconsistent filename casing makes module paths harder to predict across filesystems.
Instead, you SHOULD use lowercase ASCII kebab-case for every source filename component.

Dot-separated roles such as `.test` and `.d` are checked independently.

- Category: style
- Level: warning
- Fix: none
- Scope: module

## Reported

```ds title="UserService.ds"
export const value = 1;
```

## Accepted

```ds title="user-service.ds"
export const value = 1;
```

## Prior art

- [eslint-plugin-unicorn · filename-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md)

[language/linter/src/rules/style/filename_case.rs:4](https://github.com/destack-sh/destack/blob/main/language/linter/src/rules/style/filename_case.rs#L4)
