Skip to content

Commit

Permalink
enable no-negated-condition and no-else-return rules (#2931)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina authored Dec 2, 2022
1 parent c44ea4f commit f7addb2
Show file tree
Hide file tree
Showing 28 changed files with 607 additions and 498 deletions.
12 changes: 12 additions & 0 deletions .changeset/chilled-mayflies-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'cm6-graphql': patch
'codemirror-graphql': patch
'@graphiql/react': patch
'@graphiql/toolkit': patch
'graphql-language-service': patch
'graphql-language-service-server': patch
'monaco-graphql': patch
'vscode-graphql-execution': patch
---

enable `no-negated-condition` and `no-else-return` rules
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = {
'no-caller': 1,
'no-case-declarations': 0,
'no-div-regex': 1,
'no-else-return': 0,
'no-else-return': ['error', { allowElseIf: false }],
'no-empty-function': 0,
'no-eq-null': 0,
'no-eval': 1,
Expand Down Expand Up @@ -189,7 +189,7 @@ module.exports = {
'no-inline-comments': 0,
'no-lonely-if': 0,
'no-mixed-operators': 0,
'no-negated-condition': 0,
'no-negated-condition': 'error',
'no-nested-ternary': 0,
'no-new-object': 1,
'no-plusplus': 0,
Expand Down
Loading

0 comments on commit f7addb2

Please sign in to comment.