Skip to content
  • Sponsor facebook/create-react-app

  • Notifications You must be signed in to change notification settings
  • Fork 27k

Commit a0b16df

Browse files
anilreddykattaTimer
authored andcommittedApr 19, 2017
Relax label rules (#1989)
1 parent 0b9c65f commit a0b16df

File tree

1 file changed

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

1 file changed

+2
-2
lines changed
 

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = {
8383
'no-invalid-regexp': 'warn',
8484
'no-iterator': 'warn',
8585
'no-label-var': 'warn',
86-
'no-labels': ['warn', { allowLoop: false, allowSwitch: false }],
86+
'no-labels': ['warn', { allowLoop: true, allowSwitch: false }],
8787
'no-lone-blocks': 'warn',
8888
'no-loop-func': 'warn',
8989
'no-mixed-operators': [
@@ -110,7 +110,7 @@ module.exports = {
110110
'no-octal-escape': 'warn',
111111
'no-redeclare': 'warn',
112112
'no-regex-spaces': 'warn',
113-
'no-restricted-syntax': ['warn', 'LabeledStatement', 'WithStatement'],
113+
'no-restricted-syntax': ['warn', 'WithStatement'],
114114
'no-script-url': 'warn',
115115
'no-self-assign': 'warn',
116116
'no-self-compare': 'warn',

0 commit comments

Comments
 (0)
Please sign in to comment.