max-mapper / standard-format

converts your code into Standard JavaScript Format
264 stars 59 forks source link

Can we ignore jsx xml tag? #177

Closed vzhen closed 7 years ago

vzhen commented 8 years ago

Is there a configure to ignore react native xml tag? To me this is difficult to read

`<View>
   <Text>Hello</Text>
   <Text>Hello</Text>
   <Text>World</Text>
   <Text>World</Text>
   <Text>FOO</Text>
   <Text>FOO</Text>
   <Text>bar</Text>
   <Text>bar</Text>
   <Text>bar</Text>
</View>`

And i want this, especially when in a long <TextInput> form with many attributes

 `<View>
   <Text>Hello</Text>
   <Text>Hello</Text>

   <Text>World</Text>
   <Text>World</Text>

   <Text>FOO</Text>
   <Text>FOO</Text>

   <Text>bar</Text>
   <Text>bar</Text>
   <Text>bar</Text>
 </View>`
feross commented 8 years ago

You should use standard --fix instead of this package. standard-format isn't being actively maintained anymore.