Skip to content

Commit 89a3edd

Browse files
authored
Add checks script for running all validations (#855)
1 parent 56ef8a4 commit 89a3edd

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

examples/StyledExample.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import { SplitPane, Pane } from '../src';
33
import type { DividerProps } from '../src/types';
44

55
function CustomDivider(props: DividerProps) {
6-
const { direction, isDragging, disabled, onMouseDown, onTouchStart, onTouchEnd, onKeyDown } = props;
6+
const {
7+
direction,
8+
isDragging,
9+
disabled,
10+
onMouseDown,
11+
onTouchStart,
12+
onTouchEnd,
13+
onKeyDown,
14+
} = props;
715

816
return (
917
<div

examples/main.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ import { SnapPointsExample } from './SnapPointsExample';
88
import { PercentageExample } from './PercentageExample';
99
import './styles.css';
1010

11-
type Example = 'basic' | 'nested' | 'controlled' | 'styled' | 'snap' | 'percent';
11+
type Example =
12+
| 'basic'
13+
| 'nested'
14+
| 'controlled'
15+
| 'styled'
16+
| 'snap'
17+
| 'percent';
1218

1319
const examples: { id: Example; label: string; shortLabel: string }[] = [
1420
{ id: 'basic', label: 'Basic', shortLabel: 'Basic' },

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"format": "prettier --write src examples",
4141
"format:check": "prettier --check src examples",
4242
"typecheck": "tsc --noEmit",
43+
"checks": "npm run typecheck && npm run lint && npm run format && npm run test",
4344
"examples": "vite --config examples/vite.config.ts",
4445
"examples:build": "vite build --config examples/vite.config.ts",
4546
"prepublishOnly": "npm run test && npm run build"

0 commit comments

Comments
 (0)