Skip to content

Commit

Permalink
Merge pull request #260 from OHD-Tools/renovate/major-eslint-monorepo
Browse files Browse the repository at this point in the history
Update dependency eslint to v9
  • Loading branch information
bombitmanbomb authored Sep 28, 2024
2 parents 6980835 + 18acab2 commit 1ae476d
Show file tree
Hide file tree
Showing 7 changed files with 229 additions and 257 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
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
});

export default [{
ignores: ["**/node_modules", "**/dist", "**/lib", "**/types"],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
parser: tsParser,
},
}];
Loading

0 comments on commit 1ae476d

Please sign in to comment.