skyltmax_config 2.0.0 → 3.0.0
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.
- checksums.yaml +4 -4
- data/.devcontainer/boot.sh +7 -46
- data/.devcontainer/docker-compose.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +5 -5
- data/eslint.js +26 -49
- data/fixture/package.json +1 -1
- data/fixture/pnpm-lock.yaml +386 -312
- data/fixture/src/ui/card.tsx +31 -0
- data/lib/skyltmax_config/version.rb +1 -1
- data/package.json +7 -8
- data/pnpm-lock.yaml +462 -398
- data/prettier-ignored-plugin.js +33 -0
- data/prettier.js +4 -3
- data/reset.d.ts +2 -1
- data/tests/configs.test.js +18 -1
- metadata +3 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type CardProps = {
|
|
2
|
+
labels: string[]
|
|
3
|
+
onDismiss?: () => void
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// Every issue below is deliberate: this file is the fixture's proof that the @eslint-react rule set replacing
|
|
7
|
+
// eslint-plugin-react (4.0.0) still reports what the old plugin reported.
|
|
8
|
+
export function Card({ labels, onDismiss }: CardProps) {
|
|
9
|
+
return (
|
|
10
|
+
<div>
|
|
11
|
+
{/* @eslint-react/no-missing-key — was react/jsx-key */}
|
|
12
|
+
{labels.map(label => (
|
|
13
|
+
<span>{label}</span>
|
|
14
|
+
))}
|
|
15
|
+
|
|
16
|
+
{/* @eslint-react/no-leaked-conditional-rendering — was react/jsx-no-leaked-render; needs type information */}
|
|
17
|
+
{labels.length && <p>has labels</p>}
|
|
18
|
+
|
|
19
|
+
{/* @eslint-react/dom-no-missing-button-type — was react/button-has-type */}
|
|
20
|
+
<button onClick={onDismiss}>Dismiss</button>
|
|
21
|
+
|
|
22
|
+
{/* @eslint-react/dom-no-unsafe-target-blank — was react/jsx-no-target-blank */}
|
|
23
|
+
<a href="https://example.com" target="_blank">
|
|
24
|
+
example
|
|
25
|
+
</a>
|
|
26
|
+
|
|
27
|
+
{/* @eslint-react/dom-no-unknown-property — was react/no-unknown-property */}
|
|
28
|
+
<div class="not-className" />
|
|
29
|
+
</div>
|
|
30
|
+
)
|
|
31
|
+
}
|
data/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signmax/config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=24.0.0"
|
|
46
46
|
},
|
|
47
|
-
"packageManager": "pnpm@11.
|
|
47
|
+
"packageManager": "pnpm@11.22.0",
|
|
48
48
|
"scripts": {
|
|
49
49
|
"format": "prettier . --write",
|
|
50
50
|
"lint": "eslint .",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"bump": "npx npm-check-updates --dep prod,dev,peer,optional --target latest -i"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
+
"@eslint-react/eslint-plugin": "5.18.6",
|
|
57
58
|
"@eslint/js": "10.0.1",
|
|
58
59
|
"@total-typescript/ts-reset": "0.6.1",
|
|
59
60
|
"@vitest/eslint-plugin": "1.6.27",
|
|
@@ -62,13 +63,11 @@
|
|
|
62
63
|
"eslint-plugin-jest-dom": "5.10.1",
|
|
63
64
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
64
65
|
"eslint-plugin-prettier": "5.5.6",
|
|
65
|
-
"eslint-plugin-react": "7.37.5",
|
|
66
66
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
67
67
|
"eslint-plugin-testing-library": "7.16.2",
|
|
68
|
-
"globals": "17.
|
|
69
|
-
"prettier-plugin-ignored": "1.0.0",
|
|
68
|
+
"globals": "17.11.0",
|
|
70
69
|
"prettier-plugin-tailwindcss": "0.8.1",
|
|
71
|
-
"typescript-eslint": "8.
|
|
70
|
+
"typescript-eslint": "8.67.0"
|
|
72
71
|
},
|
|
73
72
|
"peerDependencies": {
|
|
74
73
|
"eslint": "^9.30.0 || ^10.0.0",
|
|
@@ -76,11 +75,11 @@
|
|
|
76
75
|
"typescript": ">=5.9 <6.1"
|
|
77
76
|
},
|
|
78
77
|
"devDependencies": {
|
|
79
|
-
"@types/react": "
|
|
78
|
+
"@types/react": "19.2.18",
|
|
80
79
|
"eslint": "10.8.1",
|
|
81
80
|
"npm-run-all2": "9.0.3",
|
|
82
81
|
"prettier": "3.9.6",
|
|
83
|
-
"react": "
|
|
82
|
+
"react": "19.2.8",
|
|
84
83
|
"typescript": "6.0.3",
|
|
85
84
|
"vitest": "4.1.10"
|
|
86
85
|
},
|