Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v24.4.0
v25.0.0
1 change: 0 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"tabWidth": 4,
"printWidth": 100,
"overrides": [
{
"files": "*.yaml",
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Many of the commands take arguments and return values that can only be used with
Move active file to new directory.
- `andreas.formatWorkspaceFiles()`
Format workspace files.
- `andreas.formatSelectedFiles()`
Format selected files. Used by file explorer context menu.
- `andreas.searchFiles(query?: string)`
Search files Search files in workspace.
- `andreas.searchFilesOpenSelected()`
Expand Down
28 changes: 15 additions & 13 deletions eslint.config.mts → eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import eslintJs from "@eslint/js";
import eslintPrettier from "eslint-config-prettier/flat";
import path from "node:path";
import eslintTs from "typescript-eslint";

export default eslintTs.config(
{ ignores: ["src/typings", "eslint.config.mts"] },
eslintJs.configs.recommended,
eslintTs.configs.recommendedTypeChecked,
eslintPrettier,
Expand All @@ -14,30 +12,34 @@ export default eslintTs.config(
ecmaVersion: "latest",
sourceType: "module",
parserOptions: {
project: "./tsconfig.json",
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},

rules: {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/no-explicit-any": "off",
curly: "error",
"no-throw-literal": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"no-warning-comments": "warn",
curly: "error",
eqeqeq: [
"error",
"always",
{
null: "never",
},
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
{
files: ["eslint.config.ts", "src/typings/**/*"],
extends: [eslintTs.configs.disableTypeChecked],
},
);
Loading