@schoero/configs 1.0.29 → 1.0.30

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.
package/eslint/jsx.js CHANGED
@@ -57,7 +57,7 @@ export const jsx = [
57
57
  }
58
58
  },
59
59
  {
60
- files: ["**/*.{tsx}"],
60
+ files: ["**/*.{tsx,ctsx,mtsx}"],
61
61
  plugins: {
62
62
  "eslint-plugin-typescript": eslintPluginTypeScript.plugin,
63
63
  "eslint-plugin-stylistic-plus": eslintPluginStylisticPlus
@@ -77,10 +77,14 @@ export const jsx = [
77
77
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
78
78
  leadingUnderscore: "allow",
79
79
  selector: "variable"
80
+ },
81
+ {
82
+ format: ["camelCase", "PascalCase"],
83
+ selector: "function"
80
84
  }
81
85
  ],
82
86
 
83
- // Spacings
87
+ // spacings
84
88
  "eslint-plugin-stylistic-plus/type-generic-spacing": "warn",
85
89
  "eslint-plugin-stylistic-plus/type-named-tuple-spacing": "warn"
86
90
  }
@@ -155,6 +155,10 @@ export const typescript = [
155
155
  leadingUnderscore: "allow",
156
156
  selector: "variable"
157
157
  },
158
+ {
159
+ format: ["camelCase"],
160
+ selector: "function"
161
+ },
158
162
  {
159
163
  filter: {
160
164
  match: false,
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.29",
2
+ "version": "1.0.30",
3
3
  "type": "module",
4
4
  "name": "@schoero/configs",
5
5
  "description": "",
@@ -39,6 +39,7 @@
39
39
  "unwritten"
40
40
  ],
41
41
  "peerDependencies": {
42
+ "@stylistic/eslint-plugin-jsx": "^2.6.2",
42
43
  "changelogen": "^0.5.5",
43
44
  "cspell": "^8.13.0",
44
45
  "eslint": "^9.8.0",
@@ -48,6 +49,9 @@
48
49
  "vitest": "^2.0.5"
49
50
  },
50
51
  "peerDependenciesMeta": {
52
+ "@stylistic/eslint-plugin-jsx": {
53
+ "optional": true
54
+ },
51
55
  "changelogen": {
52
56
  "optional": true
53
57
  },