@schoero/configs 1.0.28 → 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
  }
@@ -92,9 +92,7 @@ export const typescript = [
92
92
  "eslint-plugin-typescript/promise-function-async": "warn",
93
93
 
94
94
  // quality
95
- "no-loss-of-precision": "off",
96
95
  "eslint-plugin-typescript/prefer-includes": "warn",
97
- "eslint-plugin-typescript/no-loss-of-precision": "warn",
98
96
 
99
97
  // nullish types
100
98
  "eslint-plugin-typescript/non-nullable-type-assertion-style": "warn",
@@ -126,7 +124,7 @@ export const typescript = [
126
124
  ],
127
125
 
128
126
  // no useless
129
- "eslint-plugin-typescript/no-useless-template-literals": "warn",
127
+ "eslint-plugin-typescript/no-unnecessary-template-expression": "warn",
130
128
 
131
129
  // modern syntax
132
130
  "eslint-plugin-typescript/prefer-string-starts-ends-with": "warn",
@@ -157,6 +155,10 @@ export const typescript = [
157
155
  leadingUnderscore: "allow",
158
156
  selector: "variable"
159
157
  },
158
+ {
159
+ format: ["camelCase"],
160
+ selector: "function"
161
+ },
160
162
  {
161
163
  filter: {
162
164
  match: false,
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.28",
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
  },