Skip to content

Commit

Permalink
Update eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
miikaah committed Jul 7, 2024
1 parent 2c13c68 commit 4a8f517
Show file tree
Hide file tree
Showing 6 changed files with 480 additions and 370 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// @ts-check
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
eslintPluginPrettierRecommended,
{
ignores: ["src/preload.js", "dist/**/*", "release-builds/**/*"],
},
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"prettier/prettier": 1,
"@typescript-eslint/no-explicit-any": "off",
},
},
{
files: ["src/**/*.spec.ts"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
},
},
);
Loading

0 comments on commit 4a8f517

Please sign in to comment.