Skip to content

Commit a0c37ca

Browse files
committed
Relax label rules (#1989)
# Conflicts: # packages/eslint-config-react-app/index.js
1 parent 47659a6 commit a0c37ca

File tree

1 file changed

+1
-2
lines changed
  • packages/eslint-config-react-app

1 file changed

+1
-2
lines changed

packages/eslint-config-react-app/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = {
8585
'no-invalid-regexp': 'warn',
8686
'no-iterator': 'warn',
8787
'no-label-var': 'warn',
88-
'no-labels': ['warn', { allowLoop: false, allowSwitch: false }],
88+
'no-labels': ['warn', { allowLoop: true, allowSwitch: false }],
8989
'no-lone-blocks': 'warn',
9090
'no-loop-func': 'warn',
9191
'no-mixed-operators': ['warn', {
@@ -111,7 +111,6 @@ module.exports = {
111111
'no-regex-spaces': 'warn',
112112
'no-restricted-syntax': [
113113
'warn',
114-
'LabeledStatement',
115114
'WithStatement',
116115
],
117116
'no-script-url': 'warn',

0 commit comments

Comments
 (0)