Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Thumbs.db
.fleet/
.intelligence/
INTELLIGENCE.md
.claude/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
package-lock.json
*.md
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 100,
"arrowParens": "avoid",
"trailingComma": "es5"
}
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/version-2026.36.6-000000?style=for-the-badge" alt="Version 2026.36.6" />
<img src="https://img.shields.io/badge/version-2026.38.0-000000?style=for-the-badge" alt="Version 2026.38.0" />
<img src="https://img.shields.io/badge/React-17%2B-000000?style=for-the-badge&logo=react&logoColor=white" alt="React 17 or later" />
<img src="https://img.shields.io/badge/dependencies-none-000000?style=for-the-badge" alt="No dependencies" />
</p>
Expand Down Expand Up @@ -91,23 +91,32 @@ the stack checklist's rail probe reads the bar by, alongside the version, year
and colour behaviour the component promises. It names every case it ran and
exits non-zero on a failure.

It is run by hand against a checkout that has `react` and `react-dom`
installed:
```bash
npm install
npm test
```

`react` and `react-dom` are development dependencies, so the render has
something to render with. Neither reaches a consuming site: that takes React
from its own tree, through the peer dependency.

Formatting and lint run over the whole tree:

```bash
npm install --no-save react react-dom
node test/render.mjs
npm run format:check
npm run lint
```

The package declares no `test` script, and CI installs the package and stops
there.
CI runs all three on every pull request, and `check` is the required context on
both branches.

## Project structure

```
split-rail/
├── src/index.js The component, its stylesheet, and the two links it carries
├── test/render.mjs The markup assertions a change has to keep passing
├── eslint.config.js The lint rules; .prettierrc holds the formatting ones
├── .github/workflows/ CI (the required `check` context) and the attribution gate
└── package.json Exports src/index.js directly; React is a peer dependency
```
Expand Down
23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from '@eslint/js'

export default [
{
ignores: ['node_modules/'],
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2023,
sourceType: 'module',
},
},
{
files: ['test/**/*.mjs'],
languageOptions: {
globals: {
console: 'readonly',
process: 'readonly',
},
},
},
]
Loading
Loading