diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-09-20 08:54:29 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-09-20 08:56:11 -0500 |
commit | 9c2a87616026e36542ee6cb18584cc747ef3099d (patch) | |
tree | 99c998be4726edbac50f9c6845a77438d14186ac /src/packages/eslint-config/library.js | |
parent | Bump tsup from 8.2.4 to 8.3.0 in the nodejs-dependencies group (diff) | |
download | locusts-9c2a87616026e36542ee6cb18584cc747ef3099d.tar locusts-9c2a87616026e36542ee6cb18584cc747ef3099d.tar.gz locusts-9c2a87616026e36542ee6cb18584cc747ef3099d.tar.bz2 locusts-9c2a87616026e36542ee6cb18584cc747ef3099d.tar.lz locusts-9c2a87616026e36542ee6cb18584cc747ef3099d.tar.xz locusts-9c2a87616026e36542ee6cb18584cc747ef3099d.tar.zst locusts-9c2a87616026e36542ee6cb18584cc747ef3099d.zip |
Move node packages to src/
At least pretend to make it clean
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'src/packages/eslint-config/library.js')
-rw-r--r-- | src/packages/eslint-config/library.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/packages/eslint-config/library.js b/src/packages/eslint-config/library.js new file mode 100644 index 0000000..9b59cc0 --- /dev/null +++ b/src/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)"], + }, + ], +}; |