Skip to content

Commit

Permalink
Fix: delete dependencies and migration module
Browse files Browse the repository at this point in the history
  • Loading branch information
leteu committed Dec 31, 2024
1 parent 79659fc commit 4f8e834
Show file tree
Hide file tree
Showing 7 changed files with 1,419 additions and 2,462 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc.js

This file was deleted.

50 changes: 50 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["lib", '**/eslint.config.mjs'],
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

ecmaVersion: 5,
sourceType: "commonjs",

parserOptions: {
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",
extraFileExtensions: [".ts"],
},
},

rules: {
"prefer-promise-reject-errors": "off",

quotes: ["warn", "single", {
avoidEscape: true,
}],

"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"no-unused-vars": "off",
"no-debugger": "off",
},
}];
27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "tsc --build",
"clean": "tsc --build --clean",
"publish": "npm run build && npm publish --access=public",
"lint": "eslint --ext .js,.ts --color .",
"lint": "eslint . --color --max-warnings 0",
"format": "prettier --write \"**/*.{ts,md,json}\" --ignore-path .gitignore",
"prettier": "prettier --check \"**/*.{ts,md,json}\" --ignore-path .gitignore",
"test": "vitest"
Expand All @@ -20,19 +20,18 @@
"url": "git+https://github.com/leteu/jwt-decoder.git"
},
"devDependencies": {
"@types/node": "^14.18.63",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"eslint": "8.26.0",
"eslint-config-next": "13.0.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.5.1",
"typescript": "^4.0.5",
"vitest": "^1.0.1"
},
"dependencies": {
"buffer": "^6.0.3"
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.14.0",
"prettier": "^3.4.2",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"keywords": [
"jwt",
Expand Down
Loading

0 comments on commit 4f8e834

Please sign in to comment.