mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(tooling): add turbo eslint plugin (#65734)
This commit is contained in:
committed by
GitHub
parent
f054de20fd
commit
ae50644091
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user