Skip to content

Commit e9b67f7

Browse files
committed
tools: remove legacy indentation linting
All linting now uses the current ESLint 4.3.0 indentation linting. Remove legacy indentation rules. PR-URL: #14515 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Claudio Rodriguez <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Timothy Gu <[email protected]>
1 parent 2791761 commit e9b67f7

File tree

6 files changed

+7
-67
lines changed

6 files changed

+7
-67
lines changed

.eslintrc.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,13 @@ rules:
101101
func-call-spacing: error
102102
func-name-matching: error
103103
func-style: [error, declaration, {allowArrowFunctions: true}]
104-
# indent: [error, 2, {ArrayExpression: first,
105-
# CallExpression: {arguments: first},
106-
# FunctionDeclaration: {parameters: first},
107-
# FunctionExpression: {parameters: first},
108-
# MemberExpression: off,
109-
# ObjectExpression: first,
110-
# SwitchCase: 1}]
111-
indent-legacy: [error, 2, {ArrayExpression: first,
112-
CallExpression: {arguments: first},
113-
MemberExpression: 1,
114-
ObjectExpression: first,
115-
SwitchCase: 1}]
104+
indent: [error, 2, {ArrayExpression: first,
105+
CallExpression: {arguments: first},
106+
FunctionDeclaration: {parameters: first},
107+
FunctionExpression: {parameters: first},
108+
MemberExpression: off,
109+
ObjectExpression: first,
110+
SwitchCase: 1}]
116111
key-spacing: [error, {mode: minimum}]
117112
keyword-spacing: error
118113
linebreak-style: [error, unix]

benchmark/.eslintrc.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

doc/.eslintrc.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,3 @@ rules:
1111
no-var: error
1212
prefer-const: error
1313
prefer-rest-params: error
14-
15-
# use stricter indent over indent-legacy
16-
indent-legacy: off
17-
indent: [error, 2, {ArrayExpression: first,
18-
CallExpression: {arguments: first},
19-
FunctionDeclaration: {parameters: first},
20-
FunctionExpression: {parameters: first},
21-
MemberExpression: off,
22-
ObjectExpression: first,
23-
SwitchCase: 1}]

lib/.eslintrc.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
rules:
2-
indent: [error, 2, {ArrayExpression: first,
3-
CallExpression: {arguments: first},
4-
FunctionDeclaration: {parameters: first},
5-
FunctionExpression: {parameters: first},
6-
MemberExpression: off,
7-
ObjectExpression: first,
8-
SwitchCase: 1}]
9-
indent-legacy: off
10-
112
# Custom rules in tools/eslint-rules
123
require-buffer: error
134
buffer-constructor: error

test/.eslintrc.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
## Test-specific linter rules
22

33
rules:
4-
# Stylistic Issues
5-
# http://eslint.org/docs/rules/#stylistic-issues
6-
indent: [error, 2, {ArrayExpression: first,
7-
CallExpression: {arguments: first},
8-
FunctionDeclaration: {parameters: first},
9-
FunctionExpression: {parameters: first},
10-
MemberExpression: off,
11-
ObjectExpression: first,
12-
SwitchCase: 1}]
13-
indent-legacy: off
144
# ECMAScript 6
155
# http://eslint.org/docs/rules/#ecmascript-6
166
no-var: error

tools/.eslintrc.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)