@rebeccastevens/eslint-config 3.3.1 → 3.3.3
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.cjs +6 -13
- package/dist/index.d.cts +202 -166
- package/dist/index.d.mts +202 -166
- package/dist/index.mjs +6 -13
- package/package.json +25 -25
package/dist/index.cjs
CHANGED
|
@@ -807,7 +807,7 @@ async function functional(options) {
|
|
|
807
807
|
"functional/no-throw-statements": "error",
|
|
808
808
|
"functional/no-try-statements": "error",
|
|
809
809
|
"functional/no-let": "error",
|
|
810
|
-
"functional/no-
|
|
810
|
+
"functional/no-class-inheritance": "error",
|
|
811
811
|
"functional/no-this-expressions": "error",
|
|
812
812
|
"functional/no-loop-statements": "error",
|
|
813
813
|
"functional/immutable-data": "error",
|
|
@@ -1341,7 +1341,6 @@ function javascript(options) {
|
|
|
1341
1341
|
"grouped-accessor-pairs": "error",
|
|
1342
1342
|
"guard-for-in": "error",
|
|
1343
1343
|
"logical-assignment-operators": "error",
|
|
1344
|
-
"max-classes-per-file": ["error", 1],
|
|
1345
1344
|
"max-depth": ["error", 10],
|
|
1346
1345
|
"new-cap": [
|
|
1347
1346
|
"error",
|
|
@@ -1610,7 +1609,9 @@ function javascript(options) {
|
|
|
1610
1609
|
"vars-on-top": "error",
|
|
1611
1610
|
yoda: ["error", "never"],
|
|
1612
1611
|
...(functionalEnforcement === "none"
|
|
1613
|
-
? {
|
|
1612
|
+
? {
|
|
1613
|
+
"max-classes-per-file": ["error", 1],
|
|
1614
|
+
}
|
|
1614
1615
|
: {
|
|
1615
1616
|
"no-param-reassign": [
|
|
1616
1617
|
"error",
|
|
@@ -3211,7 +3212,7 @@ async function typescript(options) {
|
|
|
3211
3212
|
},
|
|
3212
3213
|
{
|
|
3213
3214
|
selector: "variable",
|
|
3214
|
-
filter: { regex: "
|
|
3215
|
+
filter: { regex: "^[mM]ut_[^_]+", match: true },
|
|
3215
3216
|
format: ["camelCase", "PascalCase"],
|
|
3216
3217
|
modifiers: ["const"],
|
|
3217
3218
|
prefix: ["mut_", "Mut_"],
|
|
@@ -3239,20 +3240,12 @@ async function typescript(options) {
|
|
|
3239
3240
|
},
|
|
3240
3241
|
{
|
|
3241
3242
|
selector: ["autoAccessor", "parameterProperty", "property"],
|
|
3243
|
+
filter: { regex: "^[mM]ut_[^_]+", match: true },
|
|
3242
3244
|
format: ["camelCase", "PascalCase"],
|
|
3243
3245
|
prefix: ["mut_", "Mut_"],
|
|
3244
3246
|
leadingUnderscore: "forbid",
|
|
3245
3247
|
trailingUnderscore: "forbid",
|
|
3246
3248
|
},
|
|
3247
|
-
{
|
|
3248
|
-
selector: ["autoAccessor", "parameterProperty", "property"],
|
|
3249
|
-
filter: { regex: "_[^_]+", match: true },
|
|
3250
|
-
format: ["camelCase", "PascalCase"],
|
|
3251
|
-
modifiers: ["readonly"],
|
|
3252
|
-
prefix: ["mut_", "Mut_"],
|
|
3253
|
-
leadingUnderscore: "forbid",
|
|
3254
|
-
trailingUnderscore: "forbid",
|
|
3255
|
-
},
|
|
3256
3249
|
{
|
|
3257
3250
|
selector: ["autoAccessor", "parameterProperty", "property"],
|
|
3258
3251
|
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|