Skip to content

Commit

Permalink
expose an existing graphql-eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-zhang-at-salesforce committed May 14, 2024
1 parent 3438ec9 commit a8844e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"root": true,
"extends": ["eslint:recommended", "plugin:@salesforce/lwc-mobile/recommended"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@salesforce/lwc-mobile/recommended"
],

"env": {
"jest": true,
Expand Down
3 changes: 2 additions & 1 deletion src/configs/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export = {
},
rules: {
'@salesforce/lwc-mobile/enforce-foo-bar': 'warn',
'@salesforce/lwc-mobile/no-more-than-2-fields': 'warn'
'@salesforce/lwc-mobile/no-more-than-2-fields': 'warn',
'@graphql-eslint/no-duplicate-fields': 'error'
}
}
]
Expand Down

0 comments on commit a8844e6

Please sign in to comment.