Skip to content

Commit

Permalink
chore: npm run format (#175)
Browse files Browse the repository at this point in the history
chore: npm run format
  • Loading branch information
scagood committed Jan 29, 2024
1 parent fbc9e7b commit 17e658e
Show file tree
Hide file tree
Showing 12 changed files with 288 additions and 294 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-deprecated-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ function toName(type, path) {
return type === ReferenceTracker.CALL
? `${baseName}()`
: type === ReferenceTracker.CONSTRUCT
? `new ${baseName}()`
: baseName
? `new ${baseName}()`
: baseName
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures/configs/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"noEmit": true,
"allowImportingTsExtensions": true
}
"allowImportingTsExtensions": true,
},
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"dependencies": {
}
"dependencies": {}
}
4 changes: 2 additions & 2 deletions tests/fixtures/no-missing/ts-allow-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"noEmit": true,
"allowImportingTsExtensions": true
}
"allowImportingTsExtensions": true,
},
}
2 changes: 1 addition & 1 deletion tests/fixtures/no-missing/ts-extends/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["./base.tsconfig.json"]
"extends": ["./base.tsconfig.json"],
}
6 changes: 3 additions & 3 deletions tests/fixtures/no-missing/ts-paths/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"paths": {
"@direct": ["./some/where.ts"],
"@wild/*": ["./some/*"]
}
}
"@wild/*": ["./some/*"],
},
},
}
4 changes: 2 additions & 2 deletions tests/fixtures/no-missing/ts-preserve/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"compilerOptions": {
"jsx": "preserve"
}
"jsx": "preserve",
},
}
4 changes: 2 additions & 2 deletions tests/fixtures/no-missing/ts-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"compilerOptions": {
"jsx": "react"
}
"jsx": "react",
},
}
2 changes: 1 addition & 1 deletion tests/fixtures/no-unpublished-bin/multi-ok/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"a": "a.js",
"b": "b.js"
}
}
}
2 changes: 1 addition & 1 deletion tests/lib/rules/no-exports-assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ new RuleTester({
globals: {
exports: "writable",
module: "readonly",
}
},
},
}).run("no-exports-assign", rule, {
valid: [
Expand Down
Loading

0 comments on commit 17e658e

Please sign in to comment.