Start linting with eslint

This commit is contained in:
Tristan Daniël Maat 2022-08-03 01:48:06 +01:00
parent 056acbf397
commit f9bd128a02
Signed by: tlater
GPG key ID: 49670FD774E43268
15 changed files with 786 additions and 100 deletions

View file

@ -21,7 +21,7 @@
include = [
../package.json
../tsconfig.json
../.eslintrc.json
../.eslintrc.yaml
../.parcelrc
../.posthtmlrc
../.prettierrc
@ -38,7 +38,7 @@
checkPhase = ''
mkdir -p $out
${concatStringsSep "\n" (map (command: "${command} > $out/check.log") checkCommands)}
${concatStringsSep "\n" (map (command: "${command} | tee $out/check.log") checkCommands)}
'';
doCheck = true;
@ -58,4 +58,10 @@ in {
"npm run check"
];
};
lints = mkNodeCheck {
checkCommands = [
"npm run lint"
];
};
}