https://github.com/jsdaddy/dart-linter-rules
Custom linter rules for Dart and Flutter projecrts
https://github.com/jsdaddy/dart-linter-rules
Last synced: 16 days ago
JSON representation
Custom linter rules for Dart and Flutter projecrts
- Host: GitHub
- URL: https://github.com/jsdaddy/dart-linter-rules
- Owner: JsDaddy
- Created: 2024-06-14T09:50:41.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T10:35:24.000Z (almost 2 years ago)
- Last Synced: 2025-11-27T18:59:15.847Z (6 months ago)
- Language: Dart
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# jsdaddy_custom_lints
`jsdaddy_custom_lints` is a Dart package designed to enforce a custom lint rule that ensures file names follow the kebab-case convention. This package is useful for maintaining consistent file naming conventions across your Dart and Flutter projects.
## Features
- Enforces file names to be in lowercase and use hyphens (`-`) instead of underscores (`_`).
- Integrates with the `custom_lint` package to provide real-time linting in your IDE.
## Installation
Add `jsdaddy_custom_lints` to your `pubspec.yaml` file:
```yaml
dev_dependencies:
jsdaddy_custom_lints:
git:
url: https://github.com/JsDaddy/dart-linter-rules
```
## Usage
To use the custom lint rule, add the following configuration to your `analysis_options.yaml` file:
```yaml
analyzer:
plugins:
- custom_lint
custom_lint:
enable_all_lint_rules: false
rules:
- file_naming_kebab_case
```
This configuration will enable the file_naming_kebab_case rule, ensuring that all Dart files are checked for compliance with the kebab-case naming convention.