Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
324 changes: 0 additions & 324 deletions .eslintignore

This file was deleted.

165 changes: 0 additions & 165 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.{js,jsx,ts,tsx}": [
"eslint"
"biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
]
}
23 changes: 0 additions & 23 deletions .prettierrc.js

This file was deleted.

25 changes: 11 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "biomejs.biome",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"editor.formatOnSave": false,
"editor.codeActionsOnSave": [
"source.fixAll.eslint"
],
"eslint.validate": [
"typescript",
"typescriptreact"
],
"prettier.requireConfig": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.biome": "explicit"
},
"prettier.enable": false,
"eslint.enable": false,
"[scss]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
}
}
95 changes: 95 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 120
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error",
"noUndeclaredVariables": "error",
"useExhaustiveDependencies": "off",
"noConstantMathMinMaxClamp": "error",
"noUnusedImports": "error",
"noUnusedFunctionParameters": "error"
},
"style": {
"useConst": "error",
"useSelfClosingElements": "error",
"noNonNullAssertion": "off",
"noYodaExpression": "error",
"useFragmentSyntax": "error",
"useImportType": "off",
"useLiteralEnumMembers": "off"
},
"suspicious": {
"useAwait": "error",
"noConsole": "error",
"noShadowRestrictedNames": "error",
"noExplicitAny": "off",
"noVar": "error",
"noArrayIndexKey": "error",
"noEvolvingTypes": "error"
},
"a11y": {
"noStaticElementInteractions": "error",
"noNoninteractiveElementInteractions": "error",
"useKeyWithClickEvents": "error",
"useButtonType": "error",
"noLabelWithoutControl": "error",
"noAutofocus": "off"
},
"complexity": {
"useLiteralKeys": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "all"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
[
":URL:",
":NODE:",
":BUN:",
":PACKAGE_WITH_PROTOCOL:",
":PACKAGE:",
"!@devtron-labs",
"!@devtron-labs/**"
],
":BLANK_LINE:",
["@devtron-labs", "@devtron-labs/**"],
":BLANK_LINE:",
["@Images", "@Images/**", "@Shared", "@Shared/**", "@Pages", "@Pages/**"],
":BLANK_LINE:",
[":PATH:", "!**/*.css", "!**/*.scss"],
":BLANK_LINE:",
["**/*.css", "**/*.scss"]
]
}
}
}
}
}
}
19 changes: 3 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
},
"scripts": {
"prepare": "husky install",
"lint": "tsc --noEmit && eslint 'src/**/*.{js,jsx,ts,tsx}' --max-warnings 0",
"lint-fix": "eslint 'src/**/*.{js,jsx,ts,tsx}' --fix",
"lint": "tsc --noEmit && biome check src/",
"lint-fix": "biome check --write src/",
"start": "vite --open",
"dev": "node scripts/secrets-mgr.js",
"build": "NODE_OPTIONS=--max_old_space_size=8192 vite build",
Expand All @@ -57,35 +57,22 @@
"not op_mini all"
],
"devDependencies": {
"@biomejs/biome": "2.4.11",
"@playwright/test": "^1.32.1",
"@sentry/cli": "^2.2.0",
"@tanstack/eslint-plugin-query": "^5.91.4",
"@types/node": "^25.5.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@types/react-transition-group": "^4.4.4",
"@types/recompose": "^0.30.10",
"@typescript-eslint/eslint-plugin": "8.3.0",
"@typescript-eslint/parser": "8.3.0",
"@vitejs/plugin-react": "6.0.1",
"env-cmd": "10.1.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^7.0.4",
"json-schema": "^0.4.0",
"lint-staged": "12.5.0",
"mock-socket": "^9.2.1",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.1.1",
"react-draggable": "^4.4.5",
"sass": "^1.69.7",
"sharp": "^0.33.5",
Expand Down
Loading
Loading