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:
7
packages/backend/eslint.config.js
Normal file
7
packages/backend/eslint.config.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { config } from '@sgse-app/eslint-config/convex';
|
||||
import { defineConfig } from 'eslint/config';
|
||||
|
||||
/** @type {import("eslint").Linter.Config} */
|
||||
export default defineConfig([
|
||||
...config,
|
||||
]);
|
||||
@@ -9,6 +9,7 @@
|
||||
"license": "ISC",
|
||||
"description": "",
|
||||
"devDependencies": {
|
||||
"@sgse-app/eslint-config": "*",
|
||||
"@types/cookie": "^1.0.0",
|
||||
"@types/estree": "^1.0.8",
|
||||
"@types/nodemailer": "^7.0.3",
|
||||
@@ -17,7 +18,8 @@
|
||||
"@types/pako": "^2.0.4",
|
||||
"@types/raf": "^3.4.3",
|
||||
"@types/trusted-types": "^2.0.7",
|
||||
"typescript": "catalog:"
|
||||
"typescript": "catalog:",
|
||||
"eslint": "catalog:"
|
||||
},
|
||||
"dependencies": {
|
||||
"@convex-dev/better-auth": "^0.9.7",
|
||||
|
||||
13
packages/eslint-config/base.js
Normal file
13
packages/eslint-config/base.js
Normal 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,
|
||||
]
|
||||
7
packages/eslint-config/convex.js
Normal file
7
packages/eslint-config/convex.js
Normal 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,
|
||||
]
|
||||
28
packages/eslint-config/package.json
Normal file
28
packages/eslint-config/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
16
packages/eslint-config/svelte.js
Normal file
16
packages/eslint-config/svelte.js
Normal 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'
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user