metamigo-api: use in-tree dev configs

This commit is contained in:
Abel Luck 2023-03-13 10:29:40 +00:00
parent 8abcdcd5b8
commit ed3ef6fc21
5 changed files with 49 additions and 27 deletions

View file

@ -1 +1,26 @@
require("../.eslintrc.js");
require("eslint-config-link/patch/modern-module-resolution");
module.exports = {
extends: [
"eslint-config-link/profile/node",
"eslint-config-link/eslint-config-amigo/profile/typescript",
"eslint-config-link/eslint-config-amigo/profile/jest",
],
parserOptions: { tsconfigRootDir: __dirname },
rules: {
"new-cap": "off",
"import/no-extraneous-dependencies": [
// enable this when this is fixed
// https://github.com/benmosher/eslint-plugin-import/pull/1696
"off",
{
packageDir: [
".",
"node_modules/@digiresilience/amigo",
"node_modules/@digiresilience/amigo-dev",
],
},
],
// TODO: enable this after jest fixes this issue https://github.com/nodejs/node/issues/38343
"unicorn/prefer-node-protocol": "off"
},
};