@haltcase/style 7.0.0-canary.10 → 7.0.0-canary.12

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.
@@ -36,7 +36,6 @@ export const getEslintReactConfigInternal = (_options = {}) =>
36
36
  {
37
37
  name: "@haltcase/react/jsx-eslint/react",
38
38
  plugins: {
39
- // @ts-expect-error see https://github.com/jsx-eslint/eslint-plugin-react/pull/3840
40
39
  react: eslintPluginReactOriginal
41
40
  },
42
41
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haltcase/style",
3
- "version": "7.0.0-canary.10",
3
+ "version": "7.0.0-canary.12",
4
4
  "description": "haltcase's web ecosystem style guide & configurations",
5
5
  "keywords": [
6
6
  "eslint",
@@ -58,57 +58,57 @@
58
58
  "extends": "./stylelint/index.js"
59
59
  },
60
60
  "dependencies": {
61
- "@babel/core": "^7.26.0",
62
- "@babel/eslint-parser": "^7.25.9",
61
+ "@babel/core": "^7.26.9",
62
+ "@babel/eslint-parser": "^7.26.8",
63
63
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
64
- "@eslint-react/eslint-plugin": "^1.17.1",
65
- "@next/eslint-plugin-next": "^15.0.3",
66
- "@stylistic/eslint-plugin-jsx": "^2.11.0",
67
- "eslint-config-prettier": "^9.1.0",
64
+ "@eslint-react/eslint-plugin": "^1.26.2",
65
+ "@next/eslint-plugin-next": "^15.1.7",
66
+ "@stylistic/eslint-plugin-jsx": "^3.1.0",
67
+ "eslint-config-prettier": "^10.0.1",
68
68
  "eslint-import-resolver-alias": "^1.1.2",
69
- "eslint-import-resolver-typescript": "^3.6.3",
70
- "eslint-plugin-import-x": "^4.4.3",
69
+ "eslint-import-resolver-typescript": "^3.8.0",
70
+ "eslint-plugin-import-x": "^4.6.1",
71
71
  "eslint-plugin-jsx-a11y": "^6.10.2",
72
- "eslint-plugin-playwright": "^2.1.0",
73
- "eslint-plugin-react": "^7.37.2",
74
- "eslint-plugin-react-hooks": "^5.0.0",
72
+ "eslint-plugin-playwright": "^2.2.0",
73
+ "eslint-plugin-react": "^7.37.4",
74
+ "eslint-plugin-react-hooks": "^5.1.0",
75
75
  "eslint-plugin-regexp": "^2.7.0",
76
76
  "eslint-plugin-simple-import-sort": "^12.1.1",
77
- "eslint-plugin-testing-library": "^6.5.0",
77
+ "eslint-plugin-testing-library": "^7.1.1",
78
78
  "eslint-plugin-tsdoc": "^0.4.0",
79
79
  "eslint-plugin-unicorn": "^56.0.1",
80
- "postcss-html": "^1.7.0",
81
- "prettier-plugin-packagejson": "^2.5.6",
82
- "prettier-plugin-tailwindcss": "^0.6.9",
83
- "stylelint-config-clean-order": "^6.1.0",
80
+ "postcss-html": "^1.8.0",
81
+ "prettier-plugin-packagejson": "^2.5.8",
82
+ "prettier-plugin-tailwindcss": "^0.6.11",
83
+ "stylelint-config-clean-order": "^7.0.0",
84
84
  "stylelint-config-html": "^1.1.0",
85
- "stylelint-config-standard": "^36.0.1",
86
- "stylelint-define-config": "^1.7.0",
87
- "typescript-eslint": "^8.16.0"
85
+ "stylelint-config-standard": "^37.0.0",
86
+ "stylelint-define-config": "^16.14.1",
87
+ "typescript-eslint": "^8.24.0"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@actions/core": "^1.11.1",
91
91
  "@actions/exec": "^1.1.1",
92
92
  "@actions/github": "^6.0.0",
93
- "@commitlint/cli": "^19.6.0",
94
- "@commitlint/config-conventional": "^19.6.0",
93
+ "@commitlint/cli": "^19.7.1",
94
+ "@commitlint/config-conventional": "^19.7.1",
95
95
  "@eslint/eslintrc": "^3.2.0",
96
- "@eslint/js": "^9.15.0",
97
- "@octokit/types": "^13.6.2",
96
+ "@eslint/js": "^9.20.0",
97
+ "@octokit/types": "^13.8.0",
98
98
  "@semantic-release/git": "^10.0.1",
99
99
  "@types/eslint-config-prettier": "^6.11.3",
100
100
  "@types/eslint__js": "^8.42.3",
101
101
  "@types/node": "22",
102
- "@typescript-eslint/types": "^8.16.0",
103
- "eslint": "^9.15.0",
102
+ "@typescript-eslint/types": "^8.24.0",
103
+ "eslint": "^9.20.1",
104
104
  "eslint-define-config": "^2.1.0",
105
- "globals": "^15.12.0",
105
+ "globals": "^15.15.0",
106
106
  "husky": "^9.1.7",
107
- "lint-staged": "^15.2.10",
108
- "prettier": "^3.4.1",
109
- "semantic-release": "^24.2.0",
110
- "stylelint": "^16.10.0",
111
- "typescript": "^5.7.2"
107
+ "lint-staged": "^15.4.3",
108
+ "prettier": "^3.5.1",
109
+ "semantic-release": "^24.2.3",
110
+ "stylelint": "^16.14.1",
111
+ "typescript": "^5.7.3"
112
112
  },
113
113
  "peerDependencies": {
114
114
  "eslint": ">=9",
@@ -130,9 +130,10 @@
130
130
  "optional": true
131
131
  }
132
132
  },
133
- "packageManager": "pnpm@9.10.0+sha256.355a8ab8dbb6ad41befbef39bc4fd6b5df85e12761d2724bd01f13e878de4b13",
133
+ "packageManager": "pnpm@10.4.1",
134
134
  "engines": {
135
- "node": ">=20"
135
+ "node": ">=20",
136
+ "pnpm": ">=10"
136
137
  },
137
138
  "publishConfig": {
138
139
  "access": "public"
package/prettier/index.js CHANGED
@@ -1,10 +1,14 @@
1
1
  /* eslint-disable import-x/no-default-export */
2
2
 
3
+ import { fileURLToPath } from "node:url";
4
+
3
5
  /**
4
6
  * Some of Prettier's defaults can be overridden by an EditorConfig file. We
5
7
  * define those here to ensure that doesn't happen.
6
8
  *
7
9
  * See: https://prettier.io/docs/en/configuration#editorconfig
10
+ *
11
+ * @type {import("prettier").Options}
8
12
  */
9
13
  const overridableDefaults = {
10
14
  endOfLine: "lf",
@@ -13,10 +17,23 @@ const overridableDefaults = {
13
17
  useTabs: true
14
18
  };
15
19
 
20
+ /**
21
+ * @param {string} specifier - The plugin's package name.
22
+ */
23
+ const resolvePlugin = (specifier) =>
24
+ fileURLToPath(import.meta.resolve(specifier));
25
+
26
+ /**
27
+ * @type {import("prettier").Options}
28
+ */
16
29
  export default {
17
30
  ...overridableDefaults,
18
31
  singleQuote: false,
19
32
  trailingComma: "none",
20
- plugins: ["prettier-plugin-packagejson", "prettier-plugin-tailwindcss"],
21
- tailwindAttributes: ["classNames", "clsx", "cx", "twMerge"]
33
+ plugins: [
34
+ resolvePlugin("prettier-plugin-packagejson"),
35
+ resolvePlugin("prettier-plugin-tailwindcss")
36
+ ],
37
+ tailwindAttributes: ["classNames"],
38
+ tailwindFunctions: ["clsx", "cn", "cx", "twMerge"]
22
39
  };