Skip to content

Commit

Permalink
[conf] replace prettier with biome and eslint-config-love with axiom
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Jan 7, 2025
1 parent 8ed7c1f commit 90b00e5
Show file tree
Hide file tree
Showing 5 changed files with 15,145 additions and 5,191 deletions.
42 changes: 0 additions & 42 deletions .eslintrc.yml

This file was deleted.

62 changes: 62 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"files": {
"include": ["*.js", "*.mjs", "*.jsx", "*.ts", "*.tsx", "*.json"]
},
"formatter": {
"lineWidth": 120,
"useEditorconfig": true
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "single",
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "none"
}
},
"linter": {
"rules": {
"complexity": {
"useLiteralKeys": "off"
},
"correctness": {
"noUndeclaredDependencies": "error",
"noUndeclaredVariables": "error",
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedVariables": "error",
"useImportExtensions": "error"
},
"performance": {
"noBarrelFile": "error"
},
"style": {
"noDefaultExport": "error",
"noNamespace": "error",
"noNamespaceImport": "error",
"noNegationElse": "error",
"noParameterProperties": "error",
"noShoutyConstants": "error",
"noYodaExpression": "error",
"useBlockStatements": "error",
"useCollapsedElseIf": "error",
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "shorthand"
}
},
"useFilenamingConvention": "error",
"useNamingConvention": "error",
"useNodeAssertStrict": "error"
},
"suspicious": {
"noEmptyBlockStatements": "error"
}
}
},
"organizeImports": {
"enabled": false
}
}
4 changes: 4 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { axiom } from '@2bad/axiom'

// biome-ignore lint/style/noDefaultExport: acceptable for this use case
export default axiom(import.meta.dirname)
Loading

0 comments on commit 90b00e5

Please sign in to comment.