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
jest-runner.eslint.config.js
Normal file
13
jest-runner.eslint.config.js
Normal 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,
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user