packages,plugins: tweak migrated lint configurations

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-07 14:53:26 +01:00
parent 09b37063f2
commit 72fa341eb5
7 changed files with 22 additions and 157 deletions
+1 -10
View File
@@ -1,10 +1 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname, {
overrides: [
{
files: ['**/*.ts?(x)'],
rules: {
'no-restricted-imports': 0,
},
},
],
});
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
@@ -37,6 +37,7 @@ function findPreviewBundlePath(): string {
// This can be tested by running `yarn pack` and extracting the resulting tarball into a directory.
// Within the extracted directory, run `npm install --only=prod`.
// Once that's done you can test the CLI in any directory using `node <tmp-dir>/package <command>`.
// eslint-disable-next-line no-restricted-syntax
return findPaths(__dirname).resolveOwn('dist/embedded-app');
}
}