Configure ESLint

This commit is contained in:
Josh Gross
2023-03-15 14:56:47 -04:00
parent 965cb981b1
commit 28a4438faf
12 changed files with 72 additions and 28 deletions
+7
View File
@@ -0,0 +1,7 @@
module.exports = {
extends: "../.eslintrc.json",
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
}
+3 -1
View File
@@ -32,6 +32,8 @@
"clean": "rimraf dist",
"format": "prettier --write '**/*.ts'",
"format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts",
"lint-fix": "eslint --fix src/**/*.ts",
"prepublishOnly": "npm run build && npm run test",
"test": "NODE_OPTIONS=\"--experimental-vm-modules\" jest",
"test-watch": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --watch",
@@ -60,4 +62,4 @@
"ts-jest": "^29.0.3",
"typescript": "^4.8.4"
}
}
}