-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump versions and add README to Steiger
- Loading branch information
Showing
3 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Steiger | ||
|
||
Universal file structure and project architecture linter. | ||
|
||
> [!NOTE] | ||
> The project is in beta and in active development. Some APIs may change. | ||
# Features | ||
|
||
- Built-in set of rules to validate adherence to [Feature-Sliced Design](https://feature-sliced.design/) | ||
- Watch mode | ||
- Rule configurability | ||
|
||
# Installation | ||
|
||
```bash | ||
npm i -D steiger | ||
``` | ||
|
||
# Usage | ||
|
||
```bash | ||
steiger ./src | ||
``` | ||
|
||
To run in watch mode, add `-w`/`--watch` to the command: | ||
|
||
```bash | ||
steiger ./src --watch | ||
``` | ||
|
||
# Configuration | ||
|
||
Steiger is configurable via `cosmiconfig`. That means that you can create a `steiger.config.ts` or `steiger.config.js` file in the root of your project to configure the rules. Import `{ defineConfig } from "steiger"` to get autocompletion. | ||
|
||
```ts | ||
import { defineConfig } from 'steiger' | ||
|
||
export default defineConfig({ | ||
rules: { | ||
'no-public-api': 'off', | ||
}, | ||
}) | ||
``` | ||
|
||
# Contribution | ||
|
||
Feel free to report an issue or open a discussion. Ensure you read our [Code of Conduct](CODE_OF_CONDUCT.md) first though :) | ||
|
||
To get started with the codebase, see our [Contributing guide](CONTRIBUTING.md). | ||
|
||
# Legal info | ||
|
||
Project licensed under [MIT License](LICENSE.md). [Here's what it means](https://choosealicense.com/licenses/mit/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters