Skip to content

Commit

Permalink
chore: Enable useProjectService (#16192)
Browse files Browse the repository at this point in the history
* useProjectService

* Update eslint.config.js

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>

---------

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
  • Loading branch information
liuxingbaoyu and JoshuaKGoldberg committed Dec 26, 2023
1 parent d292822 commit 365aa94
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Expand Up @@ -88,7 +88,7 @@ module.exports = [
parser: parserTypeScriptESLint,
parserOptions: {
allowAutomaticSingleRunInference: true,
project: "./tsconfig.eslint.json",
EXPERIMENTAL_useProjectService: true,
},
},
plugins: {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers/setFunctionName.ts
Expand Up @@ -8,7 +8,7 @@ export default function setFunctionName<T extends Function>(
): T {
if (typeof name === "symbol") {
name = name.description;
name = name ? "[" + (name as string) + "]" : "";
name = name ? "[" + name + "]" : "";
}
// In some older browsers .name was non-configurable, here we catch any
// errors thrown by defineProperty.
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-proposal-import-defer/src/index.ts
Expand Up @@ -95,7 +95,7 @@ export default declare(api => {
(child.isExportNamedDeclaration() && child.node.source !== null) ||
child.isExportAllDeclaration()
) {
const specifier = child.node.source!.value;
const specifier = child.node.source.value;
if (!eagerImports.has(specifier)) {
eagerImports.add(specifier);
}
Expand Down
6 changes: 0 additions & 6 deletions tsconfig.eslint.json

This file was deleted.

0 comments on commit 365aa94

Please sign in to comment.