commit | ac5915f07d3b796f224c85477763ca7fe893dcc2 | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Thu Mar 10 08:32:54 2022 -0800 |
committer | Andrew Geissler <andrew@geissonator.com> | Mon Mar 14 16:26:33 2022 +0000 |
tree | 985af37730d66285bee21c33333c03d948baad1e | |
parent | 7d23896b5c1f5a898db97c11feeea75565134955 [diff] |
Let eslint use .gitignore file There is a well documented issue when using eslint with a folder that already has subprojects checked out. A quick perusing of the eslint documentation shows that the eslintignore files happily accept a .gitignore file as its input. Considering there might be repos that already have put a .eslintignore file in place, rely on that if it exists, if it doesn't, fall back to .gitignore if it exists. While here, this exposed another issue that we were missing the --format=json command, and there were cases where eslint would make a mistake. Tested: Ran on bmcweb repo with subprojects checked out. Observed build succeeded. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Iafab1d4d9e80a093a13b4c5a758a1f68bc37138c
Build script for CI jobs in Jenkins.