a programming education platform
www.hypercommit.com
education
1import js from "@eslint/js"
2import eslintConfigPrettier from "eslint-config-prettier"
3import onlyWarn from "eslint-plugin-only-warn"
4import turboPlugin from "eslint-plugin-turbo"
5import tseslint from "typescript-eslint"
6
7/**
8 * A shared ESLint configuration for the repository.
9 *
10 * @type {import("eslint").Linter.Config}
11 * */
12export const config = [
13 js.configs.recommended,
14 eslintConfigPrettier,
15 ...tseslint.configs.recommended,
16 {
17 plugins: {
18 turbo: turboPlugin,
19 },
20 rules: {
21 "turbo/no-undeclared-env-vars": "warn",
22 },
23 },
24 {
25 plugins: {
26 onlyWarn,
27 },
28 },
29 {
30 ignores: ["dist/**", ".next/**", "**/.turbo/**", "**/coverage/**"],
31 },
32]