@rebeccastevens/eslint-config 1.3.14 → 1.3.17

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/CHANGELOG.md CHANGED
@@ -1,6 +1,27 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file. Dates are displayed in UTC.
3
3
 
4
+ ## [1.3.17](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.16...v1.3.17) (2022-04-05)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * tweak naming-convention" ([ab792d2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/ab792d2b3a40b22723bb2384cae4692e100bf754))
10
+
11
+ ## [1.3.16](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.15...v1.3.16) (2022-04-04)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * tweak naming-convention" ([092ae10](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/092ae102744c68657832367634daa679fa2f36b9))
17
+
18
+ ## [1.3.15](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.14...v1.3.15) (2022-04-04)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * tweak naming-convention ([3fa91b2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/3fa91b2f8aa49f2bbf24b916dad0fafe63f20551))
24
+
4
25
  ## [1.3.14](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.13...v1.3.14) (2022-04-04)
5
26
 
6
27
 
@@ -68,49 +68,47 @@ const settings = {
68
68
  {
69
69
  selector: "default",
70
70
  format: ["camelCase", "PascalCase"],
71
- leadingUnderscore: "allow",
72
- trailingUnderscore: "forbid",
73
71
  },
74
72
  {
75
73
  selector: "variableLike",
76
74
  format: ["camelCase", "PascalCase"],
77
- leadingUnderscore: "allow",
78
- trailingUnderscore: "forbid",
79
75
  },
80
76
  {
81
77
  selector: "variable",
82
78
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
83
- leadingUnderscore: "forbid",
84
- trailingUnderscore: "forbid",
85
79
  prefix: ["m_", "M_"],
86
80
  },
87
81
  {
88
82
  selector: "variable",
89
83
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
90
- leadingUnderscore: "forbid",
91
- trailingUnderscore: "forbid",
92
84
  modifiers: ["const"],
93
85
  },
86
+ {
87
+ selector: "variable",
88
+ format: null,
89
+ modifiers: ["destructured"],
90
+ },
94
91
  {
95
92
  selector: "memberLike",
96
93
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
97
94
  prefix: ["m_", "M_"],
98
95
  },
99
96
  {
100
- selector: ["classMethod", "typeMethod"],
97
+ selector: "memberLike",
98
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
99
+ modifiers: ["readonly"],
100
+ },
101
+ {
102
+ selector: ["classMethod", "typeMethod", "typeProperty"],
101
103
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
102
104
  },
103
105
  {
104
106
  selector: "enumMember",
105
107
  format: ["UPPER_CASE"],
106
- leadingUnderscore: "forbid",
107
- trailingUnderscore: "forbid",
108
108
  },
109
109
  {
110
110
  selector: "typeLike",
111
111
  format: ["PascalCase"],
112
- leadingUnderscore: "forbid",
113
- trailingUnderscore: "forbid",
114
112
  },
115
113
  {
116
114
  selector: ["objectLiteralProperty", "objectLiteralMethod"],
@@ -66,49 +66,47 @@ const settings = {
66
66
  {
67
67
  selector: "default",
68
68
  format: ["camelCase", "PascalCase"],
69
- leadingUnderscore: "allow",
70
- trailingUnderscore: "forbid",
71
69
  },
72
70
  {
73
71
  selector: "variableLike",
74
72
  format: ["camelCase", "PascalCase"],
75
- leadingUnderscore: "allow",
76
- trailingUnderscore: "forbid",
77
73
  },
78
74
  {
79
75
  selector: "variable",
80
76
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
81
- leadingUnderscore: "forbid",
82
- trailingUnderscore: "forbid",
83
77
  prefix: ["m_", "M_"],
84
78
  },
85
79
  {
86
80
  selector: "variable",
87
81
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
88
- leadingUnderscore: "forbid",
89
- trailingUnderscore: "forbid",
90
82
  modifiers: ["const"],
91
83
  },
84
+ {
85
+ selector: "variable",
86
+ format: null,
87
+ modifiers: ["destructured"],
88
+ },
92
89
  {
93
90
  selector: "memberLike",
94
91
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
95
92
  prefix: ["m_", "M_"],
96
93
  },
97
94
  {
98
- selector: ["classMethod", "typeMethod"],
95
+ selector: "memberLike",
96
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
97
+ modifiers: ["readonly"],
98
+ },
99
+ {
100
+ selector: ["classMethod", "typeMethod", "typeProperty"],
99
101
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
100
102
  },
101
103
  {
102
104
  selector: "enumMember",
103
105
  format: ["UPPER_CASE"],
104
- leadingUnderscore: "forbid",
105
- trailingUnderscore: "forbid",
106
106
  },
107
107
  {
108
108
  selector: "typeLike",
109
109
  format: ["PascalCase"],
110
- leadingUnderscore: "forbid",
111
- trailingUnderscore: "forbid",
112
110
  },
113
111
  {
114
112
  selector: ["objectLiteralProperty", "objectLiteralMethod"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.3.14",
3
+ "version": "1.3.17",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"