Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ pyproject.toml @getsentry/owners-pytho
/.githib/worksflows/frontend.yml @getsentry/owners-js-build
/.github/file-filters.yml @getsentry/owners-js-build
babel.config.* @getsentry/owners-js-build
biome.json @getsentry/owners-js-build
build-utils/ @getsentry/owners-js-build
eslint.config.mjs @getsentry/owners-js-build
jest.config.ts @getsentry/owners-js-build
Expand Down
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,6 @@ repos:
# additional_dependencies does not install a flattened dependency tree which is needed by,
# for example, our eslint setup.

- id: biome
name: biome (javascript, typescript, json)
language: system
files: \.(jsx?|tsx?|css)$
entry: ./node_modules/.bin/biome check --log-level=error --write --files-ignore-unknown=true --no-errors-on-unmatched

- id: eslint
name: eslint
language: system
Expand All @@ -129,7 +123,6 @@ repos:
- id: prettier
name: prettier (yaml, markdown, ts, tsx, js, jsx, css)
language: system
# TODO: Remove tsx and jsx when Biome supports styled CSS formatting.
types_or: [yaml, markdown, ts, tsx, javascript, jsx, css]
entry: ./node_modules/.bin/prettier --log-level=error --write
# https://pre-commit.com/#regular-expressions
Expand Down
2 changes: 0 additions & 2 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

!static
!src
!src/sentry
Expand All @@ -13,7 +12,6 @@
!jest.config.js
!now.json
!package.json
!biome.json
!stylelint.config.js
!tsconfig.json
!config
Expand Down
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// for the documentation about the extensions.json format
"recommendations": [
"esbenp.prettier-vscode",
"biomejs.biome",
"mkhl.direnv",
"ms-python.python",
"ms-python.isort",
Expand Down
14 changes: 4 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.fixAll.eslint": "explicit"
}
},
Expand Down Expand Up @@ -60,21 +59,15 @@
"editor.detectIndentation": false,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit"
}
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

"[yaml]": {
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit"
}
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

"[markdown]": {
Expand Down Expand Up @@ -105,5 +98,6 @@
"python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
"python.testing.pytestArgs": ["tests"],
"python.analysis.autoImportCompletions": true,
"prettier.configPath": "package.json"
"prettier.configPath": "package.json",
"biome.enabled": false
}
191 changes: 0 additions & 191 deletions biome.json

This file was deleted.

4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import typescriptSortKeys from 'eslint-plugin-typescript-sort-keys';
import unicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
import invariant from 'invariant';
// biome-ignore lint/correctness/noNodejsModules: Need to get the list of things!
import {builtinModules} from 'node:module';
import typescript from 'typescript-eslint';

Expand All @@ -45,6 +44,9 @@ export const typeAwareLintRules = {
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-array-delete': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
},
};

Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@codecov/webpack-plugin": "^1.8.0",
"@emotion/eslint-plugin": "^11.12.0",
"@eslint/compat": "^1.2.7",
Expand Down Expand Up @@ -240,14 +239,12 @@
"test-debug": "node --inspect-brk scripts/test.js --runInBand",
"test-precommit": "node scripts/test.js --bail --findRelatedTests -u",
"test-staged": "node scripts/test.js --findRelatedTests $(git diff --name-only --cached)",
"lint": "yarn lint:biome && yarn lint:prettier && yarn lint:js && yarn lint:css",
"lint": "yarn lint:prettier && yarn lint:js && yarn lint:css",
"lint:js": "eslint",
"lint:css": "stylelint '**/*.[jt]sx'",
"lint:biome": "biome check .",
"lint:prettier": "prettier \"**/*.md\" \"**/*.yaml\" \"**/*.[jt]s(x)?\" --check --log-level=error",
"fix": "yarn fix:biome && yarn fix:prettier && yarn fix:eslint",
"fix": "yarn fix:prettier && yarn fix:eslint",
"fix:eslint": "eslint --fix",
"fix:biome": "biome check . --write",
"fix:prettier": "prettier \"**/*.md\" \"**/*.yaml\" \"**/*.[jt]s(x)?\" --write --log-level=error",
"dev": "(yarn check --verify-tree || yarn install --check-files) && sentry devserver",
"dev-ui": "SENTRY_UI_DEV_ONLY=1 SENTRY_WEBPACK_PROXY_PORT=7999 SENTRY_UI_HOT_RELOAD=1 webpack serve",
Expand Down
4 changes: 2 additions & 2 deletions static/app/components/charts/groupStatusChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ function GroupStatusChart({
emphasisColors: [string] | undefined;
series: Series[];
}>(() => {
if (!stats || !stats.length) {
if (!stats?.length) {
return {colors: undefined, emphasisColors: undefined, series: []};
}
const max = Math.max(...stats.map(p => p[1]));

const formattedMarkLine = formatAbbreviatedNumber(max);

if (showSecondaryPoints && secondaryStats && secondaryStats.length) {
if (showSecondaryPoints && secondaryStats?.length) {
const series: Series[] = [
{
seriesName: t('Total Events'),
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/charts/pieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class PieChart extends Component<Props> {

render() {
const {series, theme, ...props} = this.props;
if (!series || !series.length) {
if (!series?.length) {
return null;
}
if (series.length > 1) {
Expand Down
4 changes: 2 additions & 2 deletions static/app/components/charts/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,15 @@ const DEFAULT_GEO_DATA = {
data: [],
};
export const processTableResults = (tableResults?: TableDataWithTitle[]) => {
if (!tableResults || !tableResults.length) {
if (!tableResults?.length) {
return DEFAULT_GEO_DATA;
}

const tableResult = tableResults[0]!;

const {data} = tableResult;

if (!data || !data.length) {
if (!data?.length) {
return DEFAULT_GEO_DATA;
}

Expand Down
2 changes: 1 addition & 1 deletion static/app/components/discover/transactionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function TransactionsTable(props: Props) {
if (isLoading) {
return cells;
}
if (!tableData || !tableData.meta || !tableData.data) {
if (!tableData?.meta || !tableData.data) {
return cells;
}

Expand Down
4 changes: 1 addition & 3 deletions static/app/components/events/autofix/autofixChanges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,7 @@ export function AutofixChanges({
</ButtonBar>
)}
{prsMade &&
(step.changes.length === 1 &&
step.changes[0] &&
step.changes[0].pull_request?.pr_url ? (
(step.changes.length === 1 && step.changes[0]?.pull_request?.pr_url ? (
<LinkButton
size="xs"
priority="primary"
Expand Down
2 changes: 1 addition & 1 deletion static/app/components/events/autofix/autofixDiff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ export function AutofixDiff({
previousInsightCount,
isExpandable = true,
}: AutofixDiffProps) {
if (!diff || !diff.length) {
if (!diff?.length) {
return null;
}

Expand Down
Loading
Loading