Skip to content

Commit

Permalink
Merge pull request #295 from PlanetHoster/renovate/major-linters
Browse files Browse the repository at this point in the history
chore(deps): update linters (major)
  • Loading branch information
n0cloud authored Oct 1, 2024
2 parents 7b50a7a + 6a71c3f commit 99a2508
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 313 deletions.
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

27 changes: 27 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 [
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"),
{
plugins: {
"@typescript-eslint": typescriptEslint,
},

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

0 comments on commit 99a2508

Please sign in to comment.