Skip to content

Commit

Permalink
Bump versions and add README to Steiger
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Jun 8, 2024
1 parent 3033500 commit e317502
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/steiger-plugin-fsd/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@feature-sliced/steiger-plugin",
"description": "A set of rules to verify correct usage of Feature-Sliced Design",
"version": "0.0.2",
"version": "0.1.0",
"scripts": {
"lint": "eslint .",
"format": "prettier --write . --cache",
Expand Down
54 changes: 54 additions & 0 deletions packages/steiger/README.md
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/)
3 changes: 2 additions & 1 deletion packages/steiger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
},
"files": [
"dist",
"src"
"src",
"README.md"
],
"dependencies": {
"@feature-sliced/filesystem": "^2.2.3",
Expand Down

0 comments on commit e317502

Please sign in to comment.