Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Jan 15, 2024
1 parent 571b85d commit 5c202eb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 31 deletions.
14 changes: 3 additions & 11 deletions packages/forgetti/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
"name": "forgetti",
"type": "module",
"version": "0.8.0",
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"engines": {
"node": ">=10"
},
"license": "MIT",
"keywords": [
"pridepack"
],
"keywords": ["pridepack"],
"devDependencies": {
"@babel/core": "^7.23.7",
"@types/babel__core": "^7.20.5",
Expand All @@ -36,7 +31,6 @@
"prepublishOnly": "pridepack clean && pridepack build",
"build": "pridepack build",
"type-check": "pridepack check",
"lint": "pridepack lint",
"clean": "pridepack clean",
"watch": "pridepack watch",
"start": "pridepack start",
Expand All @@ -60,9 +54,7 @@
"private": false,
"typesVersions": {
"*": {
"runtime": [
"./dist/types/runtime/index.d.ts"
]
"runtime": ["./dist/types/runtime/index.d.ts"]
}
},
"types": "./dist/types/src/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/forgetti/src/core/is-constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ function isJSXElementConstant(
);
}

// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <explanation>
function uncachedIsConstant(
instance: OptimizerInstance,
path: babel.NodePath<t.Expression>,
Expand Down
2 changes: 0 additions & 2 deletions packages/forgetti/src/core/optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default class Optimizer {
* used as a dependency and so it must be compared to its memoized
* version.
*/
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <explanation>
createMemo(
current: t.Expression,
dependencies?: t.Expression | (t.Expression | undefined)[] | boolean,
Expand Down Expand Up @@ -905,7 +904,6 @@ export default class Optimizer {
return optimizedExpr(path.node);
}

// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <explanation>
optimizeExpression(path: babel.NodePath<t.Expression>): OptimizedExpression {
if (shouldSkipNode(path.node)) {
return optimizedExpr(path.node, undefined, true);
Expand Down
10 changes: 2 additions & 8 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@
"types": "./dist/types/index.d.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"engines": {
"node": ">=10"
},
"license": "MIT",
"keywords": [
"pridepack"
],
"keywords": ["pridepack"],
"name": "rollup-plugin-forgetti",
"devDependencies": {
"@types/babel__core": "^7.20.5",
Expand All @@ -48,7 +43,6 @@
"prepublish": "pridepack clean && pridepack build",
"build": "pridepack build",
"type-check": "pridepack check",
"lint": "pridepack lint",
"clean": "pridepack clean",
"watch": "pridepack watch"
},
Expand Down
11 changes: 2 additions & 9 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,12 @@
"types": "./dist/types/index.d.ts"
}
},
"files": [
"dist",
"src"
],
"files": ["dist", "src"],
"engines": {
"node": ">=10"
},
"license": "MIT",
"keywords": [
"pridepack",
"babel"
],
"keywords": ["pridepack", "babel"],
"name": "vite-plugin-forgetti",
"devDependencies": {
"@types/babel__core": "^7.20.5",
Expand All @@ -49,7 +43,6 @@
"prepublish": "pridepack clean && pridepack build",
"build": "pridepack build",
"type-check": "pridepack check",
"lint": "pridepack lint",
"clean": "pridepack clean",
"watch": "pridepack watch"
},
Expand Down

0 comments on commit 5c202eb

Please sign in to comment.