Skip to content

Commit

Permalink
⬆️ update packages and add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
zS1L3NT committed Aug 8, 2023
1 parent 569895f commit f21a7f9
Show file tree
Hide file tree
Showing 36 changed files with 1,418 additions and 361 deletions.
10 changes: 7 additions & 3 deletions .editorconfig
@@ -1,3 +1,7 @@
[*]
indent_size = 4
indent_style = tab
[*]
indent_size = 4
indent_style = tab

[{*.yml, *.yaml}]
indent_size = 2
indent_style = space
43 changes: 43 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,43 @@
{
"env": {
// "browser": true,
// "es2021": true,
"node": true
},
"extends": [
// "next/core-web-vitals",
"eslint:recommended",
// "plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
// "react",
"@typescript-eslint",
"simple-import-sort"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn",
"linebreak-style": ["error", "unix"],
"no-empty": "warn",
"no-empty-function": "off",
"no-empty-pattern": "warn",
// "react/react-in-jsx-scope": "off",
"simple-import-sort/imports": [
"warn",
{
"groups": [["^\\w"], ["^@\\w+"], ["^@/"], ["^\\."]]
}
]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Performing Pnpm Install on Workspace
uses: pnpm/action-setup@v2.1.0
with:
version: 7.10.0
version: latest
run_install: true

- name: Transpiling TypeScript
Expand Down
17 changes: 10 additions & 7 deletions .prettierrc
@@ -1,8 +1,11 @@
{
"semi": false,
"arrowParens": "avoid",
"trailingComma": "none",
"jsxSingleQuote": false,
"jsxBracketSameLine": true,
"printWidth": 100
{
"semi": false,
"arrowParens": "avoid",
"trailingComma": "all",
"jsxSingleQuote": false,
"printWidth": 100,
"singleAttributePerLine": true,
"bracketSameLine": true,
"useTabs": true,
"tabWidth": 4
}
31 changes: 21 additions & 10 deletions package.json
@@ -1,13 +1,14 @@
{
"name": "nova-bot",
"version": "3.0.2",
"version": "3.0.3",
"description": "Nova Bot, a framework for building Discord Bots",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "zS1L3NT <zechariahtan144@gmail.com> (https://www.zectan.com)",
"license": "GPL-3.0",
"scripts": {
"build": "tsc"
"build": "tsc",
"lint": "tsc --noEmit && eslint src --fix && prettier src --write"
},
"repository": {
"type": "git",
Expand All @@ -17,17 +18,27 @@
"discordjs"
],
"dependencies": {
"@discordjs/rest": "1.7.0",
"@prisma/client": "^4.12.0",
"@types/luxon": "^3.3.0",
"@types/node": "^18.15.11",
"@discordjs/rest": "2.0.0",
"@prisma/client": "^5.1.1",
"@types/luxon": "^3.3.1",
"@types/node": "^20.4.8",
"after-every": "^1.0.4",
"discord-api-types": "0.37.39",
"discord.js": "^14.9.0",
"discord-api-types": "0.37.52",
"discord.js": "^14.12.1",
"escape-string-regexp": "4.0.0",
"luxon": "^3.3.0",
"no-try": "^3.1.0",
"prisma": "^4.12.0",
"typescript": "^4.9.5"
"prisma": "^5.1.1",
"typescript": "^5.1.6"
},
"devDependencies": {
"@types/node": "latest",
"@typescript-eslint/eslint-plugin": "latest",
"@typescript-eslint/parser": "latest",
"eslint": "latest",
"eslint-config-prettier": "latest",
"eslint-plugin-simple-import-sort": "latest",
"prettier": "latest",
"typescript": "latest"
}
}

0 comments on commit f21a7f9

Please sign in to comment.