diff --git a/biome.json b/biome.json index 8147b25e42..e17b0dbd16 100644 --- a/biome.json +++ b/biome.json @@ -17,7 +17,16 @@ "javascript": { "formatter": { "quoteStyle": "single", - "trailingComma": "none" + "trailingCommas": "none" + } + }, + "css": { + "linter": { + "enabled": false + }, + "formatter": { + "enabled": false, + "indentStyle": "space" } }, "linter": { @@ -90,15 +99,18 @@ "noChildrenProp": "off", "noConstAssign": "warn", "noConstantCondition": "warn", + "noConstantMathMinMaxClamp": "warn", "noConstructorReturn": "warn", "noEmptyCharacterClassInRegex": "warn", "noEmptyPattern": "warn", + "noFlatMapIdentity": "warn", "noGlobalObjectCalls": "warn", "noInnerDeclarations": "warn", "noInvalidConstructorSuper": "warn", "noInvalidNewBuiltin": "warn", "noInvalidUseBeforeDeclaration": "warn", "noNewSymbol": "warn", + "noNodejsModules": "off", "noNonoctalDecimalEscape": "warn", "noPrecisionLoss": "warn", "noRenderReturnValue": "warn", @@ -118,6 +130,7 @@ "noUnusedVariables": "warn", "noVoidElementsWithChildren": "warn", "noVoidTypeReturn": "warn", + "useArrayLiterals": "warn", "useExhaustiveDependencies": "off", "useHookAtTopLevel": "warn", "useIsNan": "warn", diff --git a/package.json b/package.json index 7676f0d9e2..b4a6cb9bd7 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,9 @@ "build:types": "tsc -p tsconfig.lib.json && api-extractor run --local --verbose", "test": "vitest run", "test:watch": "vitest watch", - "format": "biome format . --write", - "check": "biome check . --error-on-warnings", - "biome:ci": "biome ci . --error-on-warnings", + "format": "biome format --write", + "check": "biome check --error-on-warnings", + "biome:ci": "biome ci --error-on-warnings", "eslint": "eslint --ext js,ts,tsx --max-warnings 0 --cache --color src test website vite.config.ts", "eslint:fix": "node --run eslint -- --fix", "prettier:check": "prettier --check .", @@ -61,7 +61,7 @@ "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@babel/runtime": "^7.21.5", - "@biomejs/biome": "1.7.3", + "@biomejs/biome": "1.8.0", "@faker-js/faker": "^8.0.0", "@ianvs/prettier-plugin-sort-imports": "^4.0.2", "@linaria/core": "^6.0.0",