2023-03-13 10:29:40 +00:00
|
|
|
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"
|
|
|
|
|
},
|
|
|
|
|
};
|