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

40 lines
1022 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";
import tseslint from "typescript-eslint";
import pluginImport from "eslint-plugin-import";
import { config as baseConfig } from "./index.js";
2025-08-29 16:47:43 +05:30
/** @type {import("eslint").Linter.Config} */
export const config = [
...baseConfig,
js.configs.recommended,
eslintConfigPrettier,
...tseslint.configs.recommended,
{
2025-08-29 17:12:53 +05:30
plugins: {
import: pluginImport,
},
2025-08-29 16:47:43 +05:30
rules: {
2025-08-29 17:12:53 +05:30
...pluginImport.configs.recommended.rules,
2025-08-29 16:47:43 +05:30
"import/order": [
"warn",
{
groups: ["builtin", "external", "internal", "parent", "sibling"],
pathGroups: [
{
pattern: "@plane/**",
group: "external",
position: "after",
},
],
pathGroupsExcludedImportTypes: ["builtin", "internal", "react"],
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
2025-08-29 16:47:43 +05:30
],
},
},
2025-08-29 16:47:43 +05:30
];