Skip to content

Commit

Permalink
Moving to ESLINT 9
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Sep 8, 2024
1 parent 4f385bb commit 06d01ee
Show file tree
Hide file tree
Showing 4 changed files with 1,020 additions and 1,083 deletions.
20 changes: 0 additions & 20 deletions .eslintrc

This file was deleted.

35 changes: 35 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: ["**/dist"],
},
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
),
{
languageOptions: {
parser: tsParser,
ecmaVersion: 2018,
sourceType: "module",
},

rules: {
"@typescript-eslint/no-non-null-assertion": "off",
},
},
];
Loading

0 comments on commit 06d01ee

Please sign in to comment.