Skip to content

Add stylelint and eslint with working configs - #378

Merged
eirvandelden merged 8 commits into
mainfrom
single-lefthook-config
Oct 22, 2026
Merged

eirvandelden merged 8 commits into
mainfrom
single-lefthook-config

Conversation

@eirvandelden

@eirvandelden eirvandelden commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

The dotfiles stylelint and eslint checks run npx --no stylelint and npx --no eslint.
This repository has neither package nor a config for them, so both checks cannot run here.
The two layouts also fail erb_lint.

stylelint and eslint run in the repository with their own configs and pass on the existing CSS and JS.
Both layouts pass erb_lint.

Implementation

  • package.json, package-lock.json, stylelint.config.mjs, eslint.config.mjs.
  • app/assets/stylesheets/application.css, app/assets/stylesheets/local/layout/application_page.css, app/assets/stylesheets/local/modules/search_dialog.css.
  • app/javascript/channels/index.js (deleted, dead webpacker file), app/javascript/controllers/clipboard_controller.js.
  • app/views/layouts/application.html.erb, app/views/layouts/admin.html.erb.

No lefthook file changes.

Proof

  • npx --no stylelint "app/assets/stylesheets/**/*.css" and npx --no eslint . exit 0.
  • erb_lint passes on both layouts.
  • git diff origin/main --name-only lists no lefthook file.
  • npm ci --dry-run passes, so CI's npm ci keeps working.

@eirvandelden
eirvandelden force-pushed the single-lefthook-config branch 3 times, most recently from 4f300c9 to 001c764 Compare October 22, 2026 11:58
@eirvandelden eirvandelden changed the title One lefthook config that builds on the dotfiles defaults Add stylelint and eslint with working configs Oct 22, 2026
eirvandelden and others added 8 commits October 22, 2026 21:07
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@eirvandelden
eirvandelden force-pushed the single-lefthook-config branch from 68cb96b to 5f00cfc Compare October 22, 2026 19:09
@eirvandelden
eirvandelden marked this pull request as ready for review October 22, 2026 19:17
@eirvandelden
eirvandelden merged commit c3e653d into main Oct 22, 2026
7 checks passed
@eirvandelden
eirvandelden deleted the single-lefthook-config branch October 22, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant