Skip to content

Commit

Permalink
Use objectLiteralProperty instead of group selector
Browse files Browse the repository at this point in the history
  • Loading branch information
SinesioMM authored and leroykorterink committed Dec 8, 2023
1 parent 04e1828 commit 2b7889c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config-typescript-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
trailingUnderscore: 'forbid',
},
{
selector: 'property',
selector: 'objectLiteralProperty',
format: [],
filter: {
regex: '^--',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
trailingUnderscore: 'forbid',
},
{
selector: 'property',
selector: 'objectLiteralProperty',
format: [],
filter: {
regex: '^--',
Expand Down
4 changes: 2 additions & 2 deletions packages/test-eslint-config-typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function functionWithParameter(value: MyInterface): string {
function twoDashProperty(): boolean {
const myObject = {
'--my-property': true,
}
};

return myObject['--my-property'];
}
}

0 comments on commit 2b7889c

Please sign in to comment.