Commit fb6718a
authored
Use Prettier to lint/format instead of Rubocop (#178)
I use CoC in Vim to integrate with language servers similar to VSCode,
but I've never gotten Solargraph, which incorporates Rubocop, to work.
On the other hand, Prettier has been a pleasant experience to use, and I
love how I've never had to write a single configuration file.
To fix this, this commit:
* replaces Rubocop with Prettier;
* reformats all files to match Prettier's format;
* adds a new step to the GitHub workflow to ensure that all files pass
the lint step; and
* adds an optional Git hook so that before you push, all files will
linted
Note that in order to get started with this project, you'll need to have
Node installed. I recommend using `asdf` which can manage not only Node
but also Ruby as well. Then you'll want to run `yarn install`. I've
included this in the Contributing doc as well as in the setup script.1 parent da2bcac commit fb6718a
File tree
216 files changed
+19206
-16852
lines changed- .github/workflows
- .yarn/releases
- bin
- config
- docs
- gemfiles
- lib
- super_diff
- active_record
- differs
- object_inspection
- inspection_tree_builders
- operation_tree_builders
- active_support
- differs
- object_inspection
- inspection_tree_builders
- operation_tree_builders
- csi
- diff_formatters
- differs
- equality_matchers
- object_inspection
- inspection_tree_builders
- nodes
- operation_tree_builders
- operation_tree_flatteners
- operation_trees
- operations
- rspec
- differs
- matcher_text_builders
- object_inspection
- inspection_tree_builders
- operation_tree_builders
- spec
- integration
- rails
- rspec
- support
- integration
- matchers
- test_programs
- models
- active_record
- unit
- matchers
- unit
- active_record
- equality_matchers
- operation_tree_flatteners
- rspec
- matchers
- support
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
216 files changed
+19206
-16852
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
16 | 34 | | |
| 35 | + | |
| 36 | + | |
17 | 37 | | |
18 | 38 | | |
19 | 39 | | |
| |||
42 | 62 | | |
43 | 63 | | |
44 | 64 | | |
45 | | - | |
46 | 65 | | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
52 | 71 | | |
| 72 | + | |
| 73 | + | |
53 | 74 | | |
54 | 75 | | |
55 | 76 | | |
56 | 77 | | |
57 | 78 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
61 | 82 | | |
62 | 83 | | |
63 | 84 | | |
| |||
82 | 103 | | |
83 | 104 | | |
84 | 105 | | |
85 | | - | |
86 | 106 | | |
87 | 107 | | |
88 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments