eslint-config-gristow 2.0.7 → 2.0.9
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/package.json +1 -1
- package/rules/shared-rules.cjs +5 -1
package/package.json
CHANGED
package/rules/shared-rules.cjs
CHANGED
|
@@ -79,6 +79,7 @@ module.exports = {
|
|
|
79
79
|
'tsdoc/syntax': 'off',
|
|
80
80
|
// Conflicts w/ prettier:
|
|
81
81
|
'object-curly-newline': 'off',
|
|
82
|
+
curly: ['error', 'all'],
|
|
82
83
|
'operator-linebreak': 'off',
|
|
83
84
|
'implicit-arrow-linebreak': 'off',
|
|
84
85
|
'function-paren-newline': 'off',
|
|
@@ -140,7 +141,10 @@ module.exports = {
|
|
|
140
141
|
// often require these.
|
|
141
142
|
{
|
|
142
143
|
selector: 'objectLiteralProperty',
|
|
143
|
-
|
|
144
|
+
custom: {
|
|
145
|
+
regex: '[a-zA-Z]+(_[a-zA-Z\\d]+)*',
|
|
146
|
+
},
|
|
147
|
+
format: ['camelCase', 'strictCamelCase', 'PascalCase', 'snake_case', 'UPPER_CASE'],
|
|
144
148
|
},
|
|
145
149
|
// Make sure types and interfaces are in PascalCase. (Also applies
|
|
146
150
|
// to classes.)
|