Skip to content

Commit ec14739

Browse files
committed
Update no-unused-styles.md
1 parent 4bc779c commit ec14739

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/rules/no-unused-styles.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ When working on a component over a longer period of time, you could end up with
33

44
The following patterns are considered warnings:
55

6-
```
6+
```js
77
const styles = StyleSheet.create({
88
text: {}
99
});
@@ -16,7 +16,7 @@ const Hello = React.createClass({
1616
```
1717

1818
The following patterns are not considered warnings:
19-
```
19+
```js
2020
const styles = StyleSheet.create({
2121
name: {}
2222
});
@@ -29,7 +29,7 @@ const Hello = React.createClass({',
2929
```
3030
The most common case.
3131
32-
```
32+
```js
3333
const styles = StyleSheet.create({
3434
text: {}
3535
});
@@ -44,7 +44,7 @@ const Hello = React.createClass({
4444
```
4545
Style rules referenced in a Style array are marked as used.
4646
47-
```
47+
```js
4848
const styles = StyleSheet.create({
4949
name: {}
5050
});
@@ -57,7 +57,7 @@ const Hello = React.createClass({',
5757
```
5858
Rules are also marked as used when they are used in tags that contain the word `style`.
5959

60-
```
60+
```js
6161
const styles = StyleSheet.create({
6262
name: {},
6363
welcome: {}
@@ -75,7 +75,7 @@ const Welcome = React.createClass({
7575
```
7676
Usage is tracked over multiple components in the same file.
7777

78-
```
78+
```js
7979
const styles = StyleSheet.create({
8080
text: {}
8181
});

0 commit comments

Comments
 (0)