32 lines
740 B
JavaScript
32 lines
740 B
JavaScript
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
|
|
export default [
|
|
// Global ignores MUST be alone in their own object to apply project-wide.
|
|
{
|
|
ignores: [
|
|
"dist/**",
|
|
"dist_obf/**",
|
|
"dist_obfplus/**",
|
|
"build/**",
|
|
"coverage/**",
|
|
"node_modules/**",
|
|
".bun-temp/**",
|
|
".bun-temp-cli/**",
|
|
"**/*.d.ts",
|
|
],
|
|
},
|
|
|
|
// Actual lint config for TS/TSX files.
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
languageOptions: {
|
|
parser: (await import("@typescript-eslint/parser")).default,
|
|
},
|
|
plugins: { "simple-import-sort": simpleImportSort },
|
|
rules: {
|
|
"simple-import-sort/imports": "error",
|
|
"simple-import-sort/exports": "error",
|
|
},
|
|
},
|
|
];
|