Skip to content

Commit

Permalink
[FIX]: TS export types & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
helabenkhalfallah committed Nov 9, 2024
1 parent 1fcfc92 commit 22be3d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore artifacts:
dist/**/*
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default [
...tsEslint.configs.recommended,
{
files: ['src/**/*.js', 'src/**/*.mjs', 'src/**/*.tsx', 'src/**/*.ts'],
ignores: ['**/*.test.js', '*.d.ts'],
rules: {
'max-depth': ['error', 5],
'max-nested-callbacks': ['error', 5],
Expand All @@ -17,5 +16,8 @@ export default [
'max-statements': ['error', 50], // per function
},
},
{
ignores: ['**/*.test.js', '*.d.ts', 'dist/**/*.ts'],
},
eslintPluginPrettierRecommended,
];
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dsa-toolbox",
"version": "0.0.5",
"description": "",
"version": "0.0.7",
"description": "A powerful toolkit for data structures and algorithms in TypeScript, designed for optimal performance and versatility. The toolkit provides implementations of various data structures and algorithms, with a focus on search and sort operations, caching, and probabilistic data structures.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -10,7 +10,7 @@
"README.md"
],
"scripts": {
"build:tsc": "rimraf ./dist && tsc",
"build": "rimraf ./dist && tsc",
"start:dev": "nodemon --exec node --loader ts-node/esm ./benchmarks.ts -- --dev",
"lint": "eslint --config ./eslint.config.mjs --cache-location ./.eslintcache \"./**/*.ts\" --cache",
"lint:fix": "eslint --config ./eslint.config.mjs --cache-location ./.eslintcache \"./**/*.ts\" --cache --fix",
Expand Down
1 change: 0 additions & 1 deletion prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import PrettierImportConfig from '@trivago/prettier-plugin-sort-imports';


/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
Expand Down

0 comments on commit 22be3d5

Please sign in to comment.