Skip to content

Commit fa8c5f4

Browse files
Trottaddaleax
authored andcommitted
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 b41ae98 commit fa8c5f4

File tree

6 files changed

+7
-67
lines changed

6 files changed

+7
-67
lines changed

.eslintrc.yaml

+7-12
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

-13
This file was deleted.

doc/.eslintrc.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,3 @@ rules:
1313
no-var: error
1414
prefer-const: error
1515
prefer-rest-params: error
16-
17-
# use stricter indent over indent-legacy
18-
indent-legacy: off
19-
indent: [error, 2, {ArrayExpression: first,
20-
CallExpression: {arguments: first},
21-
FunctionDeclaration: {parameters: first},
22-
FunctionExpression: {parameters: first},
23-
MemberExpression: off,
24-
ObjectExpression: first,
25-
SwitchCase: 1}]

lib/.eslintrc.yaml

-9
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

-10
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

-13
This file was deleted.

0 commit comments

Comments
 (0)