Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed Feb 7, 2025
1 parent 473e624 commit f9d627a
Show file tree
Hide file tree
Showing 5 changed files with 1,080 additions and 994 deletions.
47 changes: 0 additions & 47 deletions .eslintrc.js

This file was deleted.

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

export default [
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
prettierRecommended,
{
linterOptions: {
reportUnusedDisableDirectives: true,
},
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ["eslint.config.mjs"],
},
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"prettier/prettier": "warn",
eqeqeq: ["error", "smart"],
"linebreak-style": ["error", "unix"],
"no-console": "error",
"no-multi-assign": "error",
"no-return-assign": "error",
"no-unused-expressions": "error",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowAny: false,
allowBoolean: false,
allowNullish: false,
allowNumber: true,
allowRegExp: false,
},
],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{ accessibility: "no-public" },
],
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/switch-exhaustiveness-check": "error",
},
},
];
Loading

0 comments on commit f9d627a

Please sign in to comment.