diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-08-09 09:05:18 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-08-09 09:05:18 -0500 |
commit | f7e13f5917e176fd44a80479ab06eb61e34dd138 (patch) | |
tree | dc5ebed287c123b4e572371074ffcd59a8a76334 /packages/eslint-config/library.js | |
parent | ci: Rename things better (diff) | |
download | locusts-f7e13f5917e176fd44a80479ab06eb61e34dd138.tar locusts-f7e13f5917e176fd44a80479ab06eb61e34dd138.tar.gz locusts-f7e13f5917e176fd44a80479ab06eb61e34dd138.tar.bz2 locusts-f7e13f5917e176fd44a80479ab06eb61e34dd138.tar.lz locusts-f7e13f5917e176fd44a80479ab06eb61e34dd138.tar.xz locusts-f7e13f5917e176fd44a80479ab06eb61e34dd138.tar.zst locusts-f7e13f5917e176fd44a80479ab06eb61e34dd138.zip |
feat: Add Node.js
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'packages/eslint-config/library.js')
-rw-r--r-- | packages/eslint-config/library.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/eslint-config/library.js b/packages/eslint-config/library.js new file mode 100644 index 0000000..9b59cc0 --- /dev/null +++ b/packages/eslint-config/library.js @@ -0,0 +1,34 @@ +const { resolve } = require("node:path"); + +const project = resolve(process.cwd(), "tsconfig.json"); + +/** @type {import("eslint").Linter.Config} */ +module.exports = { + extends: ["eslint:recommended", "prettier", "turbo"], + plugins: ["only-warn"], + globals: { + React: true, + JSX: true, + }, + env: { + node: true, + }, + settings: { + "import/resolver": { + typescript: { + project, + }, + }, + }, + ignorePatterns: [ + // Ignore dotfiles + ".*.js", + "node_modules/", + "dist/", + ], + overrides: [ + { + files: ["*.js?(x)", "*.ts?(x)"], + }, + ], +}; |