Skip to content

Commit

Permalink
Some more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wengj9 committed Sep 28, 2024
1 parent fabf46e commit 9cdf60e
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true
}
}
9 changes: 7 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginUnicorn from "eslint-plugin-unicorn";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default tseslint.config(
eslint.configs.recommended,
Expand All @@ -12,9 +13,13 @@ export default tseslint.config(
{
languageOptions: {
parserOptions: {
projectService: true,
projectService: {
allowDefaultProject: ["*.js", "*.mjs"],
defaultProject: "tsconfig.json"
},
tsconfigRootDir: import.meta.dirname
}
}
}
},
eslintPluginPrettierRecommended
);
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
"@discordjs/rest": "^2.4.0",
"@eslint/js": "^9.11.1",
"@types/eslint__js": "^8.42.3",
"@types/node": "^18.19.50",
"@types/node": "^22.7.4",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-unicorn": "^55.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.3.0",
"prettier": "^2.8.8",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript-eslint": "^8.7.0"
Expand All @@ -42,4 +43,4 @@
"*.{ts,json,yaml,yml}": "prettier --plugin-search-dir=. --ignore-unknown --write",
"*.ts": "eslint --cache --fix"
}
}
}
101 changes: 84 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"incremental": true,
"isolatedModules": true
},
"include": ["src/", "eslint.config.mjs"]
"include": ["src/", "eslint.config.mjs"],
"exclude": ["dist/"]
}

0 comments on commit 9cdf60e

Please sign in to comment.