-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
runtime:compiler:feat: unify node-based makeprgs #18798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Konfekt
wants to merge
7
commits into
vim:master
Choose a base branch
from
Konfekt:npm
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
91428c1
runtime:compiler:feat: unify node-based makeprgs
Konfekt efe6e30
feat: add per-compiler makeprg checks and prefer them over node_makeprg
Konfekt 14013f1
refactor: shorten makeprg setup with ternary in compilers
Konfekt 2f9c57c
use javascript_node_makeprg instead of node_makeprg as suggested by @…
Konfekt 4f882b7
fix: mixed indent
Konfekt de4aa62
remove @djmoch as maintainer
Konfekt a22df55
use tabs for erroformat as kindly pointed out by @chrisbra
Konfekt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,23 @@ | ||
| " Vim compiler file | ||
| " Compiler: csslint for CSS | ||
| " Maintainer: Daniel Moch <daniel@danielmoch.com> | ||
| " Last Change: 2016 May 21 | ||
| " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) | ||
| " Compiler: csslint for CSS | ||
| " Previous Maintainer: Daniel Moch <daniel@danielmoch.com> | ||
| " Last Change: 2016 May 21 | ||
| " 2024 Apr 03 by The Vim Project (removed :CompilerSet | ||
| " definition) | ||
| " 2025 Nov 22 by The Vim Project (default to npx) | ||
|
|
||
| if exists("current_compiler") | ||
| finish | ||
| endif | ||
| let current_compiler = "csslint" | ||
|
|
||
| CompilerSet makeprg=csslint\ --format=compact | ||
| " CompilerSet makeprg=csslint | ||
| " CompilerSet makeprg=npx\ csslint | ||
| exe 'CompilerSet makeprg=' .. escape( | ||
| \ (!empty(get(b:, 'csslint_makeprg', get(g:, 'csslint_makeprg', ''))) ? | ||
| \ get(b:, 'csslint_makeprg', get(g:, 'csslint_makeprg', '')) : | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, let's not introduce another block of settings but stick to |
||
| \ (get(b:, 'javascript_node_makeprg', get(g:, 'javascript_node_makeprg', 'npx')) .. ' csslint')) | ||
| \ .. ' --format=compact ' .. | ||
| \ get(b:, 'csslint_makeprg_params', get(g:, 'csslint_makeprg_params', '')), ' \|"') | ||
|
|
||
| CompilerSet errorformat=%-G,%-G%f:\ lint\ free!,%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %m | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,11 +2,19 @@ | |
| " Compiler: ESLint for JavaScript | ||
| " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com> | ||
| " Last Change: 2024 Nov 30 | ||
| " 2025 Nov 22 by The Vim Project (default to npx) | ||
|
|
||
| if exists("current_compiler") | ||
| finish | ||
| endif | ||
| let current_compiler = "eslint" | ||
|
|
||
| CompilerSet makeprg=npx\ eslint\ --format\ stylish | ||
| " CompilerSet makeprg=eslint | ||
| " CompilerSet makeprg=npx\ eslint | ||
| exe 'CompilerSet makeprg=' .. escape( | ||
| \ (!empty(get(b:, 'eslint_makeprg', get(g:, 'eslint_makeprg', ''))) ? | ||
| \ get(b:, 'eslint_makeprg', get(g:, 'eslint_makeprg', '')) : | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. similar here please |
||
| \ (get(b:, 'javascript_node_makeprg', get(g:, 'javascript_node_makeprg', 'npx')) .. ' eslint')) | ||
| \ .. ' --format stylish ' .. | ||
| \ get(b:, 'eslint_makeprg_params', get(g:, 'eslint_makeprg_params', '')), ' \|"') | ||
| CompilerSet errorformat=%-P%f,\%\\s%#%l:%c\ %#\ %trror\ \ %m,\%\\s%#%l:%c\ %#\ %tarning\ \ %m,\%-Q,\%-G%.%#, | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Biome is quite new, let's rather keep it simple and jut use the
javascript_node_makeprginstead and get rid of the wholebiome_makeprgoption instead. This simplifies this whole thing here.