Implement shared eslint config through devenv
This commit is contained in:
parent
4124de9311
commit
31eebd8dab
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,6 +17,7 @@
|
||||
/app/frontend/.pnp
|
||||
/app/frontend/.pnp.js
|
||||
/app/frontend/.dependency-graph
|
||||
/app/frontend/eslint.shared.mjs
|
||||
|
||||
# testing
|
||||
/app/frontend/coverage
|
||||
|
||||
@ -23,6 +23,10 @@
|
||||
inherit version;
|
||||
pname = "cv";
|
||||
src = ./app/frontend;
|
||||
preBuild = ''
|
||||
cp ${nix.lib.eslint-config-file} ./eslint.shared.mjs
|
||||
npm run check
|
||||
'';
|
||||
npmInstallFlags = "--no-audit --no-progress --no-fund";
|
||||
npmDepsHash = "sha256-p4rTpy0t8aajbubvtF1TA83/FFqvfKEOPBb5T0ZRfQY=";
|
||||
npmPackFlags = [ "--ignore-scripts" ];
|
||||
@ -82,6 +86,11 @@
|
||||
pkgs.go
|
||||
pkgs.nodejs_22
|
||||
];
|
||||
|
||||
enterShell = ''
|
||||
cp ${nix.lib.eslint-config-file} ./app/frontend/eslint.shared.mjs
|
||||
'';
|
||||
|
||||
scripts = {
|
||||
# Override golangci-lint for vscode, because the extension incorrectly assumes usage of global binaries is preferred
|
||||
golangci-lint = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user