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
@@ -11,6 +11,7 @@ import jsxAllyPlugin from 'eslint-plugin-jsx-a11y';
|
||||
import importPlugin from 'eslint-plugin-import';
|
||||
import testingLibraryPlugin from 'eslint-plugin-testing-library';
|
||||
import babelParser from '@babel/eslint-parser'; // TODO: can we get away from using babel?
|
||||
import turbo from 'eslint-plugin-turbo';
|
||||
|
||||
import { FlatCompat } from '@eslint/eslintrc';
|
||||
|
||||
@@ -32,6 +33,7 @@ const testFiles = [
|
||||
|
||||
const base = defineConfig(
|
||||
globalIgnores(['dist', '.turbo']),
|
||||
turbo.configs['flat/recommended'],
|
||||
js.configs.recommended,
|
||||
eslintConfigPrettier,
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"eslint-plugin-react": "7.37.4",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
"eslint-plugin-testing-library": "7.1.1",
|
||||
"eslint-plugin-turbo": "^2.8.3",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "^8.47.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user