diff --git a/apps/oxfmt/tsconfig.json b/apps/oxfmt/tsconfig.json index 7c201c50ab2b8..34ee727bb88df 100644 --- a/apps/oxfmt/tsconfig.json +++ b/apps/oxfmt/tsconfig.json @@ -6,8 +6,7 @@ "noEmit": true, "target": "ESNext", "strict": true, - "skipLibCheck": true, - "noUnusedLocals": true + "skipLibCheck": true }, "include": ["scripts", "conformance/*.ts", "src-js", "test/**/*.ts"], "exclude": ["test/**/fixtures"] diff --git a/apps/oxlint/src-js/visitor.test-d.ts b/apps/oxlint/src-js/visitor.test-d.ts index d4365e751d570..fefd1fdf4f442 100644 --- a/apps/oxlint/src-js/visitor.test-d.ts +++ b/apps/oxlint/src-js/visitor.test-d.ts @@ -4,25 +4,23 @@ import type { Node, CallExpression } from "./generated/types.d.ts"; // Empty visitor object is allowed const emptyVisitor = {}; -export type _Empty = ExpectTrue>; +type _Empty = ExpectTrue>; // Specific node visitors have a stricter type for the parameter const callExpressionVisitor = { CallExpression: (_node: CallExpression) => {}, }; -export type _CallExpr = ExpectTrue>; +type _CallExpr = ExpectTrue>; const callExpressionExitVisitor = { "CallExpression:exit": (_node: CallExpression) => {}, }; -export type _CallExprExit = ExpectTrue< - ExpectExtends ->; +type _CallExprExit = ExpectTrue>; const debuggerStatementWrongTypeVisitor = { DebuggerStatement: (_node: CallExpression) => {}, }; -export type _DebuggerStmtWrongType = ExpectFalse< +type _DebuggerStmtWrongType = ExpectFalse< ExpectExtends >; @@ -31,13 +29,13 @@ const selectorsVisitor = { "FunctionExpression > Identifier": (_node: Node) => {}, ":matches(FunctionExpression, FunctionDeclaration)": (_node: Node) => {}, }; -export type _Selectors = ExpectTrue>; +type _Selectors = ExpectTrue>; // Visitor functions can omit the node parameter const callExpressionNoParamVisitor = { CallExpression: () => {}, }; -export type _CallExprNoParam = ExpectTrue< +type _CallExprNoParam = ExpectTrue< ExpectExtends >; @@ -47,7 +45,7 @@ export type _CallExprNoParam = ExpectTrue< const callExpressionUndefinedVisitor = { CallExpression: undefined, }; -export type _CallExprUndefined = ExpectTrue< +type _CallExprUndefined = ExpectTrue< ExpectExtends >; @@ -55,14 +53,14 @@ export type _CallExprUndefined = ExpectTrue< const invalidNullVisitor = { CallExpression: null, }; -export type _InvalidNull = ExpectFalse>; +type _InvalidNull = ExpectFalse>; const invalidObjectVisitor = { CallExpression: {}, }; -export type _InvalidObject = ExpectFalse>; +type _InvalidObject = ExpectFalse>; const invalidStringVisitor = { CallExpression: "oh dear", }; -export type _InvalidString = ExpectFalse>; +type _InvalidString = ExpectFalse>; diff --git a/apps/oxlint/tsconfig.json b/apps/oxlint/tsconfig.json index 295145f4b589c..1454365bb72b3 100644 --- a/apps/oxlint/tsconfig.json +++ b/apps/oxlint/tsconfig.json @@ -7,8 +7,7 @@ "target": "ESNext", "allowImportingTsExtensions": true, "strict": true, - "skipLibCheck": true, - "noUnusedLocals": true + "skipLibCheck": true }, "exclude": ["node_modules", "fixtures", "test/fixtures/*/files", "conformance/submodules"] } diff --git a/napi/minify/tsconfig.json b/napi/minify/tsconfig.json index 8a377549cd7e5..c8543423caa52 100644 --- a/napi/minify/tsconfig.json +++ b/napi/minify/tsconfig.json @@ -4,7 +4,6 @@ "module": "Preserve", "moduleResolution": "Bundler", "noEmit": true, - "target": "ESNext", - "noUnusedLocals": true + "target": "ESNext" } } diff --git a/napi/parser/tsconfig.node.json b/napi/parser/tsconfig.node.json index 7bd200d1be05c..6f92afc01d60b 100644 --- a/napi/parser/tsconfig.node.json +++ b/napi/parser/tsconfig.node.json @@ -6,7 +6,6 @@ "noEmit": true, "target": "ESNext", "allowImportingTsExtensions": true, - "noUnusedLocals": true, "skipLibCheck": true, "strict": false }, diff --git a/napi/transform/tsconfig.json b/napi/transform/tsconfig.json index 8a377549cd7e5..c8543423caa52 100644 --- a/napi/transform/tsconfig.json +++ b/napi/transform/tsconfig.json @@ -4,7 +4,6 @@ "module": "Preserve", "moduleResolution": "Bundler", "noEmit": true, - "target": "ESNext", - "noUnusedLocals": true + "target": "ESNext" } } diff --git a/tasks/e2e/tsconfig.json b/tasks/e2e/tsconfig.json index 089ac8a583fcb..8b9078dd05cea 100644 --- a/tasks/e2e/tsconfig.json +++ b/tasks/e2e/tsconfig.json @@ -2,7 +2,6 @@ "compilerOptions": { "experimentalDecorators": true, "module": "esnext", - "noUnusedLocals": true, "strict": false } }