mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore: Add linter for typescript code (#45)
- Add and configure `eslint` - Add to build pipeline - Fix lint failures
This commit is contained in:
@ -13,6 +13,12 @@ module.exports = {
|
||||
testPathIgnorePatterns: ["/node_modules/", "/__tests__/fakes"],
|
||||
moduleDirectories: ["node_modules", "<rootDir>"],
|
||||
},
|
||||
{
|
||||
displayName: "lint",
|
||||
runner: "jest-runner-eslint",
|
||||
testMatch: ["<rootDir>/site/**/*.js", "<rootDir>/site/**/*.ts", "<rootDir>/site/**/*.tsx"],
|
||||
testPathIgnorePatterns: ["/.next/", "/out/"],
|
||||
},
|
||||
],
|
||||
collectCoverageFrom: [
|
||||
"<rootDir>/site/**/*.js",
|
||||
|
Reference in New Issue
Block a user