Skip to content

Commit c6a62cb

Browse files
committed
build: remove nursery biome rules
1 parent 1595aea commit c6a62cb

File tree

11 files changed

+11
-13
lines changed

11 files changed

+11
-13
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,23 @@ module.exports = {
2525
tick: true,
2626
jest: true,
2727
},
28+
parserOptions: {
29+
EXPERIMENTAL_useProjectService: true,
30+
},
2831
rules: {
2932
'react-hooks/exhaustive-deps': [
3033
'warn',
3134
{additionalHooks: ADDITIONAL_HOOKS_TO_CHECK_DEPS_FOR},
3235
],
3336
...(!isRelaxed && !isCi ? strictRulesNotCi : {}),
3437

38+
// TODO(@anonrig): Move this to eslint-config-sentry-app
39+
'@typescript-eslint/consistent-type-imports': [
40+
'error',
41+
{fixStyle: 'separate-type-imports', prefer: 'type-imports'},
42+
],
43+
'@typescript-eslint/consistent-type-exports': ['error'],
44+
3545
// TODO(@anonrig): Remove these rules from eslint-sentry-config.
3646
'import/no-nodejs-modules': 'off',
3747
semi: 'off',

biome.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
},
2727
"nursery": {
2828
"noDuplicateJsonKeys": "error",
29-
"noNodejsModules": "error",
30-
"useExportType": "error",
31-
"useImportType": "error"
29+
"noNodejsModules": "error"
3230
},
3331
"suspicious": {
3432
"noDebugger": "error",

static/app/components/alerts/onDemandMetricAlert.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type React from 'react';
21
import styled from '@emotion/styled';
32

43
import Alert from 'sentry/components/alert';

static/app/components/dropdownAutoComplete/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type React from 'react';
21
import {useCallback, useState} from 'react';
32
import styled from '@emotion/styled';
43

static/app/components/events/eventStatisticalDetector/transactionsDeltaProvider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type React from 'react';
21
import {createContext, useContext} from 'react';
32

43
import {RELATIVE_DAYS_WINDOW} from 'sentry/components/events/eventStatisticalDetector/consts';

static/app/components/events/interfaces/crashContent/exception/actionableItems.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type React from 'react';
21
import {Fragment, useEffect, useMemo, useState} from 'react';
32
import styled from '@emotion/styled';
43
import startCase from 'lodash/startCase';

static/app/components/profiling/flamegraph/deprecatedAggregateFlamegraph.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {ReactElement} from 'react';
2-
import type React from 'react';
32
import {Fragment, useEffect, useLayoutEffect, useMemo, useState} from 'react';
43
import styled from '@emotion/styled';
54
import * as Sentry from '@sentry/react';

static/app/components/profiling/flamegraph/flamegraphDrawer/flamegraphTreeTable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type React from 'react';
21
import {useCallback, useEffect, useMemo, useState} from 'react';
32
import styled from '@emotion/styled';
43

static/app/utils/onDemandMetrics/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type React from 'react';
2-
31
import type {ParseResult, TokenResult} from 'sentry/components/searchSyntax/parser';
42
import {parseSearch, Token} from 'sentry/components/searchSyntax/parser';
53
import type {FieldKey} from 'sentry/utils/fields';

static/app/utils/performance/contexts/pageAlert.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type React from 'react';
21
import {createContext, Fragment, useContext, useState} from 'react';
32
import type {Theme} from '@emotion/react';
43

0 commit comments

Comments
 (0)