-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #14061 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
- Loading branch information
Showing
6 changed files
with
138 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
## Docs-specific linter rules | ||
|
||
rules: | ||
object-curly-spacing: [2, always] | ||
object-curly-spacing: [error, always] | ||
|
||
# ease some restrictions in doc examples | ||
no-restricted-properties: 0 | ||
no-undef: 0 | ||
no-unused-vars: 0 | ||
strict: 0 | ||
no-restricted-properties: off | ||
no-undef: off | ||
no-unused-vars: off | ||
strict: off | ||
|
||
# add new ECMAScript features gradually | ||
no-var: 2 | ||
prefer-const: 2 | ||
prefer-rest-params: 2 | ||
no-var: error | ||
prefer-const: error | ||
prefer-rest-params: error | ||
|
||
# use stricter indent over indent-legacy | ||
indent-legacy: 0 | ||
indent: [2, 2, {ArrayExpression: first, | ||
CallExpression: {arguments: first}, | ||
FunctionDeclaration: {parameters: first}, | ||
FunctionExpression: {parameters: first}, | ||
MemberExpression: off, | ||
ObjectExpression: first, | ||
SwitchCase: 1}] | ||
indent-legacy: off | ||
indent: [error, 2, {ArrayExpression: first, | ||
CallExpression: {arguments: first}, | ||
FunctionDeclaration: {parameters: first}, | ||
FunctionExpression: {parameters: first}, | ||
MemberExpression: off, | ||
ObjectExpression: first, | ||
SwitchCase: 1}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
rules: | ||
# Custom rules in tools/eslint-rules | ||
require-buffer: 2 | ||
buffer-constructor: 2 | ||
no-let-in-for-declaration: 2 | ||
require-buffer: error | ||
buffer-constructor: error | ||
no-let-in-for-declaration: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters