Skip to content

Commit

Permalink
fix:lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmorizon committed Jan 17, 2025
1 parent c044d94 commit 971a910
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/injected/syntax-compatibility.eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ module.exports = {
browser: true
},
rules: {
// 'operator-assignment': ['error', 'never'],
'no-restricted-syntax': [
'error',
{
selector: "LogicalExpression[operator='||=']",
selector: "AssignmentExpression[operator='||=']",
message: 'Logical OR assignment (||=) is not allowed.',
},
{
selector: "LogicalExpression[operator='&&=']",
selector: "AssignmentExpression[operator='&&=']",
message: 'Logical AND assignment (&&=) is not allowed.',
},
{
selector: "LogicalExpression[operator='??=']",
selector: "AssignmentExpression[operator='??=']",
message: 'Nullish coalescing assignment (??=) is not allowed.',
},
{
Expand Down

0 comments on commit 971a910

Please sign in to comment.