Skip to content

Commit 601f851

Browse files
gov-indilyavolodin
authored andcommitted
Docs: Minor modification to code comments for clarity (#9821)
1 parent b9da067 commit 601f851

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

docs/rules/keyword-spacing.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -59,44 +59,44 @@ if (foo) {
5959
//...
6060
}
6161

62-
// no conflict with `array-bracket-spacing`
62+
// Avoid conflict with `array-bracket-spacing`
6363
let a = [this];
6464
let b = [function() {}];
6565

66-
// no conflict with `arrow-spacing`
66+
// Avoid conflict with `arrow-spacing`
6767
let a = ()=> this.foo;
6868

69-
// no conflict with `block-spacing`
69+
// Avoid conflict with `block-spacing`
7070
{function foo() {}}
7171

72-
// no conflict with `comma-spacing`
72+
// Avoid conflict with `comma-spacing`
7373
let a = [100,this.foo, this.bar];
7474

75-
// not conflict with `computed-property-spacing`
75+
// Avoid conflict with `computed-property-spacing`
7676
obj[this.foo] = 0;
7777

78-
// no conflict with `generator-star-spacing`
78+
// Avoid conflict with `generator-star-spacing`
7979
function *foo() {}
8080

81-
// no conflict with `key-spacing`
81+
// Avoid conflict with `key-spacing`
8282
let obj = {
8383
foo:function() {}
8484
};
8585

86-
// no conflict with `object-curly-spacing`
86+
// Avoid conflict with `object-curly-spacing`
8787
let obj = {foo: this};
8888

89-
// no conflict with `semi-spacing`
89+
// Avoid conflict with `semi-spacing`
9090
let a = this;function foo() {}
9191

92-
// no conflict with `space-in-parens`
92+
// Avoid conflict with `space-in-parens`
9393
(function () {})();
9494

95-
// no conflict with `space-infix-ops`
95+
// Avoid conflict with `space-infix-ops`
9696
if ("foo"in {foo: 0}) {}
9797
if (10+this.foo<= this.bar) {}
9898

99-
// no conflict with `jsx-curly-spacing`
99+
// Avoid conflict with `jsx-curly-spacing`
100100
let a = <A foo={this.foo} bar={function(){}} />
101101
```
102102

@@ -157,57 +157,57 @@ if (foo) {
157157
//...
158158
}
159159

160-
// not conflict with `array-bracket-spacing`
160+
// Avoid conflict with `array-bracket-spacing`
161161
let a = [this];
162162

163-
// not conflict with `arrow-spacing`
163+
// Avoid conflict with `arrow-spacing`
164164
let a = ()=> this.foo;
165165

166-
// not conflict with `comma-spacing`
166+
// Avoid conflict with `comma-spacing`
167167
let a = [100, this.foo, this.bar];
168168

169-
// not conflict with `computed-property-spacing`
169+
// Avoid conflict with `computed-property-spacing`
170170
obj[this.foo] = 0;
171171

172-
// not conflict with `generator-star-spacing`
172+
// Avoid conflict with `generator-star-spacing`
173173
function* foo() {}
174174

175-
// not conflict with `key-spacing`
175+
// Avoid conflict with `key-spacing`
176176
let obj = {
177177
foo:function() {}
178178
};
179179

180-
// not conflict with `func-call-spacing`
180+
// Avoid conflict with `func-call-spacing`
181181
class A {
182182
constructor() {
183183
super();
184184
}
185185
}
186186

187-
// not conflict with `object-curly-spacing`
187+
// Avoid conflict with `object-curly-spacing`
188188
let obj = {foo: this};
189189

190-
// not conflict with `semi-spacing`
190+
// Avoid conflict with `semi-spacing`
191191
let a = this;function foo() {}
192192

193-
// not conflict with `space-before-function-paren`
193+
// Avoid conflict with `space-before-function-paren`
194194
function() {}
195195

196-
// no conflict with `space-infix-ops`
196+
// Avoid conflict with `space-infix-ops`
197197
if ("foo"in{foo: 0}) {}
198198
if (10+this.foo<= this.bar) {}
199199

200-
// no conflict with `space-unary-ops`
200+
// Avoid conflict with `space-unary-ops`
201201
function* foo(a) {
202202
return yield+a;
203203
}
204204

205-
// no conflict with `yield-star-spacing`
205+
// Avoid conflict with `yield-star-spacing`
206206
function* foo(a) {
207207
return yield* a;
208208
}
209209

210-
// no conflict with `jsx-curly-spacing`
210+
// Avoid conflict with `jsx-curly-spacing`
211211
let a = <A foo={this.foo} bar={function(){}} />
212212
```
213213

0 commit comments

Comments
 (0)