|
1 |
| -<!-- |
2 |
| -This README describes the package. If you publish this package to pub.dev, |
3 |
| -this README's contents appear on the landing page for your package. |
| 1 | +# jsdaddy_custom_lints |
4 | 2 |
|
5 |
| -For information about how to write a good package README, see the guide for |
6 |
| -[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). |
7 |
| -
|
8 |
| -For general information about developing packages, see the Dart guide for |
9 |
| -[creating packages](https://dart.dev/guides/libraries/create-library-packages) |
10 |
| -and the Flutter guide for |
11 |
| -[developing packages and plugins](https://flutter.dev/developing-packages). |
12 |
| ---> |
13 |
| - |
14 |
| -TODO: Put a short description of the package here that helps potential users |
15 |
| -know whether this package might be useful for them. |
| 3 | +`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. |
16 | 4 |
|
17 | 5 | ## Features
|
18 | 6 |
|
19 |
| -TODO: List what your package can do. Maybe include images, gifs, or videos. |
| 7 | +- Enforces file names to be in lowercase and use hyphens (`-`) instead of underscores (`_`). |
| 8 | +- Integrates with the `custom_lint` package to provide real-time linting in your IDE. |
20 | 9 |
|
21 |
| -## Getting started |
| 10 | +## Installation |
22 | 11 |
|
23 |
| -TODO: List prerequisites and provide or point to information on how to |
24 |
| -start using the package. |
| 12 | +Add `jsdaddy_custom_lints` to your `pubspec.yaml` file: |
25 | 13 |
|
| 14 | +```yaml |
| 15 | +dev_dependencies: |
| 16 | + jsdaddy_custom_lints: |
| 17 | + git: |
| 18 | + url: https://github.com/JsDaddy/dart-linter-rules |
| 19 | +``` |
26 | 20 | ## Usage
|
27 | 21 |
|
28 |
| -TODO: Include short and useful examples for package users. Add longer examples |
29 |
| -to `/example` folder. |
| 22 | +To use the custom lint rule, add the following configuration to your `analysis_options.yaml` file: |
30 | 23 |
|
31 |
| -```dart |
32 |
| -const like = 'sample'; |
| 24 | +```yaml |
| 25 | +analyzer: |
| 26 | + plugins: |
| 27 | + - custom_lint |
| 28 | +custom_lint: |
| 29 | + enable_all_lint_rules: false |
| 30 | + rules: |
| 31 | + - file_naming_kebab_case |
33 | 32 | ```
|
34 |
| - |
35 |
| -## Additional information |
36 |
| - |
37 |
| -TODO: Tell users more about the package: where to find more information, how to |
38 |
| -contribute to the package, how to file issues, what response they can expect |
39 |
| -from the package authors, and more. |
| 33 | +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. |
0 commit comments