Skip to content

Commit

Permalink
Add Biome and fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Aug 2, 2024
1 parent e905f6a commit a90a65a
Show file tree
Hide file tree
Showing 10 changed files with 799 additions and 2,471 deletions.
10 changes: 2 additions & 8 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"projectOwner": "Meteor-Community-Packages",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": true,
"commitConvention": "eslint",
Expand All @@ -15,11 +13,7 @@
"name": "Jan Dvorak",
"avatar_url": "https://avatars2.githubusercontent.com/u/1715235?v=4",
"profile": "https://github.com/StorytellerCZ",
"contributions": [
"code",
"doc",
"maintenance"
]
"contributions": ["code", "doc", "maintenance"]
}
],
"contributorsPerLine": 7
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Lint test"

on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]

jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint-ci
7 changes: 7 additions & 0 deletions .idea/biome.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions .idea/jsLinters/eslint.xml

This file was deleted.

44 changes: 44 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignore": [
".meteor/**",
".vscode/**",
"coverage/**",
"node_modules/**",
"storybook-static/**",
"private/**"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"useArrowFunction": "off"
},
"suspicious": {
"noImplicitAnyLet": "warn",
"noExplicitAny": "warn",
"noArrayIndexKey": "warn"
},
"performance": {
"noDelete": "warn"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"bracketSpacing": true,
"quoteStyle": "single"
}
}
}
Loading

0 comments on commit a90a65a

Please sign in to comment.