mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 09:25:42 +08:00
Relax label rules (#1989)
# Conflicts: # packages/eslint-config-react-app/index.js
This commit is contained in:
@@ -85,7 +85,7 @@ module.exports = {
|
||||
'no-invalid-regexp': 'warn',
|
||||
'no-iterator': 'warn',
|
||||
'no-label-var': 'warn',
|
||||
'no-labels': ['warn', { allowLoop: false, allowSwitch: false }],
|
||||
'no-labels': ['warn', { allowLoop: true, allowSwitch: false }],
|
||||
'no-lone-blocks': 'warn',
|
||||
'no-loop-func': 'warn',
|
||||
'no-mixed-operators': ['warn', {
|
||||
@@ -111,7 +111,6 @@ module.exports = {
|
||||
'no-regex-spaces': 'warn',
|
||||
'no-restricted-syntax': [
|
||||
'warn',
|
||||
'LabeledStatement',
|
||||
'WithStatement',
|
||||
],
|
||||
'no-script-url': 'warn',
|
||||
|
||||
Reference in New Issue
Block a user