Skip to content

Commit

Permalink
style: lint fix (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Mar 7, 2024
1 parent 090743a commit d1c46c0
Show file tree
Hide file tree
Showing 17 changed files with 1,032 additions and 745 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Returns:

```ts
type TsconfigResult = {

Check warning on line 43 in README.md

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

'TsconfigResult' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 43 in README.md

View workflow job for this annotation

GitHub Actions / Release

'TsconfigResult' is defined but never used. Allowed unused vars must match /^_/u

/**
* The path to the tsconfig.json file
*/
Expand Down Expand Up @@ -195,7 +196,7 @@ import { getTsconfig, createPathsMatcher } from 'get-tsconfig'
const tsconfig = getTsconfig()
const pathsMatcher = createPathsMatcher(tsconfig)
function exampleResolver(request: string) {
const exampleResolver = (request: string) => {

Check warning on line 199 in README.md

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

'exampleResolver' is assigned a value but never used. Allowed unused vars must match /^_/u

Check warning on line 199 in README.md

View workflow job for this annotation

GitHub Actions / Release

'exampleResolver' is assigned a value but never used. Allowed unused vars must match /^_/u
if (pathsMatcher) {
const tryPaths = pathsMatcher(request)

Check warning on line 201 in README.md

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

'tryPaths' is assigned a value but never used. Allowed unused vars must match /^_/u

Check warning on line 201 in README.md

View workflow job for this annotation

GitHub Actions / Release

'tryPaths' is assigned a value but never used. Allowed unused vars must match /^_/u
Expand Down
30 changes: 4 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"name": "Hiroki Osame",
"email": "[email protected]"
},
"type": "module",
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
Expand All @@ -41,7 +41,7 @@
}
},
"scripts": {
"lint": "eslint --cache .",
"lint": "lint --cache --node --ignore-pattern tests/fixtures .",
"build": "pkgroll --minify --target node12.20",
"test": "pnpm build && tsx tests",
"dev": "tsx watch --conditions=development tests",
Expand All @@ -52,11 +52,11 @@
"resolve-pkg-maps": "^1.0.0"
},
"devDependencies": {
"@pvtnbr/eslint-config": "^0.33.0",
"@pvtnbr/eslint-config": "^1.0.3",
"@types/node": "^18.15.10",
"@yarnpkg/pnp": "3.3.1",
"clean-pkg-json": "^1.2.0",
"eslint": "^8.36.0",
"eslint": "^8.57.0",
"execa": "^8.0.1",
"fs-fixture": "^1.2.0",
"is-fs-case-sensitive": "^1.0.0",
Expand All @@ -67,27 +67,5 @@
"tsx": "^4.7.0",
"type-fest": "^4.8.3",
"typescript": "^5.0.4"
},
"eslintConfig": {
"extends": "@pvtnbr/eslint-config",
"ignorePatterns": [
"tests/fixtures"
],
"overrides": [
{
"files": "tests/**/*.ts",
"rules": {
"@typescript-eslint/no-shadow": [
"error",
{
"allow": [
"test",
"describe"
]
}
]
}
}
]
}
}
Loading

0 comments on commit d1c46c0

Please sign in to comment.