vscode-extensions.dbaeumer.vscode-eslint: refactor, move into its own directory, provide default working configuration
│
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
jq,
|
||||
lib,
|
||||
moreutils,
|
||||
vscode-utils,
|
||||
eslint,
|
||||
}:
|
||||
|
||||
vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "vscode-eslint";
|
||||
publisher = "dbaeumer";
|
||||
version = "3.0.13";
|
||||
hash = "sha256-l5VvhQPxPaQsPhXUbFW2yGJjaqnNvijn4QkXPjf1WXo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
moreutils
|
||||
];
|
||||
|
||||
buildInputs = [ eslint ];
|
||||
|
||||
postInstall = ''
|
||||
cd "$out/$installPrefix"
|
||||
jq '.contributes.configuration.properties."eslint.nodePath".default = "${eslint}/lib/node_modules"' package.json | sponge package.json
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://marketplace.visualstudio.com/items/dbaeumer.vscode-eslint/changelog";
|
||||
description = "Integrates ESLint JavaScript into VS Code";
|
||||
downloadPage = "https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint";
|
||||
homepage = "https://github.com/Microsoft/vscode-eslint";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.datafoo ];
|
||||
};
|
||||
}
|
||||
@@ -1308,22 +1308,7 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
dbaeumer.vscode-eslint = buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "vscode-eslint";
|
||||
publisher = "dbaeumer";
|
||||
version = "3.0.13";
|
||||
hash = "sha256-l5VvhQPxPaQsPhXUbFW2yGJjaqnNvijn4QkXPjf1WXo=";
|
||||
};
|
||||
meta = {
|
||||
changelog = "https://marketplace.visualstudio.com/items/dbaeumer.vscode-eslint/changelog";
|
||||
description = "Integrates ESLint JavaScript into VS Code";
|
||||
downloadPage = "https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint";
|
||||
homepage = "https://github.com/Microsoft/vscode-eslint";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.datafoo ];
|
||||
};
|
||||
};
|
||||
dbaeumer.vscode-eslint = callPackage ./dbaeumer.vscode-eslint { };
|
||||
|
||||
dendron.adjust-heading-level = callPackage ./dendron.adjust-heading-level { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user