Skip to content

Commit

Permalink
replace biome with prettier and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
encryptedDegen committed Dec 20, 2024
1 parent 309ff62 commit 136d813
Show file tree
Hide file tree
Showing 217 changed files with 3,590 additions and 4,020 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
* text=auto eol=lf
.vscode/*.json linguist-language=JSON-with-Comments
biome.json linguist-language=JSON-with-Comments
*.lockb binary diff=lockb
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 120,
"arrowParens": "always"
}
14 changes: 0 additions & 14 deletions .vscode/extensions.json

This file was deleted.

40 changes: 0 additions & 40 deletions .vscode/settings.json

This file was deleted.

138 changes: 0 additions & 138 deletions biome.json

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
6 changes: 2 additions & 4 deletions env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ export const EnvironmentVariableSchema = v.object({
APP_VERSION: v.string(),
EFP_API_URL: v.string('EFP_API_URL must be a string', [v.url()]),
NEXT_PUBLIC_EFP_API_URL: v.string('NEXT_PUBLIC_EFP_API_URL must be a string', [v.url()]),
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: v.string(
'NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID must be a string'
)
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: v.string('NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID must be a string'),
})

export type EnvironmentVariable = v.Input<typeof EnvironmentVariableSchema>

export const {
success,
output: env,
issues
issues,
} = v.safeParse(EnvironmentVariableSchema, process.env, { abortEarly: true, abortPipeEarly: true })

if (!success) {
Expand Down
34 changes: 34 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import globals from 'globals'
import tseslint from 'typescript-eslint'
import pluginReact from 'eslint-plugin-react'
import eslintConfigPrettier from 'eslint-config-prettier'

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
{ ignores: ['public/*', 'node_modules/*', '.next/*'] },
{ languageOptions: { globals: globals.browser } },
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
settings: {
react: {
version: 'detect',
},
},
},
{
rules: {
'react/prop-types': 'off',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'react/no-array-index-key': 'off',
'react/no-unknown-property': 'off',
'typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
},
},
eslintConfigPrettier,
]
Loading

0 comments on commit 136d813

Please sign in to comment.