Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
adexin-team committed Nov 11, 2024
1 parent 6301aa7 commit f45bdaf
Show file tree
Hide file tree
Showing 43 changed files with 7,193 additions and 11,958 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
lib/*
jest.config.ts
jest-config/*
27 changes: 27 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
root: true,
ignorePatterns: ["coverage/"],
extends: ["airbnb", "airbnb-typescript"],
parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: __dirname,
},
rules: {
"react/jsx-props-no-spreading": [
"error",
{
html: "ignore",
exceptions: ["Component"],
},
],
"react/jsx-sort-props": ["error"],
"import/order": ["error"],
},
settings: {
"import/resolver": {
typescript: {
alwaysTryTypes: true,
},
},
},
};
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
All notable changes to this project will be documented in this file.

## [Unreleased]
[unreleased]: https://github.com/adexin/spinners-react/compare/v1.0.7...HEAD
[unreleased]: https://github.com/adexin/spinners-react/compare/v1.0.10...HEAD

## [1.0.10]
[1.0.10]: https://github.com/adexin/spinners-react/compare/v1.0.7...v1.0.10

### Changed
- Removed deprecated defaultProps warning.
- Updated dev dependencies.

## [1.0.7]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Spinners React
[![npm](https://img.shields.io/npm/v/spinners-react.svg)](http://npm.im/spinners-react) [![License](https://img.shields.io/github/license/adexin/spinners-react.svg)](https://github.com/adexin/spinners-react/blob/master/LICENSE.md) [![Build Status](https://img.shields.io/travis/com/adexin/spinners-react/master.svg)](https://travis-ci.com/github/adexin/spinners-react) [![Coverage Status](https://coveralls.io/repos/github/adexin/spinners-react/badge.svg?branch=master)](https://coveralls.io/github/adexin/spinners-react?branch=master) [![gzip size](http://img.badgesize.io/https://unpkg.com/spinners-react/lib/umd/index.min.js?compression=gzip&label=gzip)](https://unpkg.com/spinners-react/lib/umd/index.min.js)
[![npm](https://img.shields.io/npm/v/spinners-react.svg)](http://npm.im/spinners-react) [![License](https://img.shields.io/github/license/adexin/spinners-react.svg)](https://github.com/adexin/spinners-react/blob/master/LICENSE.md) [![Build Status](https://img.shields.io/travis/com/adexin/spinners-react/master.svg)](https://travis-ci.com/github/adexin/spinners-react) [![Coverage Status](https://coveralls.io/repos/github/adexin/spinners-react/badge.svg?branch=master)](https://coveralls.io/github/adexin/spinners-react?branch=master) [![gzip size](https://img.badgesize.io/https://unpkg.com/spinners-react/lib/umd/index.min.js?compression=gzip&label=gzip)](https://unpkg.com/spinners-react/lib/umd/index.min.js)


9 awesome typescript-aware lightweight spinners built as react.js components.
Expand Down Expand Up @@ -72,7 +72,7 @@ If you're using ES6 modules and a bundler that supports tree-shaking you can saf
```
import { SpinnerCircular } from 'spinners-react';
```
It that's not the case you're able to use path imports to avoid pulling in unused spinners:
If that's not the case you're able to use path imports to avoid pulling in unused spinners:
```
// ESM
import { SpinnerCircular } from 'spinners-react/lib/esm/SpinnerCircular';
Expand Down
1 change: 1 addition & 0 deletions jest-config/jest-dom.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "@testing-library/jest-dom";
4 changes: 2 additions & 2 deletions jest-config/style-mock.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
export default {
process() {
return 'module.exports = {};';
return { code: "" };
},
};
7 changes: 0 additions & 7 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
preset: "ts-jest",
testEnvironment: "jsdom",
transform: {
".css$": "<rootDir>/jest-config/style-mock.js",
},
setupFilesAfterEnv: ["<rootDir>/jest-config/jest-dom.ts"],
};
Loading

0 comments on commit f45bdaf

Please sign in to comment.