| 123456789101112131415161718192021222324252627282930313233 |
- import js from "@eslint/js";
- import eslintConfigPrettier from "eslint-config-prettier";
- import turboPlugin from "eslint-plugin-turbo";
- import tseslint from "typescript-eslint";
- import onlyWarn from "eslint-plugin-only-warn";
- /**
- * A shared ESLint configuration for the repository.
- *
- * @type {import("eslint").Linter.Config[]}
- * */
- export const config = [
- js.configs.recommended,
- eslintConfigPrettier,
- ...tseslint.configs.recommended,
- {
- plugins: {
- turbo: turboPlugin,
- },
- rules: {
- "turbo/no-undeclared-env-vars": "warn",
- },
- },
- {
- plugins: {
- onlyWarn,
- },
- },
- {
- ignores: ["dist/**"],
- },
- ];
|