Files
plane/packages/eslint-config/index.js

31 lines
632 B
JavaScript
Raw Normal View History

2025-08-29 16:47:43 +05:30
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
2025-08-29 17:12:53 +05:30
import turboPlugin from "eslint-plugin-turbo";
import tseslint from "typescript-eslint";
2025-08-29 16:47:43 +05:30
import onlyWarnPlugin from "eslint-plugin-only-warn";
/**
* @type {import("eslint").Linter.Config}
*/
2025-08-29 17:12:53 +05:30
export const config = [
2025-08-29 16:47:43 +05:30
js.configs.recommended,
eslintConfigPrettier,
2025-08-29 17:12:53 +05:30
...tseslint.configs.recommended,
2025-08-29 16:47:43 +05:30
{
plugins: {
2025-08-29 17:12:53 +05:30
turbo: turboPlugin,
2025-08-29 16:47:43 +05:30
},
rules: {
"turbo/no-undeclared-env-vars": "warn",
},
},
{
plugins: {
onlyWarn: onlyWarnPlugin,
},
},
{
ignores: ["dist/**", "node_modules/"],
},
];