@fabdeh/eslint-config 0.13.0 → 0.13.1
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/dist/index.mjs +9 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1285,10 +1285,16 @@ async function ngrx(options = {}) {
|
|
|
1285
1285
|
...ngrxPlugin.configs.signals.find((c) => c.name === "ngrx/signals")?.rules,
|
|
1286
1286
|
"@typescript-eslint/naming-convention": [
|
|
1287
1287
|
"error",
|
|
1288
|
-
...namingConvention(!useRelaxedNamingConventionForCamelAndPascalCases),
|
|
1288
|
+
...namingConvention(!useRelaxedNamingConventionForCamelAndPascalCases, false),
|
|
1289
1289
|
{
|
|
1290
1290
|
selector: ["objectLiteralProperty", "objectLiteralMethod"],
|
|
1291
|
-
format: ["camelCase"],
|
|
1291
|
+
format: [useRelaxedNamingConventionForCamelAndPascalCases ? "camelCase" : "strictCamelCase"],
|
|
1292
|
+
leadingUnderscore: "allow"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
selector: "parameter",
|
|
1296
|
+
modifiers: ["destructured"],
|
|
1297
|
+
format: [useRelaxedNamingConventionForCamelAndPascalCases ? "camelCase" : "strictCamelCase"],
|
|
1292
1298
|
leadingUnderscore: "allow"
|
|
1293
1299
|
},
|
|
1294
1300
|
{
|
|
@@ -1298,7 +1304,7 @@ async function ngrx(options = {}) {
|
|
|
1298
1304
|
"global",
|
|
1299
1305
|
"exported"
|
|
1300
1306
|
],
|
|
1301
|
-
format: ["PascalCase"],
|
|
1307
|
+
format: [useRelaxedNamingConventionForCamelAndPascalCases ? "PascalCase" : "StrictPascalCase"],
|
|
1302
1308
|
leadingUnderscore: "forbid",
|
|
1303
1309
|
trailingUnderscore: "forbid",
|
|
1304
1310
|
suffix: ["Store"]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabdeh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"description": "My personal eslint config preset",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Fabien Dehopré",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"tsx": "^4.23.12",
|
|
127
127
|
"typescript": "^6.0.3",
|
|
128
128
|
"vitest": "^4.1.10",
|
|
129
|
-
"@fabdeh/eslint-config": "0.13.
|
|
129
|
+
"@fabdeh/eslint-config": "0.13.1"
|
|
130
130
|
},
|
|
131
131
|
"simple-git-hooks": {
|
|
132
132
|
"pre-commit": "pnpm nano-staged",
|