Skip to content

Commit bc05837

Browse files
GuanzhouSongclaude
andcommitted
Exclude vendored Jekyll gems from lint
The new lint step failed on third-party JavaScript, not ours: vendor/bundle/ruby/3.3.0/gems/jekyll-4.4.1/lib/jekyll/commands/serve/ livereload_assets/livereload.js 1:221 error Missing semicolon semi ruby/setup-ruby runs with bundler-cache: true, which vendors gems into vendor/bundle before the lint step, so ESLint sees Jekyll's minified livereload.js. The directory is already in .gitignore, but ESLint flat config does not read .gitignore, so the ignore has to be repeated in eslint.config.mjs. This is invisible locally, where vendor/ does not exist. Also ignores .jekyll-cache and any _site output for the same reason. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WWCBtvyCpxc2aqtyLDhDeE
1 parent 3a7ec8e commit bc05837

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎eslint.config.mjs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ export default defineConfig([
1010
"coverage/**",
1111
"build/**",
1212
"node_modules/**",
13+
// Jekyll vendors its gems into vendor/bundle when bundler-cache is on,
14+
// which drops third-party JavaScript such as Jekyll's minified
15+
// livereload.js into the tree. These paths are in .gitignore, but flat
16+
// config does not read .gitignore, so they have to be listed here too.
17+
"vendor/**",
18+
".jekyll-cache/**",
19+
"**/_site/**",
1320
],
1421
},
1522
{

0 commit comments

Comments
 (0)