Skip to content

Commit 9049f09

Browse files
sebdeckersjasnell
authored andcommitted
tools: enforce consistent spacing inside braces
PR-URL: #14162 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 4efc6fe commit 9049f09

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ test/addons/??_*/
44
test/fixtures
55
test/tmp*/
66
tools/eslint
7+
tools/icu
78
node_modules
89
benchmark/tmp/
910
doc/**/*.js

.eslintrc.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,17 @@ rules:
141141
}]
142142
no-tabs: error
143143
no-trailing-spaces: error
144+
object-curly-spacing: [error, always]
144145
one-var-declaration-per-line: error
145146
operator-linebreak: [error, after]
146147
quotes: [error, single, avoid-escape]
147148
semi: error
148149
semi-spacing: error
149150
space-before-blocks: [error, always]
150151
space-before-function-paren: [error, {
151-
"anonymous": "never",
152-
"named": "never",
153-
"asyncArrow": "always"
152+
anonymous: never,
153+
named: never,
154+
asyncArrow: always
154155
}]
155156
space-in-parens: [error, never]
156157
space-infix-ops: error

doc/.eslintrc.yaml

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

33
rules:
4-
object-curly-spacing: [error, always]
5-
64
# ease some restrictions in doc examples
75
no-restricted-properties: off
86
no-undef: off

0 commit comments

Comments
 (0)