Start linting with eslint
This commit is contained in:
parent
056acbf397
commit
f9bd128a02
15 changed files with 786 additions and 100 deletions
nix
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue