Commit aca2dac
authored
[WIP] genericPrint - PragmaDirective (#4)
* print PragmaDirective
* moar prettier features
* fix readme
* moar prettier ?!?
* even moar prettier ?!?
* add ContractDefinition
* travis-ci (#6)
* add config file
* fix test script
* print PragmaDirective
* moar prettier features
* fix readme
* moar prettier ?!?
* even moar prettier ?!?
* add ContractDefinition
* Add tests (#5)
* Install Jest and add a test
* Enable Prettier on the codebase
* Remove unused variables and inline CI check
* Always use the `filepath` option
* Remove location data from the AST when comparing with the printed AST
* Run the linter in CI
* Remove excess `hardline`s; use `literalline`s in the `default` case
* Break `pragma` declarations when they go past the `printWidth`
* Add the test case in the PR’s body
* add eslint comments
* skip npm run lint (wip)
* re add npm run lint1 parent 6fb2988 commit aca2dac
19 files changed
Lines changed: 5468 additions & 1150 deletions
File tree
- src
- tests_config
- tests
- contract
- __snapshots__
- pragma
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
5 | 15 | | |
6 | 16 | | |
7 | 17 | | |
8 | | - | |
| 18 | + | |
9 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments