Unify eslint brace-style/curly rules
R=dpapad@chromium.org TBR=amistry@chromium.org BUG=916782 Change-Id: I65f0a0182f6fc6f41b9b578fa5e366422781cccd Reviewed-on: https://chromium-review.googlesource.com/c/1396844 Reviewed-by: Dan Beam <dbeam@chromium.org> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#620659}
This commit is contained in:
@ -13,6 +13,8 @@ module.exports = {
|
||||
},
|
||||
'rules': {
|
||||
// Enabled checks.
|
||||
'brace-style': ['error', '1tbs'],
|
||||
'curly': ['error', 'multi-line', 'consistent'],
|
||||
'no-extra-semi': 'error',
|
||||
'no-new-wrappers': 'error',
|
||||
'no-restricted-properties': [
|
||||
|
@ -4,8 +4,6 @@
|
||||
|
||||
module.exports = {
|
||||
'rules': {
|
||||
'brace-style': ['error', '1tbs'],
|
||||
'curly': ['error', 'multi-line', 'consistent'],
|
||||
'no-var': 'error',
|
||||
'prefer-const': 'error',
|
||||
},
|
||||
|
@ -5,8 +5,6 @@
|
||||
module.exports = {
|
||||
'env': {'browser': true, 'es6': true},
|
||||
'rules': {
|
||||
'brace-style': ['error', '1tbs'],
|
||||
'curly': ['error', 'multi-line', 'consistent'],
|
||||
'no-restricted-properties': 'off',
|
||||
},
|
||||
};
|
||||
|
@ -1,10 +0,0 @@
|
||||
// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
module.exports = {
|
||||
'rules': {
|
||||
'brace-style': ['error', '1tbs'],
|
||||
'curly': ['error', 'multi-line', 'consistent'],
|
||||
}
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
module.exports = {
|
||||
'rules': {
|
||||
'brace-style': ['error', '1tbs'],
|
||||
'curly': ['error', 'multi-line', 'consistent'],
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user