-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
175 additions
and
152 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
import js from "@eslint/js"; | ||
import stylistic from "@stylistic/eslint-plugin"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import globals from "globals"; | ||
import ts from "typescript-eslint"; | ||
|
||
|
||
const tsConfigMain = ts.configs.recommended.map((config) => ({ | ||
...config, files: ["**/*.ts"] | ||
})); | ||
const tsConfigStylistic = ts.configs.stylistic.map((config) => ({ | ||
...config, files: ["**/*.ts"] | ||
})); | ||
|
||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
"**/dist", "**/node_modules" | ||
] | ||
}, | ||
js.configs.recommended, | ||
{ | ||
plugins: { | ||
"@typescript-eslint": ts.plugin, | ||
"@stylistic": stylistic | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node | ||
}, | ||
parser: tsParser, | ||
ecmaVersion: 2022, | ||
sourceType: "module" | ||
}, | ||
|
||
rules: { | ||
"no-console": "error", | ||
|
||
"no-extra-boolean-cast": [ | ||
"error", { | ||
enforceForLogicalOperands: true | ||
} | ||
], | ||
|
||
"no-template-curly-in-string": "error", | ||
"no-unreachable-loop": "error", | ||
curly: [ | ||
"error", "multi" | ||
], | ||
"default-case-last": "error", | ||
"default-case": "error", | ||
"dot-notation": "error", | ||
eqeqeq: "error", | ||
"no-empty-function": "error", | ||
"no-lone-blocks": "error", | ||
"require-await": "error", | ||
yoda: "error", | ||
|
||
"array-bracket-newline": [ | ||
"error", { | ||
minItems: 2 | ||
} | ||
], | ||
|
||
camelcase: "error", | ||
"comma-dangle": [ | ||
"error", "never" | ||
], | ||
"comma-style": [ | ||
"error", "last" | ||
], | ||
"linebreak-style": [ | ||
"error", "unix" | ||
], | ||
"new-parens": "error", | ||
"no-trailing-spaces": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-whitespace-before-property": "error", | ||
"operator-assignment": "error", | ||
"arrow-body-style": [ | ||
"error", "as-needed" | ||
], | ||
"arrow-parens": "error", | ||
"no-var": "error", | ||
|
||
"prefer-const": [ | ||
"error", { | ||
destructuring: "any" | ||
} | ||
], | ||
|
||
"prefer-template": "error", | ||
"template-curly-spacing": "error", | ||
|
||
"quote-props": [ | ||
"error", "as-needed", { | ||
numbers: true | ||
} | ||
], | ||
|
||
"comma-spacing": "off", | ||
quotes: "off" | ||
} | ||
}, | ||
...tsConfigMain, | ||
...tsConfigStylistic, | ||
{ | ||
files: ["**/*.ts"], | ||
|
||
rules: { | ||
"@typescript-eslint/explicit-function-return-type": "error", | ||
"@stylistic/comma-spacing": "error", | ||
|
||
"@stylistic/quotes": [ | ||
"error", "double", { | ||
avoidEscape: true | ||
} | ||
], | ||
|
||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": ["error"], | ||
|
||
"@typescript-eslint/consistent-type-assertions": [ | ||
"error", { | ||
assertionStyle: "angle-bracket", | ||
objectLiteralTypeAssertions: "never" | ||
} | ||
] | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// bun doesn't seem to look for package.json for relative path imports | ||
export * from "./src"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,18 +24,21 @@ | |
"author": "AshyBoxy <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"discord.js": "^14.13.0", | ||
"discord.js": "^14.16.3", | ||
"leveldown": "^6.1.1", | ||
"levelup": "^5.1.1", | ||
"resolve": "^1.22.8" | ||
}, | ||
"devDependencies": { | ||
"@types/leveldown": "^4.0.4", | ||
"@types/levelup": "^5.1.3", | ||
"@types/node": "^20.12.7", | ||
"@typescript-eslint/eslint-plugin": "^6.6.0", | ||
"@typescript-eslint/parser": "^6.6.0", | ||
"eslint": "^8.48.0", | ||
"typescript": "^5.2.2" | ||
"@types/leveldown": "^4.0.6", | ||
"@types/levelup": "^5.1.5", | ||
"@types/node": "^22.8.6", | ||
"eslint": "^9.14.0", | ||
"@eslint/eslintrc": "^3.1.0", | ||
"@eslint/js": "^9.14.0", | ||
"@stylistic/eslint-plugin": "^2.10.1", | ||
"globals": "^15.11.0", | ||
"typescript": "^5.6.3", | ||
"typescript-eslint": "^8.12.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.