Merge pull request #2684 from themousepotato/lintrule-dirname-fix

Add a lint rule to avoid using __dirname
This commit is contained in:
Patrik Oldsberg
2020-10-09 21:03:13 +02:00
committed by GitHub
18 changed files with 24 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@
* limitations under the License.
*/
/* eslint-disable no-restricted-syntax */
const path = require('path');
// Figure out whether we're running inside the backstage repo or as an installed dependency
+1
View File
@@ -101,6 +101,7 @@ const main = (argv: string[]) => {
// Local Backstage Preview
const techdocsPreviewBundlePath = path.join(
/* eslint-disable-next-line no-restricted-syntax */
__dirname,
'..',
'dist',