mirror of
https://github.com/makeplane/plane.git
synced 2025-12-16 20:07:56 +01:00
40 lines
1022 B
JavaScript
40 lines
1022 B
JavaScript
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";
|
|
|
|
/** @type {import("eslint").Linter.Config} */
|
|
export const config = [
|
|
...baseConfig,
|
|
js.configs.recommended,
|
|
eslintConfigPrettier,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
plugins: {
|
|
import: pluginImport,
|
|
},
|
|
rules: {
|
|
...pluginImport.configs.recommended.rules,
|
|
"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,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|