refactor(tooling): add turbo eslint plugin (#65734)

This commit is contained in:
Oliver Eyton-Williams
2026-02-06 13:03:05 +01:00
committed by GitHub
parent f054de20fd
commit ae50644091
18 changed files with 97 additions and 24 deletions
@@ -1,3 +1,4 @@
/* eslint-disable turbo/no-undeclared-env-vars */
import fs from 'fs';
import { join } from 'path';
@@ -1,3 +1,4 @@
/* eslint-disable turbo/no-undeclared-env-vars */
import { describe, it, expect } from 'vitest';
import { getProjectName, getProjectPath } from './get-project-info.js';
@@ -1,4 +1,5 @@
export function getProjectPath(): string {
// eslint-disable-next-line turbo/no-undeclared-env-vars
return (process.env.INIT_CWD || process.cwd()) + '/';
}
@@ -1,3 +1,4 @@
/* eslint-disable turbo/no-undeclared-env-vars */
import { join } from 'path';
import { describe, it, expect, vi } from 'vitest';
import { getBlockStructure } from '@freecodecamp/curriculum/file-handler';
@@ -1,3 +1,4 @@
/* eslint-disable turbo/no-undeclared-env-vars */
import fs from 'fs';
import path, { join } from 'path';
import matter from 'gray-matter';