@rebeccastevens/eslint-config 1.3.12 → 1.3.15

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,28 @@
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.15](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.14...v1.3.15) (2022-04-04)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * tweak naming-convention ([3fa91b2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/3fa91b2f8aa49f2bbf24b916dad0fafe63f20551))
10
+
11
+ ## [1.3.14](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.13...v1.3.14) (2022-04-04)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * fix dash character ([5b8a1c7](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/5b8a1c7f8954863825ead368ba5d5045d585f923))
17
+ * tweak naming-convention ([1df2ea5](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/1df2ea5f5fd68b84a9de4976e5a3b87e5e606227))
18
+
19
+ ## [1.3.13](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.12...v1.3.13) (2022-04-04)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * tweak naming-convention ([136b90a](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/136b90a05ff64bb3462a03bc4085a627fa874caa))
25
+
4
26
  ## [1.3.12](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.11...v1.3.12) (2022-04-02)
5
27
 
6
28
 
@@ -61,57 +61,66 @@ const settings = {
61
61
  accessibility: "explicit",
62
62
  },
63
63
  ],
64
- "@typescript-eslint/explicitmoduleboundarytypes": "off",
64
+ "@typescript-eslint/explicit-module-boundary-types": "off",
65
65
  "@typescript-eslint/indent": ["error", 2],
66
66
  "@typescript-eslint/naming-convention": [
67
67
  "error",
68
68
  {
69
+ selector: "default",
69
70
  format: ["camelCase", "PascalCase"],
70
71
  leadingUnderscore: "allow",
71
- selector: "default",
72
72
  trailingUnderscore: "forbid",
73
73
  },
74
74
  {
75
+ selector: "variableLike",
76
+ format: ["camelCase", "PascalCase"],
77
+ leadingUnderscore: "allow",
78
+ trailingUnderscore: "forbid",
79
+ },
80
+ {
81
+ selector: "variable",
75
82
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
76
83
  leadingUnderscore: "forbid",
77
- selector: "variable",
78
84
  trailingUnderscore: "forbid",
79
- prefix: ["m_"],
85
+ prefix: ["m_", "M_"],
80
86
  },
81
87
  {
88
+ selector: "variable",
82
89
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
83
90
  leadingUnderscore: "forbid",
84
- selector: "variable",
85
91
  trailingUnderscore: "forbid",
86
92
  modifiers: ["const"],
87
93
  },
88
94
  {
89
- format: ["camelCase", "PascalCase"],
90
- leadingUnderscore: "allow",
91
- selector: "variableLike",
92
- trailingUnderscore: "forbid",
95
+ selector: "variable",
96
+ format: null,
97
+ modifiers: ["destructured"],
93
98
  },
94
99
  {
95
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
96
100
  selector: "memberLike",
101
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
102
+ prefix: ["m_", "M_"],
97
103
  },
98
104
  {
105
+ selector: ["classMethod", "typeMethod"],
99
106
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
100
- selector: "memberLike",
101
- prefix: ["m_"],
102
107
  },
103
108
  {
109
+ selector: "enumMember",
104
110
  format: ["UPPER_CASE"],
105
111
  leadingUnderscore: "forbid",
106
- selector: "enumMember",
107
112
  trailingUnderscore: "forbid",
108
113
  },
109
114
  {
115
+ selector: "typeLike",
110
116
  format: ["PascalCase"],
111
117
  leadingUnderscore: "forbid",
112
- selector: "typeLike",
113
118
  trailingUnderscore: "forbid",
114
119
  },
120
+ {
121
+ selector: ["objectLiteralProperty", "objectLiteralMethod"],
122
+ format: null,
123
+ },
115
124
  ],
116
125
  "@typescript-eslint/no-confusing-void-expression": [
117
126
  "error",
@@ -59,57 +59,66 @@ const settings = {
59
59
  accessibility: "explicit",
60
60
  },
61
61
  ],
62
- "@typescript-eslint/explicitmoduleboundarytypes": "off",
62
+ "@typescript-eslint/explicit-module-boundary-types": "off",
63
63
  "@typescript-eslint/indent": ["error", 2],
64
64
  "@typescript-eslint/naming-convention": [
65
65
  "error",
66
66
  {
67
+ selector: "default",
67
68
  format: ["camelCase", "PascalCase"],
68
69
  leadingUnderscore: "allow",
69
- selector: "default",
70
70
  trailingUnderscore: "forbid",
71
71
  },
72
72
  {
73
+ selector: "variableLike",
74
+ format: ["camelCase", "PascalCase"],
75
+ leadingUnderscore: "allow",
76
+ trailingUnderscore: "forbid",
77
+ },
78
+ {
79
+ selector: "variable",
73
80
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
74
81
  leadingUnderscore: "forbid",
75
- selector: "variable",
76
82
  trailingUnderscore: "forbid",
77
- prefix: ["m_"],
83
+ prefix: ["m_", "M_"],
78
84
  },
79
85
  {
86
+ selector: "variable",
80
87
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
81
88
  leadingUnderscore: "forbid",
82
- selector: "variable",
83
89
  trailingUnderscore: "forbid",
84
90
  modifiers: ["const"],
85
91
  },
86
92
  {
87
- format: ["camelCase", "PascalCase"],
88
- leadingUnderscore: "allow",
89
- selector: "variableLike",
90
- trailingUnderscore: "forbid",
93
+ selector: "variable",
94
+ format: null,
95
+ modifiers: ["destructured"],
91
96
  },
92
97
  {
93
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
94
98
  selector: "memberLike",
99
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
100
+ prefix: ["m_", "M_"],
95
101
  },
96
102
  {
103
+ selector: ["classMethod", "typeMethod"],
97
104
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
98
- selector: "memberLike",
99
- prefix: ["m_"],
100
105
  },
101
106
  {
107
+ selector: "enumMember",
102
108
  format: ["UPPER_CASE"],
103
109
  leadingUnderscore: "forbid",
104
- selector: "enumMember",
105
110
  trailingUnderscore: "forbid",
106
111
  },
107
112
  {
113
+ selector: "typeLike",
108
114
  format: ["PascalCase"],
109
115
  leadingUnderscore: "forbid",
110
- selector: "typeLike",
111
116
  trailingUnderscore: "forbid",
112
117
  },
118
+ {
119
+ selector: ["objectLiteralProperty", "objectLiteralMethod"],
120
+ format: null,
121
+ },
113
122
  ],
114
123
  "@typescript-eslint/no-confusing-void-expression": [
115
124
  "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.3.12",
3
+ "version": "1.3.15",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"