Skip to content

Commit 85db56b

Browse files
committed
Fix: delete dependencies and migration module
1 parent 79659fc commit 85db56b

File tree

7 files changed

+1420
-2463
lines changed

7 files changed

+1420
-2463
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [{
17+
ignores: ["lib", '**/eslint.config.mjs'],
18+
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"), {
19+
plugins: {
20+
"@typescript-eslint": typescriptEslint,
21+
},
22+
23+
languageOptions: {
24+
globals: {
25+
...globals.browser,
26+
...globals.node,
27+
},
28+
29+
ecmaVersion: 5,
30+
sourceType: "commonjs",
31+
32+
parserOptions: {
33+
parser: "/Users/leteu/Dev/jwt-decoder/node_modules/.pnpm/@typescript-eslint+parser@8.19.0_eslint@9.17.0_typescript@5.7.2/node_modules/@typescript-eslint/parser/dist/index.js",
34+
extraFileExtensions: [".ts"],
35+
},
36+
},
37+
38+
rules: {
39+
"prefer-promise-reject-errors": "off",
40+
41+
quotes: ["warn", "single", {
42+
avoidEscape: true,
43+
}],
44+
45+
"@typescript-eslint/explicit-function-return-type": "off",
46+
"@typescript-eslint/no-var-requires": "off",
47+
"no-unused-vars": "off",
48+
"no-debugger": "off",
49+
},
50+
}];

package.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leteu/jwt-decoder",
3-
"version": "1.0.4",
3+
"version": "1.1.0",
44
"description": "JSON Web Tokens decoder",
55
"author": "leteu",
66
"license": "MIT",
@@ -10,7 +10,7 @@
1010
"build": "tsc --build",
1111
"clean": "tsc --build --clean",
1212
"publish": "npm run build && npm publish --access=public",
13-
"lint": "eslint --ext .js,.ts --color .",
13+
"lint": "eslint . --color --max-warnings 0",
1414
"format": "prettier --write \"**/*.{ts,md,json}\" --ignore-path .gitignore",
1515
"prettier": "prettier --check \"**/*.{ts,md,json}\" --ignore-path .gitignore",
1616
"test": "vitest"
@@ -20,19 +20,18 @@
2020
"url": "git+https://github.com/leteu/jwt-decoder.git"
2121
},
2222
"devDependencies": {
23-
"@types/node": "^14.18.63",
24-
"@typescript-eslint/eslint-plugin": "^5.10.0",
25-
"@typescript-eslint/parser": "^5.10.0",
26-
"eslint": "8.26.0",
27-
"eslint-config-next": "13.0.0",
28-
"eslint-config-prettier": "^8.1.0",
29-
"eslint-plugin-prettier": "^4.2.1",
30-
"prettier": "^2.5.1",
31-
"typescript": "^4.0.5",
32-
"vitest": "^1.0.1"
33-
},
34-
"dependencies": {
35-
"buffer": "^6.0.3"
23+
"@eslint/eslintrc": "^3.2.0",
24+
"@eslint/js": "^9.17.0",
25+
"@types/node": "^22.10.2",
26+
"@typescript-eslint/eslint-plugin": "^8.19.0",
27+
"@typescript-eslint/parser": "^8.19.0",
28+
"eslint": "^9.17.0",
29+
"eslint-config-prettier": "^9.1.0",
30+
"eslint-plugin-prettier": "^5.2.1",
31+
"globals": "^15.14.0",
32+
"prettier": "^3.4.2",
33+
"typescript": "^5.7.2",
34+
"vitest": "^2.1.8"
3635
},
3736
"keywords": [
3837
"jwt",

0 commit comments

Comments
 (0)