Skip to content

Commit

Permalink
migrate to biome, remove commander, refactor file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Jul 23, 2024
1 parent 7752fa6 commit 6a26132
Show file tree
Hide file tree
Showing 27 changed files with 1,031 additions and 869 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = tab
tab_width = 2
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
11 changes: 10 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:

- run: npm run format:check

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup

- run: npm run lint:check

generate:
runs-on: ubuntu-latest
steps:
Expand All @@ -33,7 +42,7 @@ jobs:

- run: npm run build --workspace @sofash/cli

- run: npm run start cinema rav-hen --workspace @sofash/cli -- --cinemaId 1058 --date 2024-06-09
- run: node packages/cli/dist/rav-hen/scripts/create-calendar.js --cinemaId 1058 --date 2024-06-09

- uses: actions/upload-pages-artifact@v3
with:
Expand Down
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run format:check
npm run lint:check && npm run format:check
8 changes: 0 additions & 8 deletions .prettierignore

This file was deleted.

13 changes: 0 additions & 13 deletions .prettierrc.mjs

This file was deleted.

88 changes: 88 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "error",
"noUnusedVariables": "error",
"noUnusedPrivateClassMembers": "error",
"useArrayLiterals": "error"
},
"performance": {
"noBarrelFile": "error"
},
"style": {
"noDefaultExport": "error",
"noNamespace": "error",
"noNamespaceImport": "error",
"noNegationElse": "error",
"useBlockStatements": "error",
"useCollapsedElseIf": "error",
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "generic"
}
},
"useFilenamingConvention": {
"level": "error",
"options": {
"requireAscii": true,
"filenameCases": ["kebab-case"]
}
},
"useForOf": "error",
"useFragmentSyntax": "error",
"useNamingConvention": "error",
"useShorthandAssign": "error"
},
"suspicious": {
"noConsoleLog": "error",
"useAwait": "error"
}
}
},
"formatter": {
"attributePosition": "multiline"
},
"files": {
"ignore": [
"**/.idea",
"**/node_modules",
"**/dist",
"**/.env",
"**/.DS_Store",
"**/data"
]
},
"overrides": [
{
"include": ["*.config.js"],
"linter": {
"rules": {
"style": {
"noDefaultExport": "off"
}
}
}
},
{
"include": ["*.spec.ts", "*.spec.tsx"],
"linter": {
"rules": {
"style": {
"noNamespaceImport": "off"
}
}
}
},
{
"include": ["tsconfig.*.json"],
"json": {
"parser": {
"allowComments": true
}
}
}
]
}
Loading

0 comments on commit 6a26132

Please sign in to comment.