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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 587c1b85ec7f31eec1cb250413ef54bfa9aa2b87e94bff81cc6e0dbb0be8de65
|
|
4
|
+
data.tar.gz: 92548bea2059e3ec42bcab9d60476dc7ed1c332502e666cd9f69ccda523cc494
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ce02b487b8a33f0ab5882b768d4867491bef38b5e1f83656253c8962e7d462e66fb0835056956f15e11eb3b4132e8a61a06538ca318be6ab63c5b37fd9eb4c8
|
|
7
|
+
data.tar.gz: 164d363fd871a48746f79e8a925222cb4dde49632a4964503f10436f85144ca67ff10e3d1c61f83eb9766b45f52a6f8f50cb4c0e60e90eaa5b675e0327822654
|
data/.devcontainer/boot.sh
CHANGED
|
@@ -2,54 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
set -eo pipefail
|
|
4
4
|
|
|
5
|
-
function bootcmd() {
|
|
6
|
-
printf "\n"
|
|
7
|
-
toilet -f term -t -F border:metal "$1"
|
|
8
|
-
printf "+ $2\n"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
5
|
MARKER_FILE=".devcontainer/.bootdone"
|
|
12
6
|
|
|
13
7
|
if [ -f "${MARKER_FILE}" ]; then
|
|
14
8
|
source "${MARKER_FILE}"
|
|
15
9
|
fi
|
|
16
10
|
|
|
17
|
-
# Per-user shared volume (skyltmax-dc template), reachable at the same path as on the host.
|
|
18
|
-
if [ -d "/home/$HOSTLOGNAME/shared" ]; then
|
|
19
|
-
ln -sfn "/home/$HOSTLOGNAME/shared" /home/vscode/shared
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
if [ -d "/home/$HOSTLOGNAME/.config" ]; then
|
|
23
|
-
sudo chown -R vscode:vscode /home/$HOSTLOGNAME/.config
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
# Commit signing config written by the Coder template on the workspace host (home.sh in
|
|
27
|
-
# skyltmax/infra); the key path inside it resolves in-container through the host-home bind.
|
|
28
|
-
# Inert when absent — git skips missing [include] paths (the dotfiles .gitconfig carries the include).
|
|
29
|
-
if [ -f "/home/$HOSTLOGNAME/.config/git/coder-signing" ]; then
|
|
30
|
-
mkdir -p /home/vscode/.config/git
|
|
31
|
-
cp "/home/$HOSTLOGNAME/.config/git/coder-signing" /home/vscode/.config/git/coder-signing
|
|
32
|
-
fi
|
|
33
|
-
|
|
34
11
|
sudo chown -R vscode:vscode .ruby-lsp
|
|
35
12
|
sudo chown -R vscode:vscode /usr/local/bundle
|
|
36
13
|
|
|
37
14
|
git config --global --add safe.directory $DEVC_WORKSPACE
|
|
38
15
|
|
|
39
|
-
#
|
|
40
|
-
|
|
41
|
-
# dependency resolves from the public registry.
|
|
42
|
-
if [ -f "/home/$HOSTLOGNAME/.npmrc" ]; then
|
|
43
|
-
cp "/home/$HOSTLOGNAME/.npmrc" "${DEVC_WORKSPACE}/.npmrc"
|
|
44
|
-
fi
|
|
45
|
-
|
|
46
|
-
# Both halves of this repo get set up: the gem and the @signmax/config package.
|
|
47
|
-
if [ "${PNPM_ALREADY_INSTALLED_1}" != "true" ]; then
|
|
16
|
+
# node_modules outlives the image, so modules built against the previous major have to go.
|
|
17
|
+
if [ "${PNPM_ALREADY_RESET_1}" != "true" ]; then
|
|
48
18
|
rm -rf $DEVC_WORKSPACE/node_modules
|
|
49
|
-
bootcmd "Installing NPM packages" "pnpm install"
|
|
50
|
-
pnpm install
|
|
51
19
|
|
|
52
|
-
|
|
20
|
+
PNPM_ALREADY_RESET_1="true"
|
|
53
21
|
fi
|
|
54
22
|
|
|
55
23
|
# The bundle volume outlives the image, so gems built against the previous Ruby have to go.
|
|
@@ -60,27 +28,20 @@ if [ "${GEMS_ALREADY_RESET_1}" != "true" ]; then
|
|
|
60
28
|
GEMS_ALREADY_RESET_1="true"
|
|
61
29
|
fi
|
|
62
30
|
|
|
63
|
-
if [ "${
|
|
64
|
-
bootcmd "Installing gems" "bundle install"
|
|
65
|
-
bundle install
|
|
66
|
-
BUNDLE_ALREADY_INSTALLED_2="true"
|
|
67
|
-
fi
|
|
68
|
-
|
|
69
|
-
if [ "${CHANGELOG_DISPLAYED_7}" != "true" ]; then
|
|
31
|
+
if [ "${CHANGELOG_DISPLAYED_35}" != "true" ]; then
|
|
70
32
|
if [ -f "/var/lib/smdevc/changelog" ]; then
|
|
71
33
|
printf "\n"
|
|
72
34
|
toilet -f term -t -F border:metal "Latest Changes"
|
|
73
35
|
cat /var/lib/smdevc/changelog
|
|
74
36
|
fi
|
|
75
37
|
|
|
76
|
-
|
|
38
|
+
CHANGELOG_DISPLAYED_35="true"
|
|
77
39
|
fi
|
|
78
40
|
|
|
79
41
|
echo -e "\
|
|
80
42
|
GEMS_ALREADY_RESET_1=${GEMS_ALREADY_RESET_1}\n\
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
CHANGELOG_DISPLAYED_7=${CHANGELOG_DISPLAYED_7}" > "${MARKER_FILE}"
|
|
43
|
+
PNPM_ALREADY_RESET_1=${PNPM_ALREADY_RESET_1}\n\
|
|
44
|
+
CHANGELOG_DISPLAYED_35=${CHANGELOG_DISPLAYED_35}" > "${MARKER_FILE}"
|
|
84
45
|
|
|
85
46
|
printf "\n\n\e[38;2;252;163;17m"
|
|
86
47
|
toilet -f standard "Config"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
services:
|
|
2
2
|
app:
|
|
3
|
-
image: harbor.signmax.cloud/public/devcontainer:
|
|
3
|
+
image: harbor.signmax.cloud/public/devcontainer:35@sha256:c2c72d7655656ce2f6eae44047526f0fb8774115aab4d2907f78e28000c69611
|
|
4
4
|
volumes:
|
|
5
5
|
- ..:/workspaces/config:cached
|
|
6
6
|
shm_size: "1gb"
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
+
### [3.0.0] - 2026-08-17
|
|
6
|
+
- feat!: React 19
|
|
7
|
+
- feat!: Replace `eslint-plugin-react`with `@eslint-react/eslint-plugin`.
|
|
8
|
+
- chore: Vendor the `ignored` prettier parser as `prettier-ignored-plugin.js` and drop the `prettier-plugin-ignored`
|
|
9
|
+
dependency.
|
|
10
|
+
|
|
5
11
|
### [2.0.0] - 2026-08-12
|
|
6
12
|
|
|
7
13
|
- feat!: Support eslint 10 (`peerDependencies` widened to `^9.30.0 || ^10.0.0`); the pinned eslint plugins are all
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
skyltmax_config (
|
|
4
|
+
skyltmax_config (3.0.0)
|
|
5
5
|
rubocop (>= 1.84.2, < 2)
|
|
6
6
|
rubocop-performance (>= 1.26.0, < 2)
|
|
7
7
|
rubocop-rails (>= 2.33.0, < 3)
|
|
@@ -61,15 +61,15 @@ GEM
|
|
|
61
61
|
rubocop-ast (1.50.0)
|
|
62
62
|
parser (>= 3.3.7.2)
|
|
63
63
|
prism (~> 1.7)
|
|
64
|
-
rubocop-performance (1.
|
|
64
|
+
rubocop-performance (1.27.0)
|
|
65
65
|
lint_roller (~> 1.1)
|
|
66
|
-
rubocop (>= 1.
|
|
66
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
67
67
|
rubocop-ast (>= 1.47.1, < 2.0)
|
|
68
|
-
rubocop-rails (2.
|
|
68
|
+
rubocop-rails (2.37.0)
|
|
69
69
|
activesupport (>= 4.2.0)
|
|
70
70
|
lint_roller (~> 1.1)
|
|
71
71
|
rack (>= 1.1)
|
|
72
|
-
rubocop (>= 1.
|
|
72
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
73
73
|
rubocop-ast (>= 1.44.0, < 2.0)
|
|
74
74
|
ruby-progressbar (1.13.0)
|
|
75
75
|
securerandom (0.4.1)
|
data/eslint.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { createRequire } from "node:module"
|
|
2
|
-
import path from "node:path"
|
|
3
|
-
|
|
4
1
|
import globals from "globals"
|
|
5
2
|
|
|
6
3
|
const ERROR = "error"
|
|
@@ -11,19 +8,6 @@ const vitestFiles = ["**/__tests__/**/*", "**/*.test.*", "**/*.spec.*"]
|
|
|
11
8
|
const testFiles = ["**/tests/**", "**/#tests/**", ...vitestFiles]
|
|
12
9
|
const playwrightFiles = ["**/e2e/**"]
|
|
13
10
|
|
|
14
|
-
// eslint-plugin-react's own `version: "detect"` crashes on eslint 10: detection calls the context.getFilename() that
|
|
15
|
-
// eslint 10 removed (jsx-eslint/eslint-plugin-react#4018, fix unreleased as of 7.37.5). Resolve the version here and
|
|
16
|
-
// pass it explicitly instead. Anchored on the linted project's cwd, not this package, so a consumer's own React is
|
|
17
|
-
// what gets detected; falls back to the newest line when React isn't installed at all.
|
|
18
|
-
const reactVersion = (() => {
|
|
19
|
-
try {
|
|
20
|
-
const requireFromProject = createRequire(path.join(process.cwd(), "package.json"))
|
|
21
|
-
return requireFromProject("react/package.json").version
|
|
22
|
-
} catch {
|
|
23
|
-
return "19.0"
|
|
24
|
-
}
|
|
25
|
-
})()
|
|
26
|
-
|
|
27
11
|
/** @type {import("eslint").Linter.Config[]} */
|
|
28
12
|
export const config = [
|
|
29
13
|
{
|
|
@@ -71,46 +55,39 @@ export const config = [
|
|
|
71
55
|
// JSX/TSX files
|
|
72
56
|
{
|
|
73
57
|
files: ["**/*.tsx", "**/*.jsx"],
|
|
74
|
-
plugins: {
|
|
75
|
-
react: (await import("eslint-plugin-react")).default,
|
|
76
|
-
},
|
|
77
58
|
languageOptions: {
|
|
78
59
|
parser: (await import("typescript-eslint")).parser,
|
|
79
60
|
parserOptions: {
|
|
80
61
|
jsx: true,
|
|
81
62
|
},
|
|
82
63
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
linkAttribute: "to",
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
},
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
{
|
|
67
|
+
files: ["**/*.ts?(x)"],
|
|
68
|
+
...(await import("@eslint-react/eslint-plugin")).default.configs["recommended-type-checked"],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
files: ["**/*.jsx"],
|
|
72
|
+
...(await import("@eslint-react/eslint-plugin")).default.configs.recommended,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
files: ["**/*.ts?(x)", "**/*.jsx"],
|
|
99
76
|
rules: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"react/
|
|
103
|
-
"react/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"react
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
77
|
+
// eslint-plugin-react-hooks — React's own plugin, still actively released — stays the authority on these two.
|
|
78
|
+
// @eslint-react ships its own copies in `recommended`, and both enabled means the same line reported twice.
|
|
79
|
+
"@eslint-react/rules-of-hooks": OFF,
|
|
80
|
+
"@eslint-react/exhaustive-deps": OFF,
|
|
81
|
+
|
|
82
|
+
// Severities carried over from the eslint-plugin-react config these replace, where both were warnings.
|
|
83
|
+
"@eslint-react/no-missing-key": WARN, // was react/jsx-key
|
|
84
|
+
"@eslint-react/no-leaked-conditional-rendering": WARN, // was react/jsx-no-leaked-render
|
|
85
|
+
|
|
86
|
+
// Rules we relied on that @eslint-react keeps out of `recommended`. The old names are recorded because
|
|
87
|
+
// consumers have to rename them in their own `eslint-disable` comments.
|
|
88
|
+
"@eslint-react/dom-no-missing-button-type": ERROR, // was react/button-has-type
|
|
89
|
+
"@eslint-react/dom-no-unknown-property": ERROR, // was react/no-unknown-property
|
|
90
|
+
"@eslint-react/dom-no-unsafe-target-blank": ERROR, // was react/jsx-no-target-blank
|
|
114
91
|
},
|
|
115
92
|
},
|
|
116
93
|
|