eslint-config-gristow 2.0.8 → 2.0.10
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 +4 -2
- package/test.ts +7 -0
package/package.json
CHANGED
package/rules/shared-rules.cjs
CHANGED
|
@@ -141,9 +141,11 @@ module.exports = {
|
|
|
141
141
|
// often require these.
|
|
142
142
|
{
|
|
143
143
|
selector: 'objectLiteralProperty',
|
|
144
|
-
|
|
145
|
-
regex: '[a-zA-Z]+(_[a-zA-Z\\d]+)
|
|
144
|
+
filter: {
|
|
145
|
+
regex: '^[a-zA-Z]+(_[a-zA-Z\\d]+)*$',
|
|
146
|
+
match: true,
|
|
146
147
|
},
|
|
148
|
+
format: null,
|
|
147
149
|
},
|
|
148
150
|
// Make sure types and interfaces are in PascalCase. (Also applies
|
|
149
151
|
// to classes.)
|
package/test.ts
CHANGED
|
@@ -4,6 +4,13 @@ import { greet, snake_case_import } from './test-ts-export';
|
|
|
4
4
|
greetJS('Johnny', 'Appleseed');
|
|
5
5
|
greet('Jenny', 'Applesseed');
|
|
6
6
|
|
|
7
|
+
const a = {
|
|
8
|
+
this_pRop_is_ok: 3,
|
|
9
|
+
_this_prop_is_not: 4,
|
|
10
|
+
neither__is_this_one: 5,
|
|
11
|
+
};
|
|
12
|
+
console.log(a);
|
|
13
|
+
|
|
7
14
|
export function completeName(fullName);
|
|
8
15
|
export function completeName(firstName, lastName?) {
|
|
9
16
|
// Should show error, unused variable...
|