Skip to content

Commit

Permalink
chore: use biome for formatting and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman committed Aug 15, 2024
1 parent 7029173 commit 886ff26
Show file tree
Hide file tree
Showing 78 changed files with 710 additions and 3,059 deletions.
4 changes: 0 additions & 4 deletions frontend/.eslintignore

This file was deleted.

74 changes: 0 additions & 74 deletions frontend/.eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Preview, ReactRenderer } from "@storybook/react";
import { withThemeByClassName } from '@storybook/addon-themes';
import type { Preview, ReactRenderer } from "@storybook/react";
import '../src/index.css';

const preview: Preview = {
Expand Down
45 changes: 45 additions & 0 deletions frontend/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": true,
"ignore": ["./node_modules", "./dist", "./src/protos"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"useKeyWithClickEvents": "off"
},
"correctness": {
"useExhaustiveDependencies": "off"
},
"suspicious": {
"noArrayIndexKey": "off"
}
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx", "src/**/*.cjs", "src/**/*.mjs"],
"ignore": ["./node_modules", "./dist", "./src/protos"]
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 160,
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx", "src/**/*.cjs", "src/**/*.mjs"],
"ignore": ["./node_modules", "./dist", "./src/protos"]
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"indentStyle": "space",
"quoteStyle": "single",
"jsxQuoteStyle": "single"
}
},
"json": {
"formatter": {
"indentStyle": "space",
"indentWidth": 2
}
}
}
Loading

0 comments on commit 886ff26

Please sign in to comment.