-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve DX, create CI/CD pipeline (#1364)
* ci: replace prettier, eslint by biome * ci: update lint fix command * ci: remove tsc from pre-commit hook * ci: add warn for noEmptyBlockStatement rule * ci: try new pre-commit hook * ci: rename lint staged config as mjs * ci: delete prettier and eslint config * ci: apply biome fix * ci: add biome to github actions * ci: pin biome version * ci: apply biome format * ci(fix): remove organize imports * ci(fix): change arg order * ci(fix): change ignore rules * ci: format json * style: organize imports, update biome ignore config * ci: simplify biome config * ci: add eslint ispired rules to biome * Revert "ci: add eslint ispired rules to biome" This reverts commit 0c43559. * style: organize imports
- Loading branch information
1 parent
fc1f8cf
commit 767172e
Showing
205 changed files
with
3,186 additions
and
3,471 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Code check | ||
|
||
on: | ||
pull_request: | ||
branches: ["*"] | ||
|
||
jobs: | ||
quality: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Biome | ||
uses: biomejs/setup-biome@v2 | ||
- name: Run Biome | ||
run: biome ci --reporter=github . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
npm run type-check |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 85, | ||
"attributePosition": "auto" | ||
}, | ||
"files": { | ||
"include": ["src", "cypress"], | ||
"ignore": ["node_modules", ".next", "public", ".out"] | ||
}, | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": false, | ||
"a11y": { "useValidAnchor": "warn" }, | ||
"complexity": { | ||
"noBannedTypes": "error", | ||
"noUselessConstructor": "error", | ||
"noUselessTypeConstraint": "error", | ||
"useLiteralKeys": "error" | ||
}, | ||
"correctness": { | ||
"noInvalidUseBeforeDeclaration": "off", | ||
"noPrecisionLoss": "error", | ||
"noUnusedVariables": "off", | ||
"useArrayLiterals": "off", | ||
"noConstAssign": "off", | ||
"noGlobalObjectCalls": "off", | ||
"noInvalidConstructorSuper": "off", | ||
"noNewSymbol": "off", | ||
"noSetterReturn": "off", | ||
"noUndeclaredVariables": "off", | ||
"noUnreachable": "off", | ||
"noUnreachableSuper": "off" | ||
}, | ||
"style": { | ||
"noInferrableTypes": "error", | ||
"noNamespace": "error", | ||
"noNonNullAssertion": "warn", | ||
"useAsConstAssertion": "error", | ||
"useBlockStatements": "off", | ||
"useDefaultParameterLast": "error", | ||
"noArguments": "error", | ||
"noVar": "error", | ||
"useConst": "error" | ||
}, | ||
"suspicious": { | ||
"noDuplicateClassMembers": "error", | ||
"noEmptyBlockStatements": "warn", | ||
"noExplicitAny": "off", | ||
"noExtraNonNullAssertion": "error", | ||
"noMisleadingInstantiator": "error", | ||
"noRedeclare": "error", | ||
"useAwait": "off", | ||
"useNamespaceKeyword": "error", | ||
"noDuplicateObjectKeys": "off", | ||
"noDuplicateParameters": "off", | ||
"noFunctionAssign": "off", | ||
"noImportAssign": "off", | ||
"noUnsafeNegation": "off", | ||
"useGetterReturn": "off", | ||
"useValidTypeof": "off" | ||
}, | ||
"nursery": { | ||
"useSortedClasses": "info" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "es5", | ||
"semicolons": "asNeeded", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "double", | ||
"attributePosition": "auto" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const config = { | ||
"*.{mjs,js,jsx,ts,tsx}": ["biome check --write"], | ||
"*.json": ["biome format --write"], | ||
} | ||
|
||
export default config |
Oops, something went wrong.