Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Run Biome
run: npm run biome:check
- name: Build
run: npm run build

Expand Down
8 changes: 0 additions & 8 deletions .prettierrc.js

This file was deleted.

19 changes: 19 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.x/schema.json",
"extends": ["@kontent-ai/biome-config/base", "@kontent-ai/biome-config/react"],
"files": {
"includes": [
"src/**/*.ts",
"src/**/*.tsx",
"test-browser/**/*.ts",
"test-components/**/*.tsx, test-components/**/*.ts"
]
},
"linter": {
"rules": {
"correctness": {
"useImportExtensions": "off"
}
}
}
}
25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import kontentAiConfig from "@kontent-ai/eslint-config";
import { defineConfig, globalIgnores } from "eslint/config";

export default defineConfig([
globalIgnores(["dist", "node_modules", "playwright"]),
{
extends: [kontentAiConfig],
files: ["src/**/*.ts", "src/**/*.tsx", "test-browser/**/*.ts", "test-components/**/*.tsx"],
languageOptions: {
parserOptions: {
project: ["./tsconfig.json", "./tsconfig.test.json"],
},
},
rules: {
"@typescript-eslint/promise-function-async": "off",
},
},
// Disable unbound-method for test files (Playwright test functions are safe)
{
files: ["test-browser/**/*.ts", "test-components/**/*.tsx"],
rules: {
"@typescript-eslint/unbound-method": "off",
},
},
]);
Loading
Loading