Skip to content

Commit

Permalink
chore: Updated dependencies (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahradelahi committed Aug 19, 2024
1 parent df44c86 commit 089f29d
Show file tree
Hide file tree
Showing 4 changed files with 518 additions and 828 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

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

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: ['**/dist', '**/dev'],
},
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended'),
{
languageOptions: {
globals: {
...globals.node,
},

ecmaVersion: 'latest',
sourceType: 'module',
},

rules: {
'no-console': 'error',
'@typescript-eslint/semi': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
files: ['**/*.test.ts', '**/*.spec.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
},
},
];
27 changes: 15 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"/src/**/*",
"!**/*.test.*"
],
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.7.0",
"scripts": {
"build": "tsup",
"typecheck": "tsc --noEmit",
Expand All @@ -75,21 +75,24 @@
"react": "18 || 19"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"@sindresorhus/tsconfig": "^6.0.0",
"@types/chai": "^4.3.16",
"@types/chai": "^4.3.17",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.11",
"@types/react": "^18",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@types/node": "^22.4.1",
"@types/react": "^18.3.3",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"chai": "^5.1.1",
"eslint": "^8.57.0",
"mocha": "^10.7.0",
"next": "^14",
"eslint": "^9.9.0",
"globals": "^15.9.0",
"mocha": "^10.7.3",
"next": "^14.2.5",
"prettier": "^3.3.3",
"react": "^18",
"tsup": "8.1.2",
"tsx": "^4.16.2",
"typescript": "^5.5.3"
"react": "^18.3.1",
"tsup": "^8.2.4",
"tsx": "^4.17.0",
"typescript": "^5.5.4"
}
}
Loading

0 comments on commit 089f29d

Please sign in to comment.