Merge pull request #10037 from backstage/rugvip/role-lint

cli: introduce role-based lint configuration setup
This commit is contained in:
Patrik Oldsberg
2022-03-08 09:27:19 +01:00
committed by GitHub
136 changed files with 559 additions and 644 deletions
+1 -11
View File
@@ -1,11 +1 @@
module.exports = {
extends: [require.resolve('@backstage/cli/config/eslint')],
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');
}
}