prettier/tests/flow/declare_export
Christopher Chedeau 8bc3c617a0 Preserve next line with trailing comment (#535)
It turns that our hasNextLine logic needs to be tuned to skip all the trailing comments. The code is not pretty but it does the job. It looks like it fixes a bunch of things in the test cases :)

I made sure that nested inline comments are NOT valid JavaScript

```js
/* /* a */ */
Uncaught SyntaxError: Unexpected token *
```

so it is okay to do a dumb search for */ when you are in a comment
2017-01-31 11:27:44 -05:00
..
__snapshots__ Preserve next line with trailing comment (#535) 2017-01-31 11:27:44 -05:00
B.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
C.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
CommonJS_Clobbering_Class.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
CommonJS_Clobbering_Lit.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
CommonJS_Named.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_DefaultAndNamed.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Default_AnonFunction1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Default_AnonFunction2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Default_NamedClass1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Default_NamedClass2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Default_NamedFunction1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Default_NamedFunction2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportAllFromMulti.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportAllFrom_Intermediary1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportAllFrom_Intermediary2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportAllFrom_Source1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportAllFrom_Source2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportFrom_Intermediary1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportFrom_Intermediary2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportFrom_Source1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_ExportFrom_Source2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Named1.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ES6_Named2.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ProvidesModuleA.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ProvidesModuleCJSDefault.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ProvidesModuleD.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
ProvidesModuleES6Default.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
SideEffects.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
es6modules.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
jsfmt.spec.js Move tests around (#454) 2017-01-24 14:35:37 -08:00