Skip to content

Commit

Permalink
chore: revise project configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhr committed Sep 9, 2024
1 parent 39b9f73 commit 5afb621
Show file tree
Hide file tree
Showing 44 changed files with 3,600 additions and 2,870 deletions.
18 changes: 8 additions & 10 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"prefer-arrow-functions/prefer-arrow-functions": "warn",
"no-fallthrough": "off",
"no-constant-condition": "off",
"no-empty-pattern": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-var-requires": "off",
Expand All @@ -38,7 +39,12 @@
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-unnecessary-condition": "warn",
"no-empty-pattern": "off",
"@typescript-eslint/consistent-type-imports": ["warn", { "fixStyle": "inline-type-imports" }],
"@typescript-eslint/consistent-type-exports": [
"warn",
{ "fixMixedExportsWithInlineTypeSpecifier": true }
],
"import/no-duplicates": ["warn", { "prefer-inline": true }],
"import/first": "warn",
"import/exports-last": "warn",
"import/no-anonymous-default-export": "warn",
Expand All @@ -54,13 +60,5 @@
"unused-imports/no-unused-imports": "warn",
"consistent-default-export-name/default-export-match-filename": "warn",
"consistent-default-export-name/default-import-match-filename": "warn"
},
"overrides": [
{
"files": ["*.cmd.ts"],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
]
}
}
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pnpm lint-staged || exit 1

for FILE in `git diff --cached --name-only`; do
if [ -f $FILE ]; then
if [ -f $FILE ] && [ ! -L $FILE ]; then
perl -pi -e 'chomp if eof' $FILE
git add $FILE
fi
Expand Down
6 changes: 3 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
deno 1.33.3
nodejs 20.1.0
pnpm 8.5.0
deno 1.45.2
nodejs 20.11.1
just 1.16.0
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.removeFinalNewlines": true,
"files.associations": {
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SPDX-License-Identifier: CC0-1.0
6 changes: 4 additions & 2 deletions src/Distree.ts → Distree.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { isPlainObject } from "./isPlainObject.ts"
import { normalizePath } from "./normalizePath.ts"
// SPDX-License-Identifier: MPL-2.0

import { isPlainObject } from "./utils/isPlainObject.ts"
import { normalizePath } from "./utils/normalizePath.ts"

/**
* A frozen plain object that accepts paths as index reference. It also supports `Symbol.iterator` interface that enumerates nested values.
Expand Down
Loading

0 comments on commit 5afb621

Please sign in to comment.