Skip to content

Commit 72a68d7

Browse files
Copilotjonrohan
andauthored
Rename .erb-linters folder to .erb_linters (#3521)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Jon Rohan <[email protected]> Co-authored-by: jonrohan <[email protected]>
1 parent 7a68b01 commit 72a68d7

File tree

12 files changed

+15
-10
lines changed

12 files changed

+15
-10
lines changed

.changeset/happy-garlics-train.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": patch
3+
---
4+
5+
Rename .erb-linters folder to .erb_linters
File renamed without changes.
File renamed without changes.
File renamed without changes.

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"label": "erblint: autofix erblint errors",
128128
"type": "shell",
129129
"group": "build",
130-
"command": "bundle exec erblint -a app/components",
130+
"command": "bundle exec erb_lint -a app/components",
131131
"presentation": {
132132
"reveal": "always",
133133
"panel": "dedicated"

docs/contributors/deprecations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ options.
4747
* Optional
4848
* Type: boolean
4949
* Default: false
50-
* Whether or not this deprecations can be autocorrected with `erblint -a`
50+
* Whether or not this deprecations can be autocorrected with `erb_lint -a`
5151

5252
* replacement:
5353
* Optional

docs/contributors/linting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ Primer/NoTagMemoize:
2424
2525
### erb-lint
2626
27-
To get access to our ERB linters, create a `.erb-linters/primer.rb` file with:
27+
To get access to our ERB linters, create a `.erb_linters/primer.rb` file with:
2828

2929
```rb
3030
require "primer/view_components/linters"
3131
```
3232

33-
Then, you can enable them in `.erb-lint.yml`. E.g.:
33+
Then, you can enable them in `.erb_lint.yml`. E.g.:
3434

3535
```yml
3636
linters:
3737
ButtonComponentMigrationCounter:
3838
enabled: true
3939
```
4040

41-
If you also want to add our cops when linting ERB, you can modify your `.erb-lint.yml` to have:
41+
If you also want to add our cops when linting ERB, you can modify your `.erb_lint.yml` to have:
4242

4343
```yml
4444
linters:

docs/contributors/updating-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ If the change requires a lot of updates or you’re unsure of the consequences o
2424
To use your linter run:
2525

2626
```bash
27-
bin/bundle exec erblint --enable-linters LinterName -a app/views app/components app/packages
27+
bin/bundle exec erb_lint --enable-linters LinterName -a app/views app/components app/packages
2828
```
2929

30-
You can also enable your linter globally by adding it to [`.erb-lint.yml`](https://github.com/github/github/blob/master/.erb-lint.yml).
30+
You can also enable your linter globally by adding it to [`.erb_lint.yml`](https://github.com/github/github/blob/master/.erb_lint.yml).
3131

3232
If the migrations result in a lot of changes it’s best to split them up into multiple pull requests. [Here’s an example script for drafting pull requests by codeowners](https://github.com/primer/view_components/pull/972#discussion_r784217378).
3333

lib/primer/view_components/linters/autocorrectable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def correction(args)
2525
def message(args, processed_source)
2626
return self.class::MESSAGE if args.nil?
2727

28-
"#{self.class::MESSAGE}\nTry using:\n\n#{correction(args)}\n\nYou can also run erblint in autocorrect mode:\n\nbundle exec erblint -a #{processed_source.filename}\n"
28+
"#{self.class::MESSAGE}\nTry using:\n\n#{correction(args)}\n\nYou can also run erb_lint in autocorrect mode:\n\nbundle exec erb_lint -a #{processed_source.filename}\n"
2929
end
3030
end
3131
end

0 commit comments

Comments
 (0)