chore: Add linter for typescript code (#45)

- Add and configure `eslint`
- Add to build pipeline
- Fix lint failures
This commit is contained in:
Bryan
2022-01-20 22:00:14 -08:00
committed by GitHub
parent 2654a93132
commit 7b9347bce6
13 changed files with 1332 additions and 36 deletions

View File

@ -0,0 +1,13 @@
// Toggle eslint --fix by specifying the `FIX` env.
const fix = !!process.env.FIX
module.exports = {
cliOptions: {
ext: [".js", ".ts", ".tsx"],
ignorePath: ".eslintignore",
cache: false,
fix,
resolvePluginsRelativeTo: ".",
maxWarnings: 0,
},
}