diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2e9c434ea..f2b2781d0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -38,4 +38,4 @@ /test/sandbox/app/components/translatable_component.rb @elia /test/sandbox/app/components/translatable_component.yml @elia /test/sandbox/app/components/translations_component.html.erb @elia -/test/sandbox/app/components/translations_component.rb @elia \ No newline at end of file +/test/sandbox/app/components/translations_component.rb @elia diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6c95e6a51..803657b28 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,6 +3,20 @@ name: Lint on: [pull_request] jobs: + trailing-whitespace: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Check for trailing whitespace + uses: raisedevs/find-trailing-whitespace@restrict-to-plaintext-only + - name: Check for merge conflicts + run: git diff --check + shell: bash + - name: Ensure all files have newline at EOF + uses: Logerfo/newline-action@0.0.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} prose: runs-on: ubuntu-latest steps: diff --git a/.vale.ini b/.vale.ini index c27217e8d..960cfb6c8 100644 --- a/.vale.ini +++ b/.vale.ini @@ -16,4 +16,4 @@ Microsoft.Headings = NO Microsoft.Passive = NO Microsoft.SentenceLength = NO Microsoft.Vocab = NO -Microsoft.We = NO \ No newline at end of file +Microsoft.We = NO diff --git a/CNAME b/CNAME index 9a9a9ba19..08757c5ac 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -viewcomponent.org \ No newline at end of file +viewcomponent.org diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 896cb4abd..7e9b98f09 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -7,6 +7,10 @@ title: Changelog ## main +* Add linters for file consistency. + + *Simon Fish* + * Add @boardfish to docs/index.md and sort contributors. *Simon Fish* diff --git a/docs/logo/readme-dark.svg b/docs/logo/readme-dark.svg index 55ab778bf..ccd8ba07e 100644 --- a/docs/logo/readme-dark.svg +++ b/docs/logo/readme-dark.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/docs/logo/readme-light.svg b/docs/logo/readme-light.svg index 3d2912b9c..02476a649 100644 --- a/docs/logo/readme-light.svg +++ b/docs/logo/readme-light.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/lib/rails/generators/component/templates/component.rb.tt b/lib/rails/generators/component/templates/component.rb.tt index 7a1243177..a4dddf6e1 100644 --- a/lib/rails/generators/component/templates/component.rb.tt +++ b/lib/rails/generators/component/templates/component.rb.tt @@ -6,7 +6,7 @@ class <%= class_name %>Component < <%= parent_class %> <%= initialize_body %> end <%- end -%> -<%- if initialize_call_method_for_inline? -%> +<%- if initialize_call_method_for_inline? -%> def call content_tag :h1, "Hello world!"<%= ", data: { controller: \"#{stimulus_controller}\" }" if options["stimulus"] %> end