Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Upgrade dependencies. #6

Merged
merged 3 commits into from
Nov 8, 2021
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
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ module.exports = {
'max-len': ['warn', 120],
'object-curly-newline': 'off',
'import/prefer-default-export': 'off',
"import/no-extraneous-dependencies": "off",
},
}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Run checks
run: yarn check
run: yarn run check
- name: Run tests
run: yarn test:coverage
run: yarn run test:coverage
- name: Report coverage
uses: coverallsapp/github-action@master
with:
Expand Down
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"watch": "yarn run build -- -w",
"lint": "eslint --ignore-path .gitignore --ext .ts --ext .tsx .",
"lint:fix": "yarn lint --fix",
"typecheck": "tsc --noEmit",
"check": "tsc --noEmit && yarn run lint",
"test": "jest",
"test:coverage": "yarn run test --coverage",
Expand All @@ -36,25 +37,25 @@
"changelog": "gitmoji-changelog"
},
"devDependencies": {
"@types/classnames": "^2.2.7",
"@types/jest": "^24.0.13",
"@types/react": "^16.8.17",
"@types/react-test-renderer": "^16.8.1",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"coveralls": "^3.0.3",
"eslint": "^7.19.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"@types/jest": "^27.0.2",
"@types/react": "^17.0.34",
"@types/react-test-renderer": "^17.0.1",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"coveralls": "^3.1.1",
"eslint": "^8.2.0",
"eslint-config-airbnb-typescript": "^15.0.0",
"eslint-plugin-import": "^2.22.1",
"gitmoji-changelog": "^1.1.0",
"jest": "^24.8.0",
"react": "^16.8.6",
"react-test-renderer": "^16.8.6",
"ts-jest": "^24.0.2",
"typescript": "^3.5.1"
"gitmoji-changelog": "^2.2.1",
"jest": "^27.3.1",
"react": "^17.0.2",
"react-test-renderer": "^17.0.2",
"ts-jest": "^27.0.7",
"typescript": "^4.4.4"
},
"dependencies": {
"@emotion/is-prop-valid": "^0.7.3",
"classnames": "^2.2.6"
"@emotion/is-prop-valid": "^1.1.0",
"classnames": "^2.3.1"
},
"peerDependencies": {
"react": "*"
Expand Down
2 changes: 1 addition & 1 deletion src/classNames.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classNames from 'classnames'
import classNames from 'classnames'

type BasicClassValue = string | { [id: string]: any } | undefined | boolean
type ClassesValue<P> = BasicClassValue | ClassesValueArray<P> | ((props: P) => Classes<P>)
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classNames from 'classnames'
import classNames from 'classnames'
import { createElement, forwardRef } from 'react'
import { Classes, ClassesValueArray, processClasses } from './classNames'
import { filterPropsToForward, tags } from './tags'
Expand Down
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { ComponentType, ElementType, FC } from 'react'
import { Classes, ClassesValueArray } from './classNames'

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>

type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>

type PropsOf<
Expand Down
Loading