Skip to content

Commit 98eed42

Browse files
Update ESLint configuration to allow default projects in test directories
1 parent 1dccfe1 commit 98eed42

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const config = tsEslint.config([
145145
languageOptions: {
146146
parserOptions: {
147147
projectService: {
148-
allowDefaultProject: ['eslint.config.ts', 'knip.ts'],
148+
allowDefaultProject: ['eslint.config.ts', 'knip.ts', 'node_package/tests/**/*.ts'],
149149
// Needed because `import * as ... from` instead of `import ... from` doesn't work in this file
150150
// for some imports.
151151
defaultProject: 'tsconfig.eslint.json',

node_package/tests/serverRenderReactComponent.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unused-vars */
2-
31
import * as React from 'react';
42
import serverRenderReactComponent from '../src/serverRenderReactComponent';
53
import ComponentRegistry from '../src/ComponentRegistry';

0 commit comments

Comments
 (0)