@nera-static/stan 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.1] - 2026-11-27
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- README: a section on moving an existing repo to nera-stan (the editor export replaces `eslint.config.js`, one `--fix` sweep followed by a second run, exceptions, the sweep as a commit of its own). First release through CI with npm trusted publishing.
|
|
13
|
+
|
|
8
14
|
## [1.0.0] - 2026-11-27
|
|
9
15
|
|
|
10
16
|
### Added
|
package/README.md
CHANGED
|
@@ -37,6 +37,14 @@ Then point the repo's `lint` script at it:
|
|
|
37
37
|
|
|
38
38
|
`npm run lint` now checks the whole repo. The fleet's husky hooks run it before every commit (`pre-commit`: `npm run lint`) and the tests before every push (`pre-push`: `npx vitest run`). `test.yml` and `publish.yml` run `npm run lint`, so CI refuses what fails.
|
|
39
39
|
|
|
40
|
+
### Moving an existing repo to nera-stan
|
|
41
|
+
|
|
42
|
+
1. Install it and point `lint` at it, as above.
|
|
43
|
+
2. Replace the repo's `eslint.config.js` with the editor export (see [Editor integration](#editor-integration)) and remove the ESLint packages from its own `devDependencies`: nera-stan brings them.
|
|
44
|
+
3. Run `npx nera-stan --fix` once, then run `npx nera-stan` again. A fix can create a new finding: re-indenting a block can push a line past `max-len`.
|
|
45
|
+
4. Fix what is left by hand. Generated or vendored files that are not Nera code go into `nera-stan.ignores` (see [Ignored paths](#ignored-paths)); a single deliberate line gets an `eslint-disable-next-line <rule> -- <reason>` comment.
|
|
46
|
+
5. Run the tests, then commit the sweep on its own, so the formatting changes stay apart from real ones.
|
|
47
|
+
|
|
40
48
|
## 🧩 Usage
|
|
41
49
|
|
|
42
50
|
```bash
|