Skip to content
Merged
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
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

Empty file removed .prettierignore
Empty file.
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v1.5.3 (2024-03-10)

### Changed

- Update dependencies.
- Use `@emotion` instead of `styled-components` that is more versatile to be used with build-variants.
- Fix minor typos.

## v1.5.2 (2024-03-10)

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ Configure **build-variants** with your styling engine. For example, with _styled

```ts
import type { CSSObject } from '@emotion/react'
import { newBuildVariants } from 'build-variants'
import { newBuildVariants } from '@productive-codebases/build-variants'

export function buildVariants<TProps extends object>(props: TProps) {
return newBuildVariants<TProps, CSSObject>(props)
}
```

*This sets up a function that accepts props and returns a builder configured for styled-components.*
*This sets up a function that accepts props and returns a builder configured for CSSObject objects.*

---

Expand Down
45 changes: 45 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"files": {
"ignore": []
},
"organizeImports": {
"enabled": true
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"indentStyle": "space"
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"trailingCommas": "none",
"arrowParentheses": "asNeeded"
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noBannedTypes": "info",
"noForEach": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noEmptyInterface": "off"
},
"correctness": {
"noUnusedImports": "warn"
},
"performance": {
"noAccumulatingSpread": "warn"
}
}
}
}
13 changes: 3 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
module.exports = {
roots: [
'<rootDir>/src'
],
roots: ['<rootDir>/src'],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.ts$',
testPathIgnorePatterns: [
'/node_modules/'
],
collectCoverageFrom: [
'**/*.ts',
'!**/node_modules/**'
],
testPathIgnorePatterns: ['/node_modules/'],
collectCoverageFrom: ['**/*.ts', '!**/node_modules/**'],
coverageDirectory: 'reports/coverage',
testEnvironment: 'node',
bail: false,
Expand Down
Loading