Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbucket committed Jan 19, 2025
1 parent 109552b commit d0e0e31
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 225 deletions.
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": false,
"tabWidth": 4,
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 100
}
14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


/** @type {import('eslint').Linter.Config[]} */
export default [
{ignores: ["node_modules/*", "docs/*", "dist/*", "src/**/*.test.ts"]},
{files: ["**/*.{js,mjs,cjs,ts}"]},
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,27 @@
"redis": "^4.3.0"
},
"devDependencies": {
"@eslint/js": "^9.18.0",
"@types/chai": "4.3.3",
"@types/debug": "4.1.7",
"@types/generic-pool": "3.1.11",
"@types/mocha": "9.1.1",
"@types/node": "17.0.23",
"@types/proxyquire": "1.3.28",
"@types/sinon": "10.0.13",
"@typescript-eslint/eslint-plugin": "^8.20.0",
"@typescript-eslint/parser": "^8.20.0",
"c8": "7.12.0",
"chai": "4.3.6",
"eslint": "^9.18.0",
"globals": "^15.14.0",
"mocha": "10.0.0",
"prettier": "^3.4.2",
"proxyquire": "2.1.3",
"sinon": "14.0.0",
"typedoc": "0.23.13",
"typescript": "4.8.2"
"typescript": "4.8.2",
"typescript-eslint": "^8.20.0"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit d0e0e31

Please sign in to comment.