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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a68af28ecd1e9dda58a783de87c3dbc06a0fa1403b34be2817aac6ffdb2de86
4
- data.tar.gz: 11be32d291d08234364332bf905ed1b55eb353e45c7cbb1f143ed0f70afbe716
3
+ metadata.gz: 587c1b85ec7f31eec1cb250413ef54bfa9aa2b87e94bff81cc6e0dbb0be8de65
4
+ data.tar.gz: 92548bea2059e3ec42bcab9d60476dc7ed1c332502e666cd9f69ccda523cc494
5
5
  SHA512:
6
- metadata.gz: e5c05084f07091f6d95cafeaf70ff083d6a721bac53d94d99a1a5f2a16ba6fed4748328998d2065b50a7c84862842bc308018e1c9e1ab7b003545619ee84c177
7
- data.tar.gz: 50051ee804a7cf029a5bd78349545781e6ce9423808a0a8e1d0cdd371dc48e479c4261ffbf4ac9f9e414b885ab3e49ed4613a3595896ebcda0829b4124fd2c39
6
+ metadata.gz: 9ce02b487b8a33f0ab5882b768d4867491bef38b5e1f83656253c8962e7d462e66fb0835056956f15e11eb3b4132e8a61a06538ca318be6ab63c5b37fd9eb4c8
7
+ data.tar.gz: 164d363fd871a48746f79e8a925222cb4dde49632a4964503f10436f85144ca67ff10e3d1c61f83eb9766b45f52a6f8f50cb4c0e60e90eaa5b675e0327822654
@@ -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
- # npm credentials are written to the workspace host home by the Coder template (skyltmax-dc)
40
- # and reach us through the host-home bind mount. Only needed for publishing here — every
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
- PNPM_ALREADY_INSTALLED_1="true"
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 [ "${BUNDLE_ALREADY_INSTALLED_2}" != "true" ]; then
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
- CHANGELOG_DISPLAYED_7="true"
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
- BUNDLE_ALREADY_INSTALLED_2=${BUNDLE_ALREADY_INSTALLED_2}\n\
82
- PNPM_ALREADY_INSTALLED_1=${PNPM_ALREADY_INSTALLED_1}\n\
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:rails-4.0.6-30@sha256:f98cbb45b2c21680ccfa22f1aba4f2415bb408fc396f0d2d07e5f42d082f97f9
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 (2.0.0)
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.26.1)
64
+ rubocop-performance (1.27.0)
65
65
  lint_roller (~> 1.1)
66
- rubocop (>= 1.75.0, < 2.0)
66
+ rubocop (>= 1.89.0, < 2.0)
67
67
  rubocop-ast (>= 1.47.1, < 2.0)
68
- rubocop-rails (2.36.0)
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.75.0, < 2.0)
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
- settings: {
84
- react: {
85
- version: reactVersion,
86
- },
87
- formComponents: ["Form"],
88
- linkComponents: [
89
- {
90
- name: "Link",
91
- linkAttribute: "to",
92
- },
93
- {
94
- name: "NavLink",
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
- ...(await import("eslint-plugin-react")).default.configs.flat.recommended.rules,
101
- ...(await import("eslint-plugin-react")).default.configs.flat["jsx-runtime"].rules,
102
- "react/jsx-key": WARN,
103
- "react/prop-types": OFF,
104
- "react/button-has-type": ERROR,
105
- "react/jsx-boolean-value": WARN,
106
- "react-hooks/exhaustive-deps": ERROR,
107
-
108
- "react/jsx-no-leaked-render": [
109
- WARN,
110
- {
111
- validStrategies: ["ternary"],
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
 
data/fixture/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "engines": {
8
8
  "node": ">=24.0.0"
9
9
  },
10
- "packageManager": "pnpm@11.21.0",
10
+ "packageManager": "pnpm@11.22.0",
11
11
  "scripts": {
12
12
  "format": "prettier . --check",
13
13
  "lint": "eslint src --max-warnings=0",