Skip to content

Commit f7addb2

Browse files
authored
enable no-negated-condition and no-else-return rules (#2931)
1 parent c44ea4f commit f7addb2

28 files changed

Lines changed: 607 additions & 498 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'cm6-graphql': patch
3+
'codemirror-graphql': patch
4+
'@graphiql/react': patch
5+
'@graphiql/toolkit': patch
6+
'graphql-language-service': patch
7+
'graphql-language-service-server': patch
8+
'monaco-graphql': patch
9+
'vscode-graphql-execution': patch
10+
---
11+
12+
enable `no-negated-condition` and `no-else-return` rules

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = {
7777
'no-caller': 1,
7878
'no-case-declarations': 0,
7979
'no-div-regex': 1,
80-
'no-else-return': 0,
80+
'no-else-return': ['error', { allowElseIf: false }],
8181
'no-empty-function': 0,
8282
'no-eq-null': 0,
8383
'no-eval': 1,
@@ -189,7 +189,7 @@ module.exports = {
189189
'no-inline-comments': 0,
190190
'no-lonely-if': 0,
191191
'no-mixed-operators': 0,
192-
'no-negated-condition': 0,
192+
'no-negated-condition': 'error',
193193
'no-nested-ternary': 0,
194194
'no-new-object': 1,
195195
'no-plusplus': 0,

0 commit comments

Comments
 (0)