1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-03 13:34:54 +00:00

Fix loading eslintrc

(cherry picked from commit b0773ae7e3f860ff381d8d98d23d612609048e38)

Closes #3591
This commit is contained in:
Bogdan 2023-04-30 00:03:35 +03:00
parent 89972b8b66
commit dec6c32719

View file

@ -1,14 +1,17 @@
const fs = require('fs'); const fs = require('fs');
const path = require('path');
const frontendFolder = __dirname;
const dirs = fs const dirs = fs
.readdirSync('frontend/src', { withFileTypes: true }) .readdirSync(path.join(frontendFolder, 'src'), { withFileTypes: true })
.filter((dirent) => dirent.isDirectory()) .filter((dirent) => dirent.isDirectory())
.map((dirent) => dirent.name) .map((dirent) => dirent.name)
.join('|'); .join('|');
const frontendFolder = __dirname;
module.exports = { module.exports = {
root: true,
parser: '@babel/eslint-parser', parser: '@babel/eslint-parser',
env: { env: {