Add a lint rule to avoid using __dirname
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -106,6 +106,7 @@ const main = (argv: string[]) => {
|
||||
|
||||
// Local Backstage Preview
|
||||
const techdocsPreviewBundlePath = path.join(
|
||||
/* eslint-disable-next-line no-restricted-syntax */
|
||||
__dirname,
|
||||
'..',
|
||||
'dist',
|
||||
|
||||
Reference in New Issue
Block a user