Add a lint rule to avoid using __dirname

This commit is contained in:
Navaneeth Suresh
2020-09-30 23:33:21 +05:30
parent 17c30eaf3e
commit bbeaff9daf
18 changed files with 24 additions and 0 deletions
@@ -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
@@ -88,6 +88,7 @@ async function moveApp(tempDir: string, destination: string, id: string) {
}
export default async (cmd: Command): Promise<void> => {
/* eslint-disable-next-line no-restricted-syntax */
const paths = findPaths(__dirname);
const questions: Question[] = [