Skip to content

Commit

Permalink
Merge pull request #1364 from opencomponents/biome
Browse files Browse the repository at this point in the history
Move to Biome
  • Loading branch information
ricardo-devis-agullo committed Apr 8, 2024
2 parents 80bf38c + 161f1f3 commit 58ac424
Show file tree
Hide file tree
Showing 184 changed files with 1,526 additions and 2,427 deletions.
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

36 changes: 36 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"trailingComma": "none",
"indentStyle": "space",
"quoteStyle": "single"
}
},
"files": {
"ignore": [
"src/components/oc-client/*",
"test/fixtures/*"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"useLiteralKeys": "off"
},
"style": {
"noParameterAssign": "off",
"noNonNullAssertion": "off",
"useTemplate": "off"
},
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
5 changes: 5 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pre-commit:
commands:
check:
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}'
run: npx biome check --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}

0 comments on commit 58ac424

Please sign in to comment.