Skip to content

Commit 4e647b3

Browse files
authored
Allow . in literal property names for use with facets (#2456)
- Fixes #2132 ## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [-] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [-] I have not broken the cheatsheet
1 parent 35b1af8 commit 4e647b3

31 files changed

+12
-62
lines changed

.eslintrc.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@
2626
"assertionStyle": "as"
2727
}
2828
],
29-
"@typescript-eslint/naming-convention": "warn",
29+
"@typescript-eslint/naming-convention": [
30+
"error",
31+
{
32+
"selector": ["objectLiteralProperty"],
33+
"format": ["camelCase"],
34+
"filter": {
35+
"regex": "[.]",
36+
"match": false
37+
}
38+
}
39+
],
3040
"@typescript-eslint/no-explicit-any": "off",
3141
"@typescript-eslint/no-inferrable-types": "off",
3242
"@typescript-eslint/no-non-null-assertion": "off",
@@ -68,7 +78,7 @@
6878
"files": ["*.tsx"],
6979
"rules": {
7080
"@typescript-eslint/naming-convention": [
71-
"warn",
81+
"error",
7282
{
7383
"selector": ["function"],
7484
"format": ["PascalCase", "camelCase"]

packages/common/src/scopeSupportFacets/c.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

packages/common/src/scopeSupportFacets/clojure.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

packages/common/src/scopeSupportFacets/cpp.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import { cScopeSupport } from "./c";
42
import {
53
LanguageScopeSupportFacetMap,

packages/common/src/scopeSupportFacets/csharp.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

packages/common/src/scopeSupportFacets/css.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

packages/common/src/scopeSupportFacets/go.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

packages/common/src/scopeSupportFacets/html.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

packages/common/src/scopeSupportFacets/java.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

packages/common/src/scopeSupportFacets/javascript.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
import {
42
LanguageScopeSupportFacetMap,
53
ScopeSupportFacetLevel,

0 commit comments

Comments
 (0)