Skip to content

Commit

Permalink
FIxed root config
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Nov 27, 2024
1 parent 4d81d4f commit fef32c5
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
const eslintConfig = require("eslint-config-commons-ui/next");

export default [
...compat.extends("eslint-config-commons-ui/next"),
{
settings: {
next: {
rootDir: "apps/*/",
},
},
},
...eslintConfig,
];

0 comments on commit fef32c5

Please sign in to comment.