Skip to content

Commit

Permalink
Bump versions (Steiger v0.5.0) (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
illright authored Nov 11, 2024
1 parent ba6fa4b commit d3340fe
Show file tree
Hide file tree
Showing 20 changed files with 98 additions and 75 deletions.
6 changes: 0 additions & 6 deletions .changeset/clean-chicken-tan.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dull-rice-guess.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/green-bags-applaud.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mean-buses-tan.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-planets-retire.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/quick-news-impress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-timers-matter.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/silver-owls-cough.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/stale-brooms-sparkle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tall-planets-call.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/tasty-experts-travel.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/unlucky-coins-accept.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/pretty-reporter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @steiger/pretty-reporter

## 0.2.0

### Minor Changes

- b184bb7: Support warning severity for diagnostics

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/pretty-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "@steiger/pretty-reporter",
"description": "A reporter that can print Steiger's diagnostics nice and pretty",
"version": "0.1.0",
"version": "0.2.0",
"scripts": {
"example": "tsx example/index.ts",
"lint": "eslint .",
Expand Down
13 changes: 13 additions & 0 deletions packages/steiger-plugin-fsd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @feature-sliced/steiger-plugin

## 0.5.0

### Minor Changes

- 1bb6c4b: Add new `no-ui-in-app` rule
- 7057543: Add new `typo-in-layer-name` rule

### Patch Changes

- b0dc51b: Add a Vue test case for insignificant-slice
- 8291fc7: Fix the alias resolution in referenced TS configs
- 9ce48b6: Relax the public API constraints on `shared/lib` and `shared/ui`

## 0.4.0

### Minor Changes
Expand Down
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.4.0",
"version": "0.5.0",
"scripts": {
"lint": "eslint .",
"format": "prettier --write . --cache",
Expand Down
67 changes: 67 additions & 0 deletions packages/steiger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,72 @@
# steiger

## 0.5.0

This release brings a new configuration format! Now you can disable rules only in certain parts of the project, pass options to rules, and set the severity for rules. Also this configuration format allows you to pass third-party plugins and even write your own rules.

Example:

```javascript
// ./steiger.config.js
import { defineConfig } from 'steiger'
import fsd from '@feature-sliced/steiger-plugin' // you need to install separately this now

export default defineConfig([
...fsd.configs.recommended,
{
// disable the `public-api` rule for files in the Shared layer
files: ['./src/shared/**'],
rules: {
'fsd/public-api': 'off', // can also be 'warn'
},
},
])
```

Migrating from the old config is easy, refer to the short [migration guide](../../MIGRATION_GUIDE.md) that we created. It even has an automatic codemod :)

---

This release includes plugin support, and here's how you can write your own! For more inspiration, check out the FSD plugin (`./packages/steiger-plugin-fsd` in this repo).

```ts
import { enableAllRules, createPlugin, createConfigs } from '@steiger/toolkit'

const plugin = createPlugin({
meta: {
name: 'my-awesome-plugin',
version: '1.0.0',
},
ruleDefinitions: [
{
name: 'my/rule-1',
check(root) {
/**/
},
},
],
})

const configs = createConfigs({
recommended: enableAllRules(plugin),
})

export default {
plugin,
configs,
}
```

### Minor Changes

- Support the new configuration format
- 281aaca: Add error messages for old and invalid config shapes
- b184bb7: Support warning severity for diagnostics

### Patch Changes

- c6db720: Fix Steiger linting non-existent paths successfully

## 0.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/steiger/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "steiger",
"description": "Universal file structure and project architecture linter",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"authors": [
{
Expand Down
8 changes: 8 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @steiger/types

## 0.3.0

### Minor Changes

- b184bb7: Support warning severity for diagnostics
- d93c9f6: Implement support for individual rule options
- 3c7a50c, 997abb4: Implement the new configuration format

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@steiger/types",
"private": true,
"description": "Type definitions for Steiger",
"version": "0.2.0",
"version": "0.3.0",
"scripts": {
"format": "prettier --write . --cache",
"check-formatting": "prettier --check . --cache",
Expand Down

0 comments on commit d3340fe

Please sign in to comment.