refactor: remove biome configuration and update dependencies

- Deleted the obsolete biome.json file to streamline project configuration.
- Updated package.json and bun.lock to include new ESLint and Prettier dependencies for improved code quality and consistency.
- Added ESLint configuration package for better linting support across the project.
- Cleaned up various package dependencies to ensure a more maintainable and efficient codebase.
This commit is contained in:
2025-11-08 17:16:43 -03:00
parent 4e30d6a2ba
commit 57b5f6821b
15 changed files with 2951 additions and 2528 deletions

View File

@@ -0,0 +1,13 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
export const config = [
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: { globals: { ...globals.browser, ...globals.node } },
},
tseslint.configs.recommended,
]

View File

@@ -0,0 +1,7 @@
import convexPlugin from "@convex-dev/eslint-plugin";
import { config as baseConfig } from "./base.js";
export const config =[
...baseConfig,
...convexPlugin.configs.recommended,
]

View File

@@ -0,0 +1,28 @@
{
"name": "@sgse-app/eslint-config",
"version": "0.0.0",
"type": "module",
"private": true,
"exports": {
"./base": "./base.js",
"./convex": "./convex.js",
"./svelte": "./svelte.js"
},
"devDependencies": {
"@eslint/js": "catalog:",
"@next/eslint-plugin-next": "^15.5.0",
"eslint": "catalog:",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-turbo": "^2.6.0",
"globals": "^16.5.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.46.3"
},
"dependencies": {
"@convex-dev/eslint-plugin": "^1.0.0",
"eslint-plugin-svelte": "^3.13.0"
}
}

View File

@@ -0,0 +1,16 @@
import svelte from "eslint-plugin-svelte";
import ts from "typescript-eslint";
import { config as baseConfig } from "./base.js";
export const config = [
...baseConfig,
...svelte.configs.recommended,
...svelte.configs.prettier,
{
rules: {
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
// see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
'no-undef': 'off'
}
}
]