Skip to content

Commit

Permalink
Merge pull request #403 from ziglang/techatrix/update-dependencies
Browse files Browse the repository at this point in the history
update some dependencies
  • Loading branch information
Vexu authored Feb 22, 2025
2 parents 0b53d9a + cef650a commit edf73cd
Show file tree
Hide file tree
Showing 7 changed files with 403 additions and 513 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
"eslint.experimental.useFlatConfig": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
47 changes: 26 additions & 21 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
// @ts-check

import prettierConfig from "eslint-config-prettier";
import tseslint from "typescript-eslint";
import prettierConfig from "eslint-config-prettier";

export default tseslint.config({
files: ["**/*.ts"],
extends: [...tseslint.configs.stylisticTypeChecked, ...tseslint.configs.strictTypeChecked],
rules: {
...prettierConfig.rules,
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
eqeqeq: "error",
"no-throw-literal": "off",
"@typescript-eslint/only-throw-error": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-duplicate-imports": "error",
"sort-imports": ["error", { allowSeparatedGroups: true }],
},
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: "__dirname",
export default tseslint.config(
tseslint.configs.stylisticTypeChecked,
tseslint.configs.strictTypeChecked,
prettierConfig,
{
rules: {
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/switch-exhaustiveness-check": ["error", { considerDefaultExhaustiveForUnions: true }],
eqeqeq: "error",
"no-throw-literal": "off",
"@typescript-eslint/only-throw-error": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-duplicate-imports": "error",
"sort-imports": ["error", { allowSeparatedGroups: true }],
},
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
ignores: ["**/*.js", "**/*.mjs"],
},
});
);
Loading

0 comments on commit edf73cd

Please sign in to comment.