@rebeccastevens/eslint-config 3.3.1 → 3.3.2

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 CHANGED
@@ -3211,7 +3211,7 @@ async function typescript(options) {
3211
3211
  },
3212
3212
  {
3213
3213
  selector: "variable",
3214
- filter: { regex: "_[^_]+", match: true },
3214
+ filter: { regex: "^[mM]ut_[^_]+", match: true },
3215
3215
  format: ["camelCase", "PascalCase"],
3216
3216
  modifiers: ["const"],
3217
3217
  prefix: ["mut_", "Mut_"],
@@ -3239,20 +3239,12 @@ async function typescript(options) {
3239
3239
  },
3240
3240
  {
3241
3241
  selector: ["autoAccessor", "parameterProperty", "property"],
3242
+ filter: { regex: "^[mM]ut_[^_]+", match: true },
3242
3243
  format: ["camelCase", "PascalCase"],
3243
3244
  prefix: ["mut_", "Mut_"],
3244
3245
  leadingUnderscore: "forbid",
3245
3246
  trailingUnderscore: "forbid",
3246
3247
  },
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
3248
  {
3257
3249
  selector: ["autoAccessor", "parameterProperty", "property"],
3258
3250
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
package/dist/index.mjs CHANGED
@@ -3189,7 +3189,7 @@ async function typescript(options) {
3189
3189
  },
3190
3190
  {
3191
3191
  selector: "variable",
3192
- filter: { regex: "_[^_]+", match: true },
3192
+ filter: { regex: "^[mM]ut_[^_]+", match: true },
3193
3193
  format: ["camelCase", "PascalCase"],
3194
3194
  modifiers: ["const"],
3195
3195
  prefix: ["mut_", "Mut_"],
@@ -3217,20 +3217,12 @@ async function typescript(options) {
3217
3217
  },
3218
3218
  {
3219
3219
  selector: ["autoAccessor", "parameterProperty", "property"],
3220
+ filter: { regex: "^[mM]ut_[^_]+", match: true },
3220
3221
  format: ["camelCase", "PascalCase"],
3221
3222
  prefix: ["mut_", "Mut_"],
3222
3223
  leadingUnderscore: "forbid",
3223
3224
  trailingUnderscore: "forbid",
3224
3225
  },
3225
- {
3226
- selector: ["autoAccessor", "parameterProperty", "property"],
3227
- filter: { regex: "_[^_]+", match: true },
3228
- format: ["camelCase", "PascalCase"],
3229
- modifiers: ["readonly"],
3230
- prefix: ["mut_", "Mut_"],
3231
- leadingUnderscore: "forbid",
3232
- trailingUnderscore: "forbid",
3233
- },
3234
3226
  {
3235
3227
  selector: ["autoAccessor", "parameterProperty", "property"],
3236
3228
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"